int
wdcprobe(
struct channel_softc * chp
)
void
wdcattach(
struct channel_softc * chp
)
sys/dev/ic/wdc.c
.
Low-level ATA and ATAPI support is provided by
sys/dev/ata_wdc.c
and
sys/dev/scsipi/atapi_wdc.c
respectively.
An example of a simple bus front-end can be found in
sys/dev/isapnp/wdc_isapnp.c
.
A more complex one, with multiple channels and bus-master DMA support is
sys/dev/pci/pciide.c
.
sys/arch/atari/dev/wdc_mb.c
makes use of hardware locking, and also provides an example of bus-front
end for a big-endian system, which needs byte-swapping bus_space functions.