Home
last modified time | relevance | path

Searched refs:r_res2 (Results 1 – 9 of 9) sorted by relevance

/freebsd/sys/dev/ata/chipsets/
H A Data-promise.c273 ATA_OUTL(ctlr->r_res2, 0x000c000c, in ata_promise_chipinit()
336 ATA_OUTL(ctlr->r_res2, 0x44, ATA_INL(ctlr->r_res2, 0x44) | 0x2000); in ata_promise_chipinit()
348 if (ctlr->r_res2) in ata_promise_chipinit()
491 (ATA_INL(ctlr->r_res2, in ata_promise_setmode()
542 ch->r_io[i].res = ctlr->r_res2; in ata_promise_mio_ch_attach()
551 ch->r_io[ATA_SSTATUS].res = ctlr->r_res2; in ata_promise_mio_ch_attach()
553 ch->r_io[ATA_SERROR].res = ctlr->r_res2; in ata_promise_mio_ch_attach()
598 vector = ATA_INL(ctlr->r_res2, 0x040); in ata_promise_mio_intr()
599 ATA_OUTL(ctlr->r_res2, 0x040, vector); in ata_promise_mio_intr()
714 ATA_OUTL(ctlr->r_res2, 0xc012c, in ata_promise_mio_reset()
[all …]
H A Data-siliconimage.c132 ATA_OUTL(ctlr->r_res2, 0x0200, 0x00000002); in ata_sii_chipinit()
143 if (ctlr->r_res2) { in ata_sii_chipinit()
250 ch->r_io[i].res = ctlr->r_res2; in ata_sii_ch_attach()
253 ch->r_io[ATA_CONTROL].res = ctlr->r_res2; in ata_sii_ch_attach()
255 ch->r_io[ATA_IDX_ADDR].res = ctlr->r_res2; in ata_sii_ch_attach()
258 ch->r_io[ATA_BMCMD_PORT].res = ctlr->r_res2; in ata_sii_ch_attach()
262 ch->r_io[ATA_BMDTP_PORT].res = ctlr->r_res2; in ata_sii_ch_attach()
266 ch->r_io[ATA_SSTATUS].res = ctlr->r_res2; in ata_sii_ch_attach()
268 ch->r_io[ATA_SERROR].res = ctlr->r_res2; in ata_sii_ch_attach()
270 ch->r_io[ATA_SCONTROL].res = ctlr->r_res2; in ata_sii_ch_attach()
[all …]
H A Data-nvidia.c218 ATA_OUTL(ctlr->r_res2, offset, 0x00ff00ff); in ata_nvidia_chipinit()
221 ATA_OUTL(ctlr->r_res2, offset + 4, 0x000d000d); in ata_nvidia_chipinit()
224 ATA_OUTL(ctlr->r_res2, 0x0400, in ata_nvidia_chipinit()
225 ATA_INL(ctlr->r_res2, 0x0400) & 0xfffffff9); in ata_nvidia_chipinit()
229 ATA_OUTB(ctlr->r_res2, offset, 0xff); in ata_nvidia_chipinit()
232 ATA_OUTB(ctlr->r_res2, offset + 1, 0xdd); in ata_nvidia_chipinit()
256 ch->r_io[ATA_SSTATUS].res = ctlr->r_res2; in ata_nvidia_ch_attach()
258 ch->r_io[ATA_SERROR].res = ctlr->r_res2; in ata_nvidia_ch_attach()
260 ch->r_io[ATA_SCONTROL].res = ctlr->r_res2; in ata_nvidia_ch_attach()
291 istatus = ATA_INL(ctlr->r_res2, offset); in ata_nvidia_status()
[all …]
H A Data-intel.c272 if (ctlr->r_res2 != NULL) { in ata_intel_chipinit()
277 ATA_OUTL(ctlr->r_res2, 0x0C, in ata_intel_chipinit()
278 ATA_INL(ctlr->r_res2, 0x0C) | 0xf); in ata_intel_chipinit()
288 if (ctlr->r_res2 != NULL || in ata_intel_chipinit()
325 if (ctlr->r_res2) { in ata_intel_ch_attach()
326 ch->r_io[ATA_IDX_ADDR].res = ctlr->r_res2; in ata_intel_ch_attach()
328 ch->r_io[ATA_IDX_DATA].res = ctlr->r_res2; in ata_intel_ch_attach()
377 } else if (ctlr->r_res2) { in ata_intel_ch_attach()
724 ATA_OUTL(ctlr->r_res2, offset + reg, value); in ata_intel_sata_ahci_write()
832 ch->r_io[i].res = ctlr->r_res2; in ata_intel_31244_ch_attach()
[all …]
H A Data-serverworks.c109 if (!(ATA_INL(ctlr->r_res2, 0x1f80) & (1 << ch->unit))) in ata_serverworks_status()
133 if (!(ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2, in ata_serverworks_chipinit()
181 ch->r_io[i].res = ctlr->r_res2; in ata_serverworks_ch_attach()
216 ATA_OUTL(ctlr->r_res2, ch_offset + 0x80, in ata_serverworks_ch_attach()
217 ATA_INL(ctlr->r_res2, ch_offset + 0x80) & ~0x00040000); in ata_serverworks_ch_attach()
218 ATA_OUTL(ctlr->r_res2, ch_offset + 0x88, 0); in ata_serverworks_ch_attach()
H A Data-sis.c184 if ((ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2, in ata_sis_chipinit()
211 ch->r_io[ATA_SSTATUS].res = ctlr->r_res2; in ata_sis_ch_attach()
213 ch->r_io[ATA_SERROR].res = ctlr->r_res2; in ata_sis_ch_attach()
215 ch->r_io[ATA_SCONTROL].res = ctlr->r_res2; in ata_sis_ch_attach()
H A Data-via.c164 if ((ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2, in ata_via_chipinit()
247 ch->r_io[ATA_SSTATUS].res = ctlr->r_res2; in ata_via_ch_attach()
249 ch->r_io[ATA_SERROR].res = ctlr->r_res2; in ata_via_ch_attach()
251 ch->r_io[ATA_SCONTROL].res = ctlr->r_res2; in ata_via_ch_attach()
/freebsd/sys/dev/ata/
H A Data-pci.c149 if (ctlr->r_res2) { in ata_pci_detach()
150 bus_release_resource(dev, ctlr->r_type2, ctlr->r_rid2, ctlr->r_res2); in ata_pci_detach()
H A Data-pci.h49 struct resource *r_res2; member