Home
last modified time | relevance | path

Searched refs:r_io (Results 1 – 13 of 13) sorted by relevance

/freebsd/sys/dev/ata/
H A Data-all.h401 struct ata_resource r_io[ATA_MAX_RES];/* I/O resources */ member
537 ATA_INB(ch->r_io[idx].res, ch->r_io[idx].offset)
540 ATA_INW(ch->r_io[idx].res, ch->r_io[idx].offset)
543 ATA_INW_STRM(ch->r_io[idx].res, ch->r_io[idx].offset)
546 ATA_INL(ch->r_io[idx].res, ch->r_io[idx].offset)
549 ATA_INSW(ch->r_io[idx].res, ch->r_io[idx].offset, addr, count)
552 ATA_INSW_STRM(ch->r_io[idx].res, ch->r_io[idx].offset, addr, count)
555 ATA_INSL(ch->r_io[idx].res, ch->r_io[idx].offset, addr, count)
558 ATA_INSL_STRM(ch->r_io[idx].res, ch->r_io[idx].offset, addr, count)
561 ATA_OUTB(ch->r_io[idx].res, ch->r_io[idx].offset, value)
[all …]
H A Data-isa.c131 ch->r_io[i].res = io; in ata_isa_attach()
132 ch->r_io[i].offset = i; in ata_isa_attach()
134 ch->r_io[ATA_CONTROL].res = ctlio; in ata_isa_attach()
135 ch->r_io[ATA_CONTROL].offset = 0; in ata_isa_attach()
136 ch->r_io[ATA_IDX_ADDR].res = io; in ata_isa_attach()
159 ch->r_io[ATA_CONTROL].res); in ata_isa_detach()
161 ch->r_io[ATA_IDX_ADDR].res); in ata_isa_detach()
H A Data-all.c415 ch->r_io[ATA_ERROR].res = ch->r_io[ATA_FEATURE].res; in ata_default_registers()
416 ch->r_io[ATA_ERROR].offset = ch->r_io[ATA_FEATURE].offset; in ata_default_registers()
417 ch->r_io[ATA_IREASON].res = ch->r_io[ATA_COUNT].res; in ata_default_registers()
418 ch->r_io[ATA_IREASON].offset = ch->r_io[ATA_COUNT].offset; in ata_default_registers()
419 ch->r_io[ATA_STATUS].res = ch->r_io[ATA_COMMAND].res; in ata_default_registers()
420 ch->r_io[ATA_STATUS].offset = ch->r_io[ATA_COMMAND].offset; in ata_default_registers()
421 ch->r_io[ATA_ALTSTAT].res = ch->r_io[ATA_CONTROL].res; in ata_default_registers()
422 ch->r_io[ATA_ALTSTAT].offset = ch->r_io[ATA_CONTROL].offset; in ata_default_registers()
H A Data-sata.c87 if (ch->r_io[reg].res) { in ata_sata_scr_read()
100 if (ch->r_io[reg].res) { in ata_sata_scr_write()
238 if (ch->r_io[ATA_SSTATUS].res) in ata_sata_getrev()
/freebsd/sys/dev/ata/chipsets/
H A Data-siliconimage.c250 ch->r_io[i].res = ctlr->r_res2; in ata_sii_ch_attach()
251 ch->r_io[i].offset = 0x80 + i + (unit01 << 6) + (unit10 << 8); in ata_sii_ch_attach()
253 ch->r_io[ATA_CONTROL].res = ctlr->r_res2; in ata_sii_ch_attach()
254 ch->r_io[ATA_CONTROL].offset = 0x8a + (unit01 << 6) + (unit10 << 8); 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()
259 ch->r_io[ATA_BMCMD_PORT].offset = 0x00 + (unit01 << 3) + (unit10 << 8); in ata_sii_ch_attach()
260 ch->r_io[ATA_BMSTAT_PORT].res = ctlr->r_res2; in ata_sii_ch_attach()
261 ch->r_io[ATA_BMSTAT_PORT].offset = 0x02 + (unit01 << 3) + (unit10 << 8); in ata_sii_ch_attach()
262 ch->r_io[ATA_BMDTP_PORT].res = ctlr->r_res2; in ata_sii_ch_attach()
[all …]
H A Data-serverworks.c181 ch->r_io[i].res = ctlr->r_res2; in ata_serverworks_ch_attach()
184 ch->r_io[ATA_DATA].offset = ch_offset + 0x00; in ata_serverworks_ch_attach()
185 ch->r_io[ATA_FEATURE].offset = ch_offset + 0x04; in ata_serverworks_ch_attach()
186 ch->r_io[ATA_COUNT].offset = ch_offset + 0x08; in ata_serverworks_ch_attach()
187 ch->r_io[ATA_SECTOR].offset = ch_offset + 0x0c; in ata_serverworks_ch_attach()
188 ch->r_io[ATA_CYL_LSB].offset = ch_offset + 0x10; in ata_serverworks_ch_attach()
189 ch->r_io[ATA_CYL_MSB].offset = ch_offset + 0x14; in ata_serverworks_ch_attach()
190 ch->r_io[ATA_DRIVE].offset = ch_offset + 0x18; in ata_serverworks_ch_attach()
191 ch->r_io[ATA_COMMAND].offset = ch_offset + 0x1c; in ata_serverworks_ch_attach()
192 ch->r_io[ATA_CONTROL].offset = ch_offset + 0x20; in ata_serverworks_ch_attach()
[all …]
H A Data-via.c214 struct resource *r_io; in ata_via_ch_attach() local
220 if (!(r_io = bus_alloc_resource_any(device_get_parent(dev), in ata_via_ch_attach()
226 ch->r_io[i].res = r_io; in ata_via_ch_attach()
227 ch->r_io[i].offset = i; in ata_via_ch_attach()
229 ch->r_io[ATA_CONTROL].res = r_io; in ata_via_ch_attach()
230 ch->r_io[ATA_CONTROL].offset = 2 + ATA_IOSIZE; in ata_via_ch_attach()
231 ch->r_io[ATA_IDX_ADDR].res = r_io; in ata_via_ch_attach()
234 ch->r_io[i].res = ctlr->r_res1; in ata_via_ch_attach()
235 ch->r_io[i].offset = (i - ATA_BMCMD_PORT)+(ch->unit * ATA_BMIOSIZE); in ata_via_ch_attach()
247 ch->r_io[ATA_SSTATUS].res = ctlr->r_res2; in ata_via_ch_attach()
[all …]
H A Data-intel.c326 ch->r_io[ATA_IDX_ADDR].res = ctlr->r_res2; in ata_intel_ch_attach()
327 ch->r_io[ATA_IDX_ADDR].offset = 0x00; in ata_intel_ch_attach()
328 ch->r_io[ATA_IDX_DATA].res = ctlr->r_res2; in ata_intel_ch_attach()
329 ch->r_io[ATA_IDX_DATA].offset = 0x04; in ata_intel_ch_attach()
832 ch->r_io[i].res = ctlr->r_res2; in ata_intel_31244_ch_attach()
835 ch->r_io[ATA_DATA].offset = ch_offset + 0x00; in ata_intel_31244_ch_attach()
836 ch->r_io[ATA_FEATURE].offset = ch_offset + 0x06; in ata_intel_31244_ch_attach()
837 ch->r_io[ATA_COUNT].offset = ch_offset + 0x08; in ata_intel_31244_ch_attach()
838 ch->r_io[ATA_SECTOR].offset = ch_offset + 0x0c; in ata_intel_31244_ch_attach()
839 ch->r_io[ATA_CYL_LSB].offset = ch_offset + 0x10; in ata_intel_31244_ch_attach()
[all …]
H A Data-acerlabs.c236 ch->r_io[i].res = io; in ata_ali_sata_ch_attach()
237 ch->r_io[i].offset = i + (unit10 ? 8 : 0); in ata_ali_sata_ch_attach()
239 ch->r_io[ATA_CONTROL].res = ctlio; in ata_ali_sata_ch_attach()
240 ch->r_io[ATA_CONTROL].offset = 2 + (unit10 ? 4 : 0); in ata_ali_sata_ch_attach()
241 ch->r_io[ATA_IDX_ADDR].res = io; in ata_ali_sata_ch_attach()
245 ch->r_io[i].res = ctlr->r_res1; in ata_ali_sata_ch_attach()
246 ch->r_io[i].offset = (i - ATA_BMCMD_PORT)+(ch->unit * ATA_BMIOSIZE); in ata_ali_sata_ch_attach()
H A Data-cyrix.c114 ATA_OUTL(ch->r_io[ATA_BMCMD_PORT].res, in ata_cyrix_setmode()
119 ATA_OUTL(ch->r_io[ATA_BMCMD_PORT].res, in ata_cyrix_setmode()
126 ATA_OUTL(ch->r_io[ATA_BMCMD_PORT].res, in ata_cyrix_setmode()
H A Data-nvidia.c256 ch->r_io[ATA_SSTATUS].res = ctlr->r_res2; in ata_nvidia_ch_attach()
257 ch->r_io[ATA_SSTATUS].offset = (ch->unit << 6); in ata_nvidia_ch_attach()
258 ch->r_io[ATA_SERROR].res = ctlr->r_res2; in ata_nvidia_ch_attach()
259 ch->r_io[ATA_SERROR].offset = 0x04 + (ch->unit << 6); in ata_nvidia_ch_attach()
260 ch->r_io[ATA_SCONTROL].res = ctlr->r_res2; in ata_nvidia_ch_attach()
261 ch->r_io[ATA_SCONTROL].offset = 0x08 + (ch->unit << 6); in ata_nvidia_ch_attach()
/freebsd/sys/powerpc/powermac/
H A Data_kauai.c263 ch->r_io[i].res = sc->sc_memr; in ata_kauai_attach()
264 ch->r_io[i].offset = i*ATA_KAUAI_REGGAP + ATA_KAUAI_REGOFFSET; in ata_kauai_attach()
266 ch->r_io[ATA_CONTROL].res = sc->sc_memr; in ata_kauai_attach()
267 ch->r_io[ATA_CONTROL].offset = ATA_KAUAI_ALTOFFSET; in ata_kauai_attach()
H A Data_macio.c205 ch->r_io[i].res = sc->sc_mem; in ata_macio_attach()
206 ch->r_io[i].offset = i * ATA_MACIO_REGGAP; in ata_macio_attach()
208 ch->r_io[ATA_CONTROL].res = sc->sc_mem; in ata_macio_attach()
209 ch->r_io[ATA_CONTROL].offset = ATA_MACIO_ALTOFFSET; in ata_macio_attach()