Lines Matching defs:dev
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_ati_chipinit(device_t dev);
55 static int ata_ati_dumb_ch_attach(device_t dev);
56 static int ata_ati_ixp700_ch_attach(device_t dev);
57 static int ata_ati_setmode(device_t dev, int target, int mode);
71 ata_ati_probe(device_t dev)
73 struct ata_pci_controller *ctlr = device_get_softc(dev);
98 if (pci_get_vendor(dev) != ATA_AMD_ID && pci_get_vendor(dev) != ATA_ATI_ID)
101 if (!(ctlr->chip = ata_match_chip(dev, ids)))
115 if (pci_get_subclass(dev) != PCIS_STORAGE_IDE)
121 ata_set_desc(dev);
126 ata_ati_chipinit(device_t dev)
128 struct ata_pci_controller *ctlr = device_get_softc(dev);
132 if (ata_setup_interrupt(dev, ata_generic_intr))
155 device_printf(dev, "SATA controller %s (%s%s channel)\n",
178 ata_ati_dumb_ch_attach(device_t dev)
180 struct ata_channel *ch = device_get_softc(dev);
182 if (ata_pci_ch_attach(dev))
189 ata_ati_ixp700_ch_attach(device_t dev)
191 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev));
192 struct ata_channel *ch = device_get_softc(dev);
196 if (ata_pci_ch_attach(dev))
206 ata_ati_setmode(device_t dev, int target, int mode)
208 device_t parent = device_get_parent(dev);
210 struct ata_channel *ch = device_get_softc(dev);