History log of /src/sys/dev/eisa/ahb.c |
Revision | | Date | Author | Comments |
1.70 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.69 |
| 27-Jul-2021 |
thorpej | branches: 1.69.2; - Remove unused <sys/malloc.h> include. - Rename ahb_ecb_phys_kv() to ahb_ecb_lookup(). - Remove a bogus comment.
|
1.68 |
| 26-Jul-2021 |
thorpej | - Type hygiene. - Rename ahb_ecb::hashkey to ahb_ecb::ecb_dma_addr, and use that value rather than recomputing it all the time.
|
1.67 |
| 24-Jul-2021 |
thorpej | Don't blindly establish our interrupt handler as IST_LEVEL. If the INTDEF register has the INTHIGH bit set, the controller is going to keep the line low when *not* asserting an interrupt, and since EISA level-tiggered interrupts are active-low, this would result in a forever-interrupt-storm.
So, if INTHIGH is set in INTDEF, establish our interrupt handler as IST_EDGE, which will program the EISA PIC to detect the interrupt on the rising edge of the IRQ line.
|
1.66 |
| 24-Apr-2021 |
thorpej | branches: 1.66.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.65 |
| 27-Jan-2021 |
thorpej | branches: 1.65.2; Use eisa_compatible_{match,lookup}().
|
1.64 |
| 14-Jul-2016 |
msaitoh | branches: 1.64.32; - Use aprint*() instead of printf() in xxx_attach(). - Add missing aprint_naive("\n"); - KNF
|
1.63 |
| 11-Jul-2016 |
msaitoh | KNF. No functional change.
|
1.62 |
| 18-Oct-2014 |
snj | branches: 1.62.2; src is too big these days to tolerate superfluous apostrophes. It's "its", people!
|
1.61 |
| 29-Mar-2014 |
christos | make pci_intr_string and eisa_intr_string take a buffer and a length instead of relying in local static storage.
|
1.60 |
| 27-Oct-2012 |
chs | branches: 1.60.2; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.59 |
| 13-Nov-2010 |
uebayasi | branches: 1.59.8; 1.59.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.58 |
| 04-Dec-2009 |
njoly | branches: 1.58.4; Cleanup interrupt establish error messages. Do not mix aprint_error/aprint_normal/printf calls for a single line.
|
1.57 |
| 23-Nov-2009 |
rmind | Remove some unecessary includes sys/user.h header.
|
1.56 |
| 12-May-2009 |
cegger | struct device * -> device_t, no functional changes intended.
|
1.55 |
| 12-May-2009 |
cegger | struct cfdata * -> cfdata_t, no functional changes intended.
|
1.54 |
| 18-Apr-2009 |
tsutsui | Remove extra whitespace added by a stupid tool. XXX: more in src/sys/arch
|
1.53 |
| 18-Mar-2009 |
cegger | bcopy -> memcpy
|
1.52 |
| 18-Mar-2009 |
cegger | bzero -> memset
|
1.51 |
| 28-Apr-2008 |
martin | branches: 1.51.8; 1.51.14; Remove clause 3 and 4 from TNF licenses
|
1.50 |
| 06-Apr-2008 |
cegger | branches: 1.50.2; 1.50.4; use aprint_*_dev and device_xname
|
1.49 |
| 19-Oct-2007 |
ad | branches: 1.49.16; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
1.48 |
| 04-Mar-2007 |
christos | branches: 1.48.2; 1.48.14; 1.48.16; 1.48.20; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.47 |
| 16-Nov-2006 |
christos | branches: 1.47.4; __unused removal on arguments; approved by core.
|
1.46 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
1.45 |
| 29-Mar-2006 |
thorpej | branches: 1.45.8; 1.45.10; Use device_private().
|
1.44 |
| 24-Dec-2005 |
perry | branches: 1.44.4; 1.44.6; 1.44.8; 1.44.10; 1.44.12; Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
|
1.43 |
| 11-Dec-2005 |
christos | merge ktrace-lwp.
|
1.42 |
| 21-Feb-2005 |
thorpej | branches: 1.42.4; 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.41 |
| 07-Dec-2004 |
thorpej | branches: 1.41.2; 1.41.4; Don't use "struct scsi_generic" in a hardware-defined structure. Instead, use an array of 12 bytes. Check the incoming CDB to see that it will fit, and print and error and fail the command if it won't.
|
1.40 |
| 23-Aug-2004 |
thorpej | - Use ANSI function decls and make use of static.
|
1.39 |
| 02-Nov-2003 |
wiz | branches: 1.39.4; Fix some typos. From Tom Cosgrove via jmc@openbsd.
|
1.38 |
| 02-Oct-2002 |
thorpej | branches: 1.38.6; Add trailing ; to CFATTACH_DECL.
|
1.37 |
| 30-Sep-2002 |
thorpej | Use CFATTACH_DECL().
|
1.36 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.35 |
| 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.34 |
| 15-Nov-2001 |
lukem | don't need <sys/types.h> when including <sys/param.h>
|
1.33 |
| 13-Nov-2001 |
lukem | add RCSID
|
1.32 |
| 25-Apr-2001 |
bouyer | branches: 1.32.2; 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.31 |
| 14-Nov-2000 |
thorpej | branches: 1.31.2; NBPG -> PAGE_SIZE
|
1.30 |
| 12-Jul-2000 |
thorpej | Fix a couple of LP64 problems (long -> int32_t).
|
1.29 |
| 23-Mar-2000 |
thorpej | branches: 1.29.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.28 |
| 30-Sep-1999 |
thorpej | branches: 1.28.2; Update for SCSPI changes.
|
1.27 |
| 09-Dec-1998 |
thorpej | Update for changed scsipi_xfer struct.
|
1.26 |
| 05-Dec-1998 |
mjacob | Update HBAs to incorporate the new max_lun property.
|
1.25 |
| 19-Nov-1998 |
thorpej | Adapt to the new scsipi_adapter interface.
|
1.24 |
| 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.23 |
| 17-Aug-1998 |
mycroft | Assign my copyrights to TNF.
|
1.22 |
| 15-Aug-1998 |
mycroft | Name some constants consistently between drivers.
|
1.21 |
| 15-Aug-1998 |
thorpej | Only map the amount of space the device actually occupies.
Part of PR #5279, Martin Musemann.
|
1.20 |
| 04-Jul-1998 |
jonathan | defopt DDB.
|
1.19 |
| 08-Jun-1998 |
thorpej | Nuke __BROKEN_INDIRECT_CONFIG.
|
1.18 |
| 17-Feb-1998 |
thorpej | - Perform all necessary bus_dmamap_sync() operations. - Greatly simplify allocation and DMA mapping of the mailbox and ccbs. - Be more robust against resource shortage errors, and report errors better.
|
1.17 |
| 04-Feb-1998 |
thorpej | Add offset and length parameters to bus_dmamap_sync(), used for specifiying partial syncs of a DMA mapping.
|
1.16 |
| 04-Feb-1998 |
thorpej | Add dm_mapsize to bus_dmamap_t and rename BUS_DMAMEM_NOSYNC to BUS_DMA_COHERENT.
|
1.15 |
| 28-Jan-1998 |
thorpej | Use offsetof() from libkern.h
|
1.14 |
| 12-Jan-1998 |
thorpej | Slight change to previous.
|
1.13 |
| 12-Jan-1998 |
thorpej | Adjust for config changes.
|
1.12 |
| 04-Nov-1997 |
thorpej | Implement a simple queueing mechanism that makes these drivers much more robust in resource shortage situations, basically identical to code I added to the "ahc" driver some time ago.
Thanks to Brad Spencer for the testing help.
|
1.11 |
| 29-Oct-1997 |
thorpej | When creating ecbs, be a little more informative about why we couldn't should creation/initialization of a ecb fail. Also, don't panic in these situations. Instead, simply return an error condition and allow the caller to deal with it. It may be the case that we were able to create one ecb what we can grab, and continue to hobble along.
|
1.10 |
| 27-Aug-1997 |
bouyer | branches: 1.10.4; Merge scsipi branch in the mainline. This add support for ATAPI devices (currently only CD-ROM drives on i386). The sys/dev/scsipi system provides 2 busses to which devices can attach (scsibus and atapibus). This needed to change some include files and structure names in the low level scsi drivers.
|
1.9 |
| 06-Jun-1997 |
thorpej | branches: 1.9.2; 1.9.4; Pull thorpej-bus-dma branch into mainline.
|
1.8 |
| 28-Mar-1997 |
mycroft | branches: 1.8.2; Use a temporary data structure for holding probe information, rather than a full softc.
|
1.7 |
| 10-Dec-1996 |
thorpej | branches: 1.7.2; Fill in sc_link.max_target
|
1.6 |
| 21-Oct-1996 |
thorpej | New bus.h implementation/interface: - No more distinction between i/o-mapped and memory-mapped devices. It's all "bus space" now, and space tags differentiate the space with finer grain than the bus chipset tag. - Add memory barrier methods. - Implement space alloc/free methods. - Implement region read/write methods (like memcpy to/from bus space). This interface provides a better abstraction for dealing with machine-independent chipset drivers.
|
1.5 |
| 13-Oct-1996 |
christos | backout kprintf changes
|
1.4 |
| 10-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.3 |
| 19-Sep-1996 |
thorpej | Correct two prototypes so that this compiles without DDB defined.
|
1.2 |
| 07-Sep-1996 |
mycroft | Oops. Copy out the right number of command bytes.
|
1.1 |
| 01-Sep-1996 |
mycroft | General cleanup, like other drivers.
|
1.7.2.2 |
| 11-Dec-1996 |
mycroft | From trunk: General cleanup; fixes several bugs.
|
1.7.2.1 |
| 10-Dec-1996 |
mycroft | file ahb.c was added on branch netbsd-1-2 on 1996-12-11 05:06:56 +0000
|
1.8.2.3 |
| 18-May-1997 |
thorpej | Do the __BROKEN_INDIRECT_CONFIG dance.
|
1.8.2.2 |
| 17-May-1997 |
thorpej | Update for bus_dmamem_alloc() changes.
|
1.8.2.1 |
| 13-May-1997 |
thorpej | Convert to use bus dma.
|
1.9.4.1 |
| 27-Aug-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.9.2.1 |
| 01-Jul-1997 |
bouyer | Updates for new scsipi subsystem. Actally known to work on i386 and sparc.
|
1.10.4.2 |
| 04-Nov-1997 |
thorpej | Pull up from trunk: add a queueing mechanism to make this much more robust in resource shortage conditions.
|
1.10.4.1 |
| 29-Oct-1997 |
thorpej | Pull up from trunk: be more verbose/robust about ecb allocation failure.
|
1.28.2.6 |
| 22-Nov-2000 |
bouyer | Sync with HEAD.
|
1.28.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.28.2.4 |
| 01-Nov-1999 |
thorpej | Fixup the SC_DEBUG() stuff for the new world order.
|
1.28.2.3 |
| 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.28.2.2 |
| 20-Oct-1999 |
thorpej | Eliminate sleeping from adapter routines.
|
1.28.2.1 |
| 19-Oct-1999 |
thorpej | Adapt to scsipi API changes.
|
1.29.4.1 |
| 12-Jul-2000 |
thorpej | Update from trunk: Fix a couple of LP64 problems (long -> int32_t).
|
1.31.2.5 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.31.2.4 |
| 17-Apr-2002 |
nathanw | Catch up to -current.
|
1.31.2.3 |
| 08-Jan-2002 |
nathanw | Catch up to -current.
|
1.31.2.2 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.31.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.32.2.3 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.32.2.2 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.32.2.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.38.6.6 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.38.6.5 |
| 18-Dec-2004 |
skrll | Sync with HEAD.
|
1.38.6.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.38.6.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.38.6.2 |
| 25-Aug-2004 |
skrll | Sync with HEAD.
|
1.38.6.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.39.4.1 |
| 02-Apr-2005 |
he | Pull up revision 1.41 (requested by thorpej in ticket #1022): Don't use "struct scsi_generic" in a hardware-defined structure. Instead, use an array of 12 bytes. Check the incoming CDB to see that it will fit, and print and error and fail the command if it won't.
|
1.41.4.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.41.2.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.42.4.4 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.42.4.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.42.4.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.42.4.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.44.12.1 |
| 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.44.10.1 |
| 19-Apr-2006 |
elad | sync with head.
|
1.44.8.1 |
| 01-Apr-2006 |
yamt | sync with head.
|
1.44.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.44.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.45.10.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.45.10.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.45.8.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.47.4.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.48.20.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.48.16.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.48.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.48.2.1 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.49.16.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.50.4.4 |
| 11-Mar-2010 |
yamt | sync with head
|
1.50.4.3 |
| 16-May-2009 |
yamt | sync with head
|
1.50.4.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.50.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.50.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.51.14.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.51.8.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.58.4.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.59.18.3 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.59.18.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.59.18.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.59.8.2 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.59.8.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.60.2.1 |
| 18-May-2014 |
rmind | sync with head
|
1.62.2.1 |
| 05-Oct-2016 |
skrll | Sync with HEAD
|
1.64.32.1 |
| 03-Apr-2021 |
thorpej | Sync with HEAD.
|
1.65.2.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.66.2.1 |
| 01-Aug-2021 |
thorpej | Sync with HEAD.
|
1.69.2.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|