Home
last modified time | relevance | path

Searched refs:unit10 (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/dev/ata/chipsets/
H A Data-siliconimage.c246 int unit01 = (ch->unit & 1), unit10 = (ch->unit & 2); in ata_sii_ch_attach() local
251 ch->r_io[i].offset = 0x80 + i + (unit01 << 6) + (unit10 << 8); in ata_sii_ch_attach()
254 ch->r_io[ATA_CONTROL].offset = 0x8a + (unit01 << 6) + (unit10 << 8); in ata_sii_ch_attach()
259 ch->r_io[ATA_BMCMD_PORT].offset = 0x00 + (unit01 << 3) + (unit10 << 8); in ata_sii_ch_attach()
261 ch->r_io[ATA_BMSTAT_PORT].offset = 0x02 + (unit01 << 3) + (unit10 << 8); in ata_sii_ch_attach()
263 ch->r_io[ATA_BMDTP_PORT].offset = 0x04 + (unit01 << 3) + (unit10 << 8); in ata_sii_ch_attach()
267 ch->r_io[ATA_SSTATUS].offset = 0x104 + (unit01 << 7) + (unit10 << 8); in ata_sii_ch_attach()
269 ch->r_io[ATA_SERROR].offset = 0x108 + (unit01 << 7) + (unit10 << 8); in ata_sii_ch_attach()
271 ch->r_io[ATA_SCONTROL].offset = 0x100 + (unit01 << 7) + (unit10 << 8); in ata_sii_ch_attach()
277 ATA_OUTL(ctlr->r_res2, 0x148 + (unit01 << 7) + (unit10 << 8),(1 << 16)); in ata_sii_ch_attach()
H A Data-acerlabs.c223 int unit01 = (ch->unit & 1), unit10 = (ch->unit & 2); in ata_ali_sata_ch_attach() local
237 ch->r_io[i].offset = i + (unit10 ? 8 : 0); in ata_ali_sata_ch_attach()
240 ch->r_io[ATA_CONTROL].offset = 2 + (unit10 ? 4 : 0); in ata_ali_sata_ch_attach()