summaryrefslogtreecommitdiffstats
path: root/sys/dev/isa/wdc_isa.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* If you use sys/param.h, you don't need sys/types.hderaadt2017-09-081-2/+1
|
* isa(4) is an indirect bus, which means that drivers that attach to itmatthew2011-06-201-2/+2
| | | | | | | | | | | | | | | need to provide an xxxprobe() method instead of an xxxmatch() method. The critical difference is xxxprobe() is given a device softc for the second argument, whereas a xxxmatch() is given the cfdata as the second argument. This commit fixes the handful of ISA device drivers that incorrectly cast the second argument to a "struct cfdata *" instead of a "struct device *". (Minor complication: unlike isa(4), isapnp(4) is a direct bus, and if_we.c used the same probe/match code for both; now separate we_probe and we_match methods are used as appropriate.) "makes sense to me" krw@; ok miod@
* Refactor queue allocation and initialization into a wdc_alloc_queue()matthew2011-05-091-4/+3
| | | | | | | | | | | function, and let attachment code calls this rather than malloc(9). This prevents re-initialization of the queue in shared queue chipsets. Also, add wdc_free_queue() as a complementary function. Earlier version (without wdc_free_queue()) tested by sthen@ and Amit Kulkarni on various pciide(4) chips. ok dlg@
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* Remove ifdef/ifndef __OpenBSD__ maze so only what we use is left.jsg2006-08-261-57/+12
| | | | | Convert to ansi function declarations while here. No binary change.
* Provide explicit function argument declarations.miod2004-01-151-1/+2
|
* Merge an old fix from NetBSD:grange2003-10-171-3/+4
| | | | | | | | | | - do not stop/unload current DMA operation if an IRQ was not detected by DMA engine unless the force flag was given, fixes DMA problems in shared IRQ setups; - ack interrupt before entering DMA codepath Tested by many. Work by niklas@ but he doesn't want to commit it for some reason.
* Final __P removal plus some cosmetic fixupsmillert2002-03-141-4/+4
|
* First round of __P removal in sysmillert2002-03-141-8/+8
|
* Minor mods to DMA interface - get rid of unnecessary args. Allow DMA functions to return status flags.csapuntz2001-03-251-6/+5
| | | | | | | | | | Note: Changing code to have DMA interface indicate when I/O is done (a la NetBSD) was considered. It was rejected due to questionable backward compatability with ISA DMA and MAC obio DMA Added irqack from NetBSD (though this feature should really be in the PCI interrupt handlers) Use pool
* Add wdc_print_current_modes to print current transfer modes set on thecsapuntz2001-01-291-1/+2
| | | | | | | | | devices. Print after attach in wdc_isa, wdc_isapnp, wdc_pcmcia. pciide_print_modes rewritten to use wdc_print_current_modes. Disable wdc_print_caps since it's not as useful. Inspired by NetBSD. Thanks to Dale and Theo for pointing out this improvement.
* chp->wdc can be NULL on probe.csapuntz2000-07-201-1/+5
| | | | Propagate verbose flag from cf_data to channel
* wdc layer work:csapuntz1999-10-091-2/+1
| | | | | | | | | | | | | | | | Separate wdc_probe_caps into wdc_probe_caps and wdc_print_caps for more flexibility in printing capability information. Get rid of wdc_final_attach. Include name of device (e.g. cd0), if possible, on errors. atapiscsi layer work: Put a pointer to the SCSI device into ata_drive_datas' drv_softc field Simplify, simplify, simplify. Got rid of a bunch of fields in atapiscsi_softc Delay printing capabilities until we know the real device name (e.g. st0)
* Make IDE compile on alpha again:niklas1999-08-051-3/+19
| | | | use b* instead of mem* functions, adhere to NISADMA for DMA support.
* Fix isa_dmamap_* calls to take the correct first argument.csapuntz1999-07-221-7/+21
|
* Import of NetBSD ATA/IDE stuff.csapuntz1999-07-181-0/+235
Introduction of home-grown To enable this stuff in your configuration, look at the NEWATA conf file and go through dev/isa/files.isa dev/pci/files.pci conf/files arch/i386/conf/files.i386 and follow the instructions on commenting/uncommenting stuff