Lines Matching refs:r_res2

261 	if (!(ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2,
267 u_int32_t dimm = ATA_INL(ctlr->r_res2, 0x000c0080);
280 ATA_INL(ctlr->r_res2, 0x000c0088) & (1<<16) ?
284 ATA_OUTL(ctlr->r_res2, 0x000c000c,
285 (ATA_INL(ctlr->r_res2, 0x000c000c) & 0xffff0000));
316 ctlr->channels = ((ATA_INL(ctlr->r_res2, 0x48) & 0x01) > 0) +
317 ((ATA_INL(ctlr->r_res2, 0x48) & 0x02) > 0) + 2;
343 ATA_OUTL(ctlr->r_res2, stat_reg, 0x000000ff);
347 ATA_OUTL(ctlr->r_res2, 0x44, ATA_INL(ctlr->r_res2, 0x44) | 0x2000);
359 if (ctlr->r_res2)
360 bus_release_resource(dev, ctlr->r_type2, ctlr->r_rid2, ctlr->r_res2);
502 (ATA_INL(ctlr->r_res2,
553 ch->r_io[i].res = ctlr->r_res2;
556 ch->r_io[ATA_CONTROL].res = ctlr->r_res2;
558 ch->r_io[ATA_IDX_ADDR].res = ctlr->r_res2;
562 ch->r_io[ATA_SSTATUS].res = ctlr->r_res2;
564 ch->r_io[ATA_SERROR].res = ctlr->r_res2;
566 ch->r_io[ATA_SCONTROL].res = ctlr->r_res2;
609 vector = ATA_INL(ctlr->r_res2, 0x040);
610 ATA_OUTL(ctlr->r_res2, 0x040, vector);
645 status = ATA_INL(ctlr->r_res2, stat_reg);
646 ATA_OUTL(ctlr->r_res2, stat_reg, status & (0x00000011 << ch->unit));
674 ATA_OUTL(ctlr->r_res2, (ch->unit + 1) << 2, 0x00000001);
679 ATA_OUTB(ctlr->r_res2, 0x4e8 + (ch->unit << 8), request->unit & 0x0f);
701 ATA_OUTL(ctlr->r_res2, 0x0240 + (ch->unit << 7), ch->dma.work_bus);
717 ATA_OUTL(ctlr->r_res2, 0xc0260 + (ch->unit << 7), ch->unit + 1);
719 ATA_OUTL(ctlr->r_res2, 0xc0260 + (ch->unit << 7),
720 (ATA_INL(ctlr->r_res2, 0xc0260 + (ch->unit << 7)) &
725 ATA_OUTL(ctlr->r_res2, 0xc012c,
726 (ATA_INL(ctlr->r_res2, 0xc012c) & ~0x00000f9f) | (1 << 11));
728 ATA_OUTL(ctlr->r_res2, 0xc012c,
729 (ATA_INL(ctlr->r_res2, 0xc012c) & ~0x00000f9f));
742 ATA_OUTL(ctlr->r_res2, 0x06c, (0x00110000 << ch->unit));
746 ATA_OUTL(ctlr->r_res2, 0x0260 + (ch->unit << 7), (1 << 11));
748 ATA_OUTL(ctlr->r_res2, 0x0260 + (ch->unit << 7),
749 (ATA_INL(ctlr->r_res2, 0x0260 + (ch->unit << 7)) &
761 ATA_OUTL(ctlr->r_res2, 0x06c, (0x00000011 << ch->unit));
772 //ATA_OUTL(ctlr->r_res2, 0x4e8 + (ch->unit << 8), 0x0f);
775 ATA_OUTL(ctlr->r_res2, 0x060, (0x00110000 << ch->unit));
779 ATA_OUTL(ctlr->r_res2, 0x0260 + (ch->unit << 7), (1 << 11));
781 ATA_OUTL(ctlr->r_res2, 0x0260 + (ch->unit << 7),
782 (ATA_INL(ctlr->r_res2, 0x0260 + (ch->unit << 7)) &
789 ATA_OUTL(ctlr->r_res2, 0x414 + (ch->unit << 8),
790 (ATA_INL(ctlr->r_res2, 0x414 + (ch->unit << 8)) &
824 ATA_OUTL(ctlr->r_res2, 0x060, (0x00000011 << ch->unit));
827 ATA_OUTL(ctlr->r_res2, 0x4e8 + (ch->unit << 8), 0x00);
863 ATA_OUTB(ctlr->r_res2, 0x4e8 + (ch->unit << 8), 0x0f);
914 ATA_OUTB(ctlr->r_res2, 0x4e8 + (ch->unit << 8), 0x0f);
947 ATA_OUTB(ctlr->r_res2, 0x4e8 + (ch->unit << 8), port & 0x0f);
1063 u_int32_t vector = ATA_INL(ctlr->r_res2, 0x000c0480);
1083 ATA_OUTL(ctlr->r_res2, 0x000c0240 + (ch->unit << 7),
1116 ATA_OUTL(ctlr->r_res2, 0x000c0400 + ((ch->unit + 1) << 2), 0x00000001);
1130 ATA_OUTL(ctlr->r_res2, 0x000c0484, 0x00000001);
1131 ATA_OUTL(ctlr->r_res2, 0x000c0400 + ((ch->unit + 1) << 2), 0x00000001);
1132 ATA_OUTL(ctlr->r_res2, 0x000c0240 + (ch->unit << 7),
1179 ATA_OUTL(ctlr->r_res2, 0x000c0484, 0x00000001);
1182 ATA_OUTL(ctlr->r_res2, 0x000c0400 + ((ch->unit+5)<<2), 0x00000001);
1183 ATA_OUTL(ctlr->r_res2, 0x000c0400 + ((ch->unit+9)<<2), 0x00000001);
1184 ATA_OUTL(ctlr->r_res2, 0x000c0240 + (ch->unit << 7),
1188 ATA_OUTL(ctlr->r_res2, 0x000c0400 + ((ch->unit+1)<<2), 0x00000001);
1189 ATA_OUTL(ctlr->r_res2, 0x000c0400 + ((ch->unit+13)<<2), 0x00000001);
1260 ATA_OUTL(ctlr->r_res2, 0x000c0100, hpkt);
1274 ATA_OUTL(ctlr->r_res2, 0x000c0100, hp->addr);