History log of /src/sys/dev/ic/adw.c |
Revision | | Date | Author | Comments |
1.59 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.58 |
| 24-Jul-2021 |
andvar | branches: 1.58.2; Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889. Also fixed some additional typos in comments, found on review of same files or typos.
|
1.57 |
| 24-Apr-2021 |
thorpej | branches: 1.57.2; Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
|
1.56 |
| 15-Dec-2019 |
tsutsui | branches: 1.56.10; Remove clause 3 and 4 leftovers from TNF licenses in more sources.
Confirmed by martin@ in PR/54760.
|
1.55 |
| 06-Oct-2019 |
uwe | Get rid of bogus ADW_CALLBACK typedef. Use the real callback types directly. Since we no longer need the casting dance we can get rid of ADW_ISR_CALLBACK and ADW_ASYNC_CALLBACK typedefs too. The diff for adwlib.h looks larger than it is b/c we need to reorder structure definitions for the proper callback declaration. Found by gcc8 -Wcast-function-type.
|
1.54 |
| 14-Jul-2016 |
msaitoh | branches: 1.54.18; 1.54.24; KNF. No functional change.
|
1.53 |
| 07-Jul-2016 |
msaitoh | KNF. Remove extra spaces. No functional change.
|
1.52 |
| 27-Oct-2012 |
chs | branches: 1.52.14; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.51 |
| 13-Nov-2010 |
uebayasi | branches: 1.51.8; 1.51.18; Don't pull in the whole uvm(9) API to access only PAGE_SIZE and some other constants. These are provided by sys/param.h now.
|
1.50 |
| 23-Nov-2009 |
rmind | branches: 1.50.4; Remove some unecessary includes sys/user.h header.
|
1.49 |
| 08-Apr-2008 |
cegger | branches: 1.49.4; use aprint_*_dev and device_xname
|
1.48 |
| 19-Oct-2007 |
ad | branches: 1.48.16; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
1.47 |
| 04-Mar-2007 |
christos | branches: 1.47.2; 1.47.14; 1.47.16; 1.47.20; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.46 |
| 11-Dec-2005 |
christos | branches: 1.46.26; merge ktrace-lwp.
|
1.45 |
| 27-Feb-2005 |
perry | branches: 1.45.4; nuke trailing whitespace
|
1.44 |
| 21-Feb-2005 |
thorpej | Part 1 of a cleanup pass over the SCSI subsystem. The aim is to name everything "scsi_*", since we really are talking about the SCSI command set, ATAPI transport not withstanding. Improve the names of many structures, and prepend "SCSI_" onto all SCSI command opcodes. Place items described by the SCSI Primary Commands document into scsi_spc.h.
|
1.43 |
| 02-Nov-2003 |
wiz | branches: 1.43.8; 1.43.10; Fix some typos. From Tom Cosgrove via jmc@openbsd.
|
1.42 |
| 21-Oct-2003 |
fvdl | Correct NULL abuse.
|
1.41 |
| 18-Sep-2003 |
mycroft | nluns should be 8, not 7.
|
1.40 |
| 03-May-2003 |
wiz | branches: 1.40.2; DMA, not dma nor Dma.
|
1.39 |
| 31-Jan-2003 |
thorpej | Use aprint_*().
|
1.38 |
| 05-Apr-2002 |
bouyer | Implement mstohz() as discussed on tech-kern, and use it in SCSI drivers to convert xs->timeout to callout() parameter.
|
1.37 |
| 15-Nov-2001 |
lukem | don't need <sys/types.h> when including <sys/param.h>
|
1.36 |
| 13-Nov-2001 |
lukem | add/cleanup RCSID
|
1.35 |
| 29-Aug-2001 |
briggs | Ensure that data accessed by the ADW driver in memory is in little-endian byte-order. This should work out to be a no-op for LE systems, and allows BE systems to use the board.
Tested on PPC, reviewed by Dante.
NOTE: The board/microcode does have a BIG_ENDIAN mode of operation, but it's not well-documented. That might be interesting to investigate at some point in the future, though.
|
1.34 |
| 31-Jul-2001 |
dante | change\n\tswitch (scsiq->host_status)\nto\n\tswitch (scsiq->scsi_status)\nin adw_isr_callback()
|
1.33 |
| 19-Jul-2001 |
thorpej | Use BUS_DMA_READ and BUS_DMA_WRITE in some obvious places.
|
1.32 |
| 07-Jul-2001 |
thorpej | branches: 1.32.2; bzero -> memset
|
1.31 |
| 07-Jul-2001 |
thorpej | bcopy -> memcpy
|
1.30 |
| 30-Apr-2001 |
lukem | remove some lint, including ansifying funcs
|
1.29 |
| 25-Apr-2001 |
bouyer | Pull up the thorpej_scsipi branch to main branch. This is a completely rewritten scsipi_xfer execution engine, and the associated changes to HBA drivers. Overview of changes & features: - All xfers are queued in the mid-layer, rather than doing so in an ad-hoc fashion in individual adapter drivers. - Adapter/channel resource management in the mid-layer, avoids even trying to start running an xfer if the adapter/channel doesn't have the resources. - Better communication between the mid-layer and the adapters. - Asynchronous event notification mechanism from adapter to mid-layer and peripherals. - Better peripheral queue management: freeze/thaw, sorted requeueing during recovery, etc. - Clean separation of peripherals, adapters, and adapter channels (no more scsipi_link). - Kernel thread for each scsipi_channel makes error recovery much easier (no more dealing with interrupt context when recovering from an error). - Mid-layer support for tagged queueing: commands can have the tag type set explicitly, tag IDs are allocated in the mid-layer (thus eliminating the need to use buggy tag ID allocation schemes in many adapter drivers). - support for QUEUE FULL and CHECK CONDITION status in mid-layer; the command will be requeued, or a REQUEST SENSE will be sent as appropriate.
Just before the merge syssrc has been tagged with thorpej_scsipi_beforemerge
|
1.28 |
| 07-Mar-2001 |
thorpej | Add BUS_DMA_STREAMING to data transfer maps.
|
1.27 |
| 11-Feb-2001 |
hpeyerl | branches: 1.27.2; Fix for kern/12114 and kern/12158 Advansys DMA errors. Reported by Bob Bernstein who heard from Kenneth Westerback that this might be the problem. Tested by HP.
|
1.26 |
| 14-Nov-2000 |
thorpej | NBPG -> PAGE_SIZE
|
1.25 |
| 28-Jun-2000 |
mrg | remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
|
1.24 |
| 26-Jun-2000 |
mrg | remove redundant vm includes.
|
1.23 |
| 27-May-2000 |
dante | branches: 1.23.2; Change AdwInitCarriers in adwmcode.c Add new AdwInitCarriers prototype in adwmcode.h All of the supported adapters are now initialized calling a unique common function
|
1.22 |
| 26-May-2000 |
dante | branches: 1.22.2; Fix a bug introduced in last commit which caused a painc due to re-enqueueing an already free ccb. Prepare the background to have a unique initialization function for all of the supported host adapters. Rename a lot of #define in a more sane way. Move Carriers initialization and defines in adwmcode.{c,h} Don't lose Carrier nodes in case of a BUS/Chip reset explicitly invoked after a DMA failure.
XXX - DMA failure still arise when AdvanSys U[2]W host adapters are used in conjunction with Intel 82443BX Host Bridge/Controller (rev. 0x03). !?!Have to understand why!?!
|
1.21 |
| 14-May-2000 |
dante | Handle better the status codes. Add a way to instruct the upper layer to don't bother w/ new requests if/when a device queue is full/busy or the device is unavailabale at that time Use scsipi_inquiry_data instead of its own inquiry structure
|
1.20 |
| 10-May-2000 |
dante | Change adw_isr_callback() status handler Add a catch for DMA Error which show up on Intel 82443BX Host Bridge/Controller (rev. 0x03). This doesn't fix the problem, but reset the SCSI bus and reinitialize the host adapter Minor cosmetical changes
Thanks a lot to Greg Oster and Andan Lauber
|
1.19 |
| 08-May-2000 |
dante | Change the way ADW_CARRIER is allocated and handled. Increased ADW_MAX_CCB to 63 and ADW_MAX_CARRIER to 253 Print WDTR/SDTR negotiation result per target Protect AdvISR() inside splbio()/splx() pair Add a pending queue to keep track of all the CCBs that are being executed by the host adapter. Rewrote timeout handler in a more efficient way: After 3 timeout now the SCSI is resetted and all pending queues not completed are now reenqueued in the waiting queue so to get executed just after the BUS Reset (hoping that resetting the SCSI BUS and reinitializing the adapter could solve the problem).
|
1.18 |
| 03-May-2000 |
thorpej | Slight change to previous.
|
1.17 |
| 03-May-2000 |
thorpej | Don't return an uninitialized error code.
|
1.16 |
| 30-Apr-2000 |
dante | Add new microcode for all of the supported boards. Fix minor glitches. Add preliminary support for ASB-3940U3W host adapters; it might work w/ autotermination on. ASB-3940U3W support is not yet tested due to lack of board.
|
1.15 |
| 23-Mar-2000 |
thorpej | New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
|
1.14 |
| 12-Feb-2000 |
thorpej | If we got an xfer from our backlog queue, don't allow sleeping; we're in interrupt context.
XXX This is fixed properly in the thorpej_scsipi branch, but that won't be ready for 1.5, I don't think.
|
1.13 |
| 03-Feb-2000 |
dante | Add AdvanSys U2W (LVD) boards support
|
1.12 |
| 30-Sep-1999 |
thorpej | branches: 1.12.2; Update for SCSPI changes.
|
1.11 |
| 11-Sep-1999 |
dante | Rewrote error handlers. Now they are solid. Increesed considerably the speed of the driver removing superfluous splbio/splx functions.
|
1.10 |
| 17-Aug-1999 |
thorpej | The CCB already contains its DMA address, so no need to recompute it over and over.
|
1.9 |
| 16-Aug-1999 |
thorpej | Fix several LP64 problems, and clear up kernel pointer vs. physical address confusion. This driver now works on the Alpha.
|
1.8 |
| 04-Mar-1999 |
dante | fix second level interrupt handler to allow 64 bits pointers
|
1.7 |
| 23-Feb-1999 |
dante | Fixed AdvanSys Ultra Wide driver to work on Alpha.
|
1.6 |
| 09-Dec-1998 |
thorpej | Update for changed scsipi_xfer struct.
|
1.5 |
| 05-Dec-1998 |
mjacob | Update HBAs to incorporate the new max_lun property.
|
1.4 |
| 19-Nov-1998 |
thorpej | Adapt to the new scsipi_adapter interface.
|
1.3 |
| 10-Oct-1998 |
thorpej | Garbage-collect the open_target_lu and close_target_lu entry points from struct scsipi_adapter; they were not used.
Add a scsipi_ioctl entry point to struct scsipi_adapter. This will be used to issue ioctl commands to the host adapters.
Inspired by PR #6090, from Matt Jacob.
|
1.2 |
| 26-Sep-1998 |
dante | Change sources to be KNF
|
1.1 |
| 26-Sep-1998 |
dante | Add support for AdvanSys Ultra Wide boards ABP-9xxUW
|
1.12.2.8 |
| 23-Mar-2001 |
bouyer | Make compile again.
|
1.12.2.7 |
| 12-Mar-2001 |
bouyer | Sync with HEAD.
|
1.12.2.6 |
| 22-Nov-2000 |
bouyer | Sync with HEAD.
|
1.12.2.5 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago A i386 GENERIC kernel compiles without the siop, ahc and bha drivers (will be updated later). i386 IDE/ATAPI and ncr work, as well as sparc/esp_sbus. alpha should work as well (untested yet). siop, ahc and bha will be updated once I've updated the branch to current -current, as well as machine-dependant code.
|
1.12.2.4 |
| 26-Oct-1999 |
thorpej | Update for:
Deal a little more gracefully with the fact that xfer mode parameters are for the I_T Nexus, and make all xfer mode updates `async events'.
|
1.12.2.3 |
| 20-Oct-1999 |
thorpej | Eliminate sleeping from adapter routines.
|
1.12.2.2 |
| 19-Oct-1999 |
thorpej | Don't sleep waiting for a CCB; if we get to the CCB allocation phase, we're guaranteed to have one.
|
1.12.2.1 |
| 19-Oct-1999 |
thorpej | Adapt to scsipi API changes.
|
1.22.2.1 |
| 22-Jun-2000 |
minoura | Sync w/ netbsd-1-5-base.
|
1.23.2.1 |
| 26-Feb-2001 |
he | Pull up revision 1.27 (requested by thorpej): Fix for ``Advansys DMA errors''. Fixes PR#12114 and PR#12158.
|
1.27.2.7 |
| 17-Apr-2002 |
nathanw | Catch up to -current.
|
1.27.2.6 |
| 08-Jan-2002 |
nathanw | Catch up to -current.
|
1.27.2.5 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.27.2.4 |
| 21-Sep-2001 |
nathanw | Catch up to -current.
|
1.27.2.3 |
| 24-Aug-2001 |
nathanw | Catch up with -current.
|
1.27.2.2 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.27.2.1 |
| 09-Apr-2001 |
nathanw | Catch up with -current.
|
1.32.2.4 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.32.2.3 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.32.2.2 |
| 13-Sep-2001 |
thorpej | Update the kqueue branch to HEAD.
|
1.32.2.1 |
| 03-Aug-2001 |
lukem | update to -current
|
1.40.2.4 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.40.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.40.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.40.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.43.10.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.43.8.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.45.4.2 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.45.4.1 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.46.26.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.47.20.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.47.16.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.47.14.1 |
| 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
1.47.2.1 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.48.16.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.49.4.1 |
| 11-Mar-2010 |
yamt | sync with head
|
1.50.4.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.51.18.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.51.18.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.51.8.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.52.14.2 |
| 05-Oct-2016 |
skrll | Sync with HEAD
|
1.52.14.1 |
| 09-Jul-2016 |
skrll | Sync with HEAD
|
1.54.24.1 |
| 18-Dec-2019 |
martin | Pull up following revision(s) (requested by tsutsui in ticket #570):
sys/compat/netbsd32/netbsd32_compat_50_sysv.c: revision 1.3 sys/dev/raidframe/rf_compat50.h: revision 1.6 sys/arch/emips/emips/bus_space.c: revision 1.3 sys/compat/net/if.h: revision 1.5 sys/arch/emips/stand/common/bootinfo.c: revision 1.2 sys/compat/common/sysv_msg_50.c: revision 1.5 sys/compat/common/kern_time_30.c: revision 1.8 sys/arch/emips/stand/common/bootinfo.h: revision 1.2 sys/arch/ia64/include/bus.h: revision 1.4 sys/arch/ia64/ia64/bus_space.c: revision 1.2 sys/compat/common/sysv_shm_50.c: revision 1.5 sys/dev/ic/adw.h: revision 1.15 sys/compat/common/uipc_syscalls_50.c: revision 1.10 sys/arch/emips/ebus/flash_ebus.c: revision 1.22 sys/dev/ic/adv.h: revision 1.15 sys/dev/ic/adwmcode.c: revision 1.18 sys/dev/ic/advlib.c: revision 1.29 sys/arch/hpcarm/include/kloader.h: revision 1.3 sys/dev/usb/uberry.c: revision 1.16 sys/compat/common/sysv_sem_50.c: revision 1.5 sys/compat/netbsd32/netbsd32_compat_50.c: revision 1.43 sys/dev/ic/advlib.h: revision 1.21 sys/dev/ic/adv.c: revision 1.50 sys/compat/netinet6/in6_var.h: revision 1.5 sys/arch/hpc/stand/hpcboot/arm/arm_sa1100_asm.asm: revision 1.2 sys/arch/emips/include/loadfile_machdep.h: revision 1.3 sys/arch/emips/stand/common/prom_iface.c: revision 1.7 sys/dev/ic/adw.c: revision 1.56 sys/dev/ic/adwmcode.h: revision 1.12 sys/dev/ic/advmcode.c: revision 1.10 sys/arch/emips/ebus/ace_ebus.c: revision 1.22 sys/compat/netbsd32/netbsd32_compat_60.c: revision 1.5 sys/dev/raidframe/rf_compat50.c: revision 1.13 sys/arch/x68k/dev/intiovar.h: revision 1.15 sys/dev/usb/uipad.c: revision 1.8 sys/arch/zaurus/include/kloader.h: revision 1.3 sys/arch/emips/stand/common/bootxx.c: revision 1.2 sys/dev/ic/adwlib.h: revision 1.23 sys/dev/ic/adwlib.c: revision 1.44 sys/compat/netbsd32/netbsd32_compat_16.c: revision 1.3 sys/arch/amigappc/include/intr.h: revision 1.27 sys/arch/x68k/dev/mfp.c: revision 1.27 sys/arch/arm/at91/at91dbgu.c: revision 1.17 sys/dev/ic/advmcode.h: revision 1.7 sys/compat/ultrix/ultrix_exec.h: revision 1.7 sys/compat/common/vfs_syscalls_50.c: revision 1.24 sys/arch/mips/cavium/octeon_dma.c: revision 1.3 sys/arch/hpc/stand/hpcboot/arm/arm_pxa2x0_asm.asm: revision 1.2
Remove clause 3 and 4 from TNF licenses. Ok'ed by martin@ in PR/54760.
Remove clause 3 and 4 leftovers from TNF licenses in more sources. Confirmed by martin@ in PR/54760.
|
1.54.18.2 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.54.18.1 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.56.10.1 |
| 21-Mar-2021 |
thorpej | Give config_found() the same variadic arguments treatment as config_search(). This commit only adds the CFARG_EOL sentinel to the existing config_found() calls. Conversion of config_found_sm_loc() and config_found_ia() call sites will be in subsequent commits.
|
1.57.2.1 |
| 01-Aug-2021 |
thorpej | Sync with HEAD.
|
1.58.2.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|