Lines Matching refs:dev
28 __FBSDID("$FreeBSD: releng/11.0/sys/dev/ata/chipsets/ata-cypress.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_cypress_chipinit(device_t dev);
55 static int ata_cypress_setmode(device_t dev, int target, int mode);
62 ata_cypress_probe(device_t dev)
64 struct ata_pci_controller *ctlr = device_get_softc(dev);
73 if (pci_get_devid(dev) == ATA_CYPRESS_82C693 &&
74 pci_get_function(dev) == 1 &&
75 pci_get_subclass(dev) == PCIS_STORAGE_IDE) {
76 device_set_desc(dev, "Cypress 82C693 ATA controller");
84 ata_cypress_chipinit(device_t dev)
86 struct ata_pci_controller *ctlr = device_get_softc(dev);
88 if (ata_setup_interrupt(dev, ata_generic_intr))
96 ata_cypress_setmode(device_t dev, int target, int mode)
98 device_t parent = device_get_parent(dev);
99 struct ata_channel *ch = device_get_softc(dev);