Lines Matching refs:dev
28 __FBSDID("$FreeBSD: releng/11.0/sys/dev/ata/chipsets/ata-national.c 280393 2015-03-23 19:47:52Z mav $");
47 #include <dev/pci/pcivar.h>
48 #include <dev/pci/pcireg.h>
49 #include <dev/ata/ata-all.h>
50 #include <dev/ata/ata-pci.h>
54 static int ata_national_chipinit(device_t dev);
55 static int ata_national_ch_attach(device_t dev);
56 static int ata_national_setmode(device_t dev, int target, int mode);
62 ata_national_probe(device_t dev)
64 struct ata_pci_controller *ctlr = device_get_softc(dev);
67 if (pci_get_devid(dev) == ATA_SC1100) {
68 device_set_desc(dev, "National Geode SC1100 ATA33 controller");
76 ata_national_chipinit(device_t dev)
78 struct ata_pci_controller *ctlr = device_get_softc(dev);
80 if (ata_setup_interrupt(dev, ata_generic_intr))
89 ata_national_ch_attach(device_t dev)
91 struct ata_channel *ch = device_get_softc(dev);
95 return (ata_pci_ch_attach(dev));
99 ata_national_setmode(device_t dev, int target, int mode)
101 device_t parent = device_get_parent(dev);
102 struct ata_channel *ch = device_get_softc(dev);