Searched refs:r_res2 (Results 1 – 7 of 7) sorted by relevance
/freebsd/sys/dev/ata/chipsets/ |
H A D | ata-siliconimage.c | 114 if (!(ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2, in ata_sii_chipinit() 132 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() 260 ch->r_io[ATA_BMSTAT_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() [all …]
|
H A D | ata-nvidia.c | 204 if ((ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2, in ata_nvidia_chipinit() 218 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() [all …]
|
H A D | ata-intel.c | 230 if (!(ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2, in ata_intel_chipinit() 270 ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2, in ata_intel_chipinit() 272 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() 285 ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2, 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() [all …]
|
H A D | ata-serverworks.c | 109 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 D | ata-via.c | 164 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 D | ata-pci.c | 152 if (ctlr->r_res2) { in ata_pci_detach() 153 bus_release_resource(dev, ctlr->r_type2, ctlr->r_rid2, ctlr->r_res2); in ata_pci_detach()
|
H A D | ata-pci.h | 49 struct resource *r_res2; member
|