Lines Matching refs:dev
28 __FBSDID("$FreeBSD: releng/11.0/sys/dev/ata/chipsets/ata-cyrix.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_cyrix_chipinit(device_t dev);
55 static int ata_cyrix_ch_attach(device_t dev);
56 static int ata_cyrix_setmode(device_t dev, int target, int mode);
62 ata_cyrix_probe(device_t dev)
64 struct ata_pci_controller *ctlr = device_get_softc(dev);
66 if (pci_get_devid(dev) == ATA_CYRIX_5530) {
67 device_set_desc(dev, "Cyrix 5530 ATA33 controller");
75 ata_cyrix_chipinit(device_t dev)
77 struct ata_pci_controller *ctlr = device_get_softc(dev);
79 if (ata_setup_interrupt(dev, ata_generic_intr))
87 ata_cyrix_ch_attach(device_t dev)
89 struct ata_channel *ch = device_get_softc(dev);
93 return (ata_pci_ch_attach(dev));
97 ata_cyrix_setmode(device_t dev, int target, int mode)
99 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev));
100 struct ata_channel *ch = device_get_softc(dev);