Lines Matching refs:ctlr
76 struct ata_pci_controller *ctlr = device_get_softc(dev);
94 if (!(ctlr->chip = ata_match_chip(dev, ids)))
98 ctlr->chipinit = ata_serverworks_chipinit;
106 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev));
111 if (!(ATA_INL(ctlr->r_res2, 0x1f80) & (1 << ch->unit)))
127 struct ata_pci_controller *ctlr = device_get_softc(dev);
132 if (ctlr->chip->cfg1 == SWKS_MIO) {
133 ctlr->r_type2 = SYS_RES_MEMORY;
134 ctlr->r_rid2 = PCIR_BAR(5);
135 if (!(ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2,
136 &ctlr->r_rid2, RF_ACTIVE)))
139 ctlr->channels = ctlr->chip->cfg2;
140 ctlr->ch_attach = ata_serverworks_ch_attach;
141 ctlr->ch_detach = ata_serverworks_ch_detach;
142 ctlr->setmode = ata_sata_setmode;
143 ctlr->getrev = ata_sata_getrev;
144 ctlr->reset = ata_serverworks_sata_reset;
147 else if (ctlr->chip->cfg1 == SWKS_33) {
166 ((ctlr->chip->cfg1 == SWKS_100) ? 0x03 : 0x02), 1);
168 ctlr->setmode = ata_serverworks_setmode;
175 struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev));
183 ch->r_io[i].res = ctlr->r_res2;
212 if (ctlr->chip->chipid == ATA_K2) {
218 ATA_OUTL(ctlr->r_res2, ch_offset + 0x80,
219 ATA_INL(ctlr->r_res2, ch_offset + 0x80) & ~0x00040000);
220 ATA_OUTL(ctlr->r_res2, ch_offset + 0x88, 0);
317 struct ata_pci_controller *ctlr = device_get_softc(parent);
325 mode = min(mode, ctlr->chip->max_dma);
359 if (ctlr->chip->cfg1 != SWKS_33) {