summaryrefslogtreecommitdiff
path: root/sys/dev/isa/wds.c
AgeCommit message (Collapse)Author
2022-09-25Remove unnecessary include of <sys/malloc.h>.thorpej
2021-08-07Merge thorpej-cfargs2.thorpej
2021-04-24Merge thorpej-cfargs branch:thorpej
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?).
2016-07-11KNF. No functional change.msaitoh
2012-10-27split device_t/softc for all remaining drivers.chs
replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
2010-11-13Don't pull in the whole uvm(9) API to access only PAGE_SIZE anduebayasi
some other constants. These are provided by sys/param.h now.
2009-11-23Remove some unecessary includes sys/user.h header.rmind
2009-05-12struct device * -> device_t, no functional changes intended.cegger
2009-05-12struct cfdata * -> cfdata_t, no functional changes intended.cegger
2009-03-14ANSIfy another 1261 function definitions.dsl
The only ones left in sys are beyond by sed script! (or in sys/dist or sys/external) Mostly they have function pointer parameters.
2009-03-14Change about 4500 of the K&R function definitions to ANSI ones.dsl
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.)
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2008-04-08use aprint_*_dev and device_xnamecegger
2007-10-19machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.had
2007-03-04Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.christos
2006-11-16__unused removal on arguments; approved by core.christos
2006-10-12- sprinkle __unused on function decls.christos
- fix a couple of unused bugs - no more -Wno-unused for i386
2006-08-17Fix all the -D*DEBUG* code that it was rotting away and did not even compile.christos
Mostly from Arnaud Lacombe, many thanks!
2005-12-11merge ktrace-lwp.christos
2005-02-27nuke trailing whitespaceperry
2005-02-04de-__Pperry
2004-12-07Don't use "struct scsi_generic" in a hardware-defined structure. Instead,thorpej
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.
2004-09-14Separate the namespace for default (ie unspecified) locators useddrochner
by the isa.c bus driver and the "address/whatever not specified" argument passed to leaf device drivers. The former is "ISACF_XXX_DEFAULT" as generaterd by config(8), the latter "ISA_UNKNOWN_XXX", defined in isavar.h. This way we save a dependency of every ISA device driver on "locators.h".
2004-06-24fic some questionable pointer arithmetics; gcc-3.4.xdrochner
didn't like it
2003-08-04avoid the pruned type gcc-3.x warning.christos
2003-05-14create, not craete.wiz
2003-05-03DMA, not dma nor Dma.wiz
2003-02-23Remove assigned-to but not used variable.simonb
2002-10-02Fix sizeof and whitespace bug from the script I'm using to do thethorpej
CFATTACH_DECL conversion. (Grumble.)
2002-10-02Use CFATTACH_DECL().thorpej
2002-09-27Declare all cfattach structures const.thorpej
2002-04-05Implement mstohz() as discussed on tech-kern, and use it in SCSI driversbouyer
to convert xs->timeout to callout() parameter.
2002-01-07Overhaul of the ISA autoconfiguration code to support directthorpej
configuration of devices logically attached to the ISA bus: * Change the isa_attach_args to have arrays of io, mem, irq, drq resources. * Add a "pnpnames" and a linked list of "pnpcompatnames" to the isa_attach_args. If either of these members are non-NULL, direct configuration of the bus is being performed. Add an ISA_DIRECT_CONFIG() macro to test for this. * Drivers are not allowed to modify the isa_attach_args unless direct configuration is not being performed and the probe fucntion is returning success. * Adapt device drivers -- currently, all driver probe routines return "no match" if ISA_DIRECT_CONFIG() evaluates to true.
2001-11-15don't need <sys/types.h> when including <sys/param.h>lukem
2001-11-13add RCSIDlukem
2001-07-19Use BUS_DMA_READ and BUS_DMA_WRITE in some obvious places.thorpej
2001-07-18bcopy -> memcpythorpej
2001-07-18bzero -> memsetthorpej
2001-04-25Pull up the thorpej_scsipi branch to main branch.bouyer
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
2000-11-14NBPG -> PAGE_SIZEthorpej
2000-03-23New callout mechanism with two major improvements over the oldthorpej
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.
1999-09-30Update for SCSPI changes.thorpej
1998-12-09Update for changed scsipi_xfer struct.thorpej
1998-12-05Update HBAs to incorporate the new max_lun property.mjacob
1998-11-19Adapt to the new scsipi_adapter interface.thorpej
1998-10-10Garbage-collect the open_target_lu and close_target_lu entry points fromthorpej
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.
1998-07-04defopt DDB.jonathan
1998-06-25Don't panic if a DRQ is already allocated. Instead, just return EAGAINthorpej
to indicate that the resource is unavailable.
1998-06-09Nuke __BROKEN_INDIRECT_CONFIG.thorpej
1998-06-09Adjust for changes to the ISA DMA API.thorpej