History log of /src/sys/dev/ic/adv.c |
Revision | | Date | Author | Comments |
1.53 |
| 25-Sep-2022 |
thorpej | Remove unnecessary include of <sys/malloc.h>.
|
1.52 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.51 |
| 24-Apr-2021 |
thorpej | branches: 1.51.8; 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.50 |
| 15-Dec-2019 |
tsutsui | branches: 1.50.10; Remove clause 3 and 4 leftovers from TNF licenses in more sources.
Confirmed by martin@ in PR/54760.
|
1.49 |
| 06-Oct-2019 |
uwe | Get rid of bogus ASC_CALLBACK typedef. Use the real callback type (which is almost ASC_ISR_CALLBACK). Since we no longer need the casting dance we can get rid of the temporary variables, and since we don't need the temporary variables we don't need the ASC_ISR_CALLBACK typedef either. Found by gcc8 -Wcast-function-type.
|
1.48 |
| 29-Aug-2018 |
rin | branches: 1.48.6; Note added for a strange value of residual counts in successful read/write. Seems like a H/W bug. The best thing we can do would be to leave the code as is.
No binary changes.
|
1.47 |
| 14-Jul-2016 |
msaitoh | branches: 1.47.16; 1.47.18; KNF. No functional change.
|
1.46 |
| 27-Oct-2012 |
chs | branches: 1.46.14; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.45 |
| 13-Nov-2010 |
uebayasi | branches: 1.45.8; 1.45.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.44 |
| 23-Nov-2009 |
rmind | branches: 1.44.4; Remove some unecessary includes sys/user.h header.
|
1.43 |
| 14-Mar-2009 |
dsl | Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
|
1.42 |
| 08-Apr-2008 |
cegger | branches: 1.42.4; 1.42.12; 1.42.18; use aprint_*_dev and device_xname
|
1.41 |
| 19-Oct-2007 |
ad | branches: 1.41.16; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
1.40 |
| 09-Jul-2007 |
ad | branches: 1.40.6; 1.40.8; 1.40.12; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
1.39 |
| 04-Mar-2007 |
christos | branches: 1.39.2; 1.39.4; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.38 |
| 17-Aug-2006 |
christos | branches: 1.38.8; Fix all the -D*DEBUG* code that it was rotting away and did not even compile. Mostly from Arnaud Lacombe, many thanks!
|
1.37 |
| 11-Dec-2005 |
christos | branches: 1.37.4; 1.37.8; merge ktrace-lwp.
|
1.36 |
| 27-Feb-2005 |
perry | branches: 1.36.4; nuke trailing whitespace
|
1.35 |
| 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.34 |
| 04-Feb-2005 |
perry | de-__P
|
1.33 |
| 03-May-2003 |
wiz | branches: 1.33.2; 1.33.10; 1.33.12; DMA, not dma nor Dma.
|
1.32 |
| 31-Jan-2003 |
thorpej | Use aprint_*().
|
1.31 |
| 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.30 |
| 15-Nov-2001 |
lukem | don't need <sys/types.h> when including <sys/param.h>
|
1.29 |
| 13-Nov-2001 |
lukem | add/cleanup RCSID
|
1.28 |
| 19-Jul-2001 |
thorpej | Use BUS_DMA_READ and BUS_DMA_WRITE in some obvious places.
|
1.27 |
| 07-Jul-2001 |
thorpej | branches: 1.27.2; bzero -> memset
|
1.26 |
| 09-Jun-2001 |
briggs | If the adapter is returning a selection timeout, then we should be returning XS_SELTIMEOUT, not XS_TIMEOUT. Pointed out by Andrew Doran.
|
1.25 |
| 09-Jun-2001 |
briggs | Patches from takashi.yamamoto@bigfoot.com in kern/13139. - Set XS_TIMEOUT on a selection timeout condition. - Do not bother to call AscStartChip() in AscResetChipAndScsiBus()-- just clear the chip status. - Make sure address is word-aligned in AscWriteLramByte().
Tested on my adv (AdvanSys ABP-9xxUA) with CRW8424S and UMAX SuperVista S-12. Earlier versions of the system would get stuck trying to recover from error conditions when the CD-RW drive was in heavy use. I have not seen that behavior with these small patches.
|
1.24 |
| 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.23 |
| 27-Mar-2001 |
bouyer | Cast to u_int64_t when computing callout argument, to avoid int overflow. Fixes kern/12471.
|
1.22 |
| 08-Mar-2001 |
thorpej | Preliminary support for detaching an "adv" instance. This could use some more work.
Derived from kern/12341, takashi.yamamoto@bigfoot.com.
|
1.21 |
| 07-Mar-2001 |
thorpej | Add BUS_DMA_STREAMING to data transfer maps.
|
1.20 |
| 14-Nov-2000 |
thorpej | branches: 1.20.2; NBPG -> PAGE_SIZE
|
1.19 |
| 11-Aug-2000 |
tls | Make our policy WRT tagged queueing consistent and sane: ordered tags for sync writes, simple tags for all else. Should make ahc and adv a bit more reliable (metadata writes won't get reordered incorrectly...) and isp a bit more performant (it was using ordered tags all the time).
|
1.18 |
| 28-Jun-2000 |
mrg | remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
|
1.17 |
| 26-Jun-2000 |
mrg | remove redundant vm includes.
|
1.16 |
| 23-Mar-2000 |
thorpej | branches: 1.16.4; 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.15 |
| 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.14 |
| 30-Sep-1999 |
thorpej | branches: 1.14.2; Update for SCSPI changes.
|
1.13 |
| 07-Aug-1999 |
thorpej | Fix a problem uncovered by attempting to compile on the Alpha: overrun_buf was being initialized to a KVA, when we really wanted a DMA address. Change the code to allocate the overrun buffer with the control blocks, and properly initialize overrun_buf.
Note that overrun_buf cannot actually be shared between all boards; DMA safe memory could vary from bus to bus.
Garbage-collect two functions which are no longer used because of the above changes.
|
1.12 |
| 06-Jun-1999 |
dante | Add support for ISA, EISA and ISApnp cards Fixed a bus reset bug which shows on arm32
|
1.11 |
| 04-Mar-1999 |
dante | branches: 1.11.4; fix second level interrupt handler to allow 64 bits pointers
|
1.10 |
| 25-Feb-1999 |
dante | Fix AdvanSys Narrow driver to work on Alpha
|
1.9 |
| 09-Dec-1998 |
thorpej | Update for changed scsipi_xfer struct.
|
1.8 |
| 05-Dec-1998 |
mjacob | Update HBAs to incorporate the new max_lun property.
|
1.7 |
| 19-Nov-1998 |
thorpej | Adapt to the new scsipi_adapter interface.
|
1.6 |
| 28-Oct-1998 |
dante | Add support for macppc. Very special thanks to Itsumi Tsutsui for his invaluable collaboration.
|
1.5 |
| 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.4 |
| 26-Sep-1998 |
dante | Remove Wide boards references Adjust copyright
At this time this driver support the following AdvanSys boards: - ABP-9xx - ABP-9xxU - ABP-9xxUA
|
1.3 |
| 09-Sep-1998 |
thorpej | Protect Debugger() call a'la uha driver. PR #6070, Gary D. Duzan.
|
1.2 |
| 29-Aug-1998 |
dante | Add rcs id
|
1.1 |
| 26-Aug-1998 |
dante | Add AdvanSys 930U and 940U SCSI controllers
|
1.11.4.1 |
| 21-Jun-1999 |
thorpej | Sync w/ -current.
|
1.14.2.9 |
| 21-Apr-2001 |
bouyer | Sync with HEAD
|
1.14.2.8 |
| 12-Mar-2001 |
bouyer | Sync with HEAD.
|
1.14.2.7 |
| 15-Jan-2001 |
bouyer | req_sense_length is dead.
|
1.14.2.6 |
| 22-Nov-2000 |
bouyer | Sync with HEAD.
|
1.14.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.14.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.14.2.3 |
| 20-Oct-1999 |
thorpej | Eliminate sleeping from adapter routines.
|
1.14.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.14.2.1 |
| 19-Oct-1999 |
thorpej | Adapt to scsipi API changes.
|
1.16.4.1 |
| 11-Aug-2000 |
tls | Pull up tagged queueing policy changes: now we use ordered tags for sync writes, simple tags for reads and async writes.
|
1.20.2.6 |
| 17-Apr-2002 |
nathanw | Catch up to -current.
|
1.20.2.5 |
| 08-Jan-2002 |
nathanw | Catch up to -current.
|
1.20.2.4 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.20.2.3 |
| 24-Aug-2001 |
nathanw | Catch up with -current.
|
1.20.2.2 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.20.2.1 |
| 09-Apr-2001 |
nathanw | Catch up with -current.
|
1.27.2.3 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.27.2.2 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.27.2.1 |
| 03-Aug-2001 |
lukem | update to -current
|
1.33.12.2 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.33.12.1 |
| 12-Feb-2005 |
yamt | sync with head.
|
1.33.10.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.33.2.2 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.33.2.1 |
| 04-Feb-2005 |
skrll | Sync with HEAD.
|
1.36.4.3 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.36.4.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.36.4.1 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.37.8.1 |
| 03-Sep-2006 |
yamt | sync with head.
|
1.37.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.38.8.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.39.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.39.2.2 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.39.2.1 |
| 01-Jul-2007 |
ad | Adapt to callout API change.
|
1.40.12.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.40.8.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.40.6.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.41.16.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.42.18.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.42.12.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.42.4.2 |
| 11-Mar-2010 |
yamt | sync with head
|
1.42.4.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.44.4.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.45.18.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.45.18.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.45.8.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.46.14.1 |
| 05-Oct-2016 |
skrll | Sync with HEAD
|
1.47.18.3 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.47.18.2 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.47.18.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.47.16.1 |
| 06-Sep-2018 |
pgoyette | Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
|
1.48.6.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.50.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.51.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|