• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/ata/chipsets/

Lines Matching refs:r_res2

263 	if (!(ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2,
269 u_int32_t dimm = ATA_INL(ctlr->r_res2, 0x000c0080);
282 ATA_INL(ctlr->r_res2, 0x000c0088) & (1<<16) ?
286 ATA_OUTL(ctlr->r_res2, 0x000c000c,
287 (ATA_INL(ctlr->r_res2, 0x000c000c) & 0xffff0000));
318 ctlr->channels = ((ATA_INL(ctlr->r_res2, 0x48) & 0x01) > 0) +
319 ((ATA_INL(ctlr->r_res2, 0x48) & 0x02) > 0) + 2;
345 ATA_OUTL(ctlr->r_res2, stat_reg, 0x000000ff);
349 ATA_OUTL(ctlr->r_res2, 0x44, ATA_INL(ctlr->r_res2, 0x44) | 0x2000);
361 if (ctlr->r_res2)
362 bus_release_resource(dev, ctlr->r_type2, ctlr->r_rid2, ctlr->r_res2);
504 (ATA_INL(ctlr->r_res2,
555 ch->r_io[i].res = ctlr->r_res2;
558 ch->r_io[ATA_CONTROL].res = ctlr->r_res2;
560 ch->r_io[ATA_IDX_ADDR].res = ctlr->r_res2;
564 ch->r_io[ATA_SSTATUS].res = ctlr->r_res2;
566 ch->r_io[ATA_SERROR].res = ctlr->r_res2;
568 ch->r_io[ATA_SCONTROL].res = ctlr->r_res2;
611 vector = ATA_INL(ctlr->r_res2, 0x040);
612 ATA_OUTL(ctlr->r_res2, 0x040, vector);
647 status = ATA_INL(ctlr->r_res2, stat_reg);
648 ATA_OUTL(ctlr->r_res2, stat_reg, status & (0x00000011 << ch->unit));
676 ATA_OUTL(ctlr->r_res2, (ch->unit + 1) << 2, 0x00000001);
681 ATA_OUTB(ctlr->r_res2, 0x4e8 + (ch->unit << 8), request->unit & 0x0f);
703 ATA_OUTL(ctlr->r_res2, 0x0240 + (ch->unit << 7), ch->dma.work_bus);
719 ATA_OUTL(ctlr->r_res2, 0xc0260 + (ch->unit << 7), ch->unit + 1);
721 ATA_OUTL(ctlr->r_res2, 0xc0260 + (ch->unit << 7),
722 (ATA_INL(ctlr->r_res2, 0xc0260 + (ch->unit << 7)) &
727 ATA_OUTL(ctlr->r_res2, 0xc012c,
728 (ATA_INL(ctlr->r_res2, 0xc012c) & ~0x00000f9f) | (1 << 11));
730 ATA_OUTL(ctlr->r_res2, 0xc012c,
731 (ATA_INL(ctlr->r_res2, 0xc012c) & ~0x00000f9f));
744 ATA_OUTL(ctlr->r_res2, 0x06c, (0x00110000 << ch->unit));
748 ATA_OUTL(ctlr->r_res2, 0x0260 + (ch->unit << 7), (1 << 11));
750 ATA_OUTL(ctlr->r_res2, 0x0260 + (ch->unit << 7),
751 (ATA_INL(ctlr->r_res2, 0x0260 + (ch->unit << 7)) &
763 ATA_OUTL(ctlr->r_res2, 0x06c, (0x00000011 << ch->unit));
774 //ATA_OUTL(ctlr->r_res2, 0x4e8 + (ch->unit << 8), 0x0f);
777 ATA_OUTL(ctlr->r_res2, 0x060, (0x00110000 << ch->unit));
781 ATA_OUTL(ctlr->r_res2, 0x0260 + (ch->unit << 7), (1 << 11));
783 ATA_OUTL(ctlr->r_res2, 0x0260 + (ch->unit << 7),
784 (ATA_INL(ctlr->r_res2, 0x0260 + (ch->unit << 7)) &
791 ATA_OUTL(ctlr->r_res2, 0x414 + (ch->unit << 8),
792 (ATA_INL(ctlr->r_res2, 0x414 + (ch->unit << 8)) &
826 ATA_OUTL(ctlr->r_res2, 0x060, (0x00000011 << ch->unit));
829 ATA_OUTL(ctlr->r_res2, 0x4e8 + (ch->unit << 8), 0x00);
865 ATA_OUTB(ctlr->r_res2, 0x4e8 + (ch->unit << 8), 0x0f);
916 ATA_OUTB(ctlr->r_res2, 0x4e8 + (ch->unit << 8), 0x0f);
949 ATA_OUTB(ctlr->r_res2, 0x4e8 + (ch->unit << 8), port & 0x0f);
1065 u_int32_t vector = ATA_INL(ctlr->r_res2, 0x000c0480);
1085 ATA_OUTL(ctlr->r_res2, 0x000c0240 + (ch->unit << 7),
1118 ATA_OUTL(ctlr->r_res2, 0x000c0400 + ((ch->unit + 1) << 2), 0x00000001);
1132 ATA_OUTL(ctlr->r_res2, 0x000c0484, 0x00000001);
1133 ATA_OUTL(ctlr->r_res2, 0x000c0400 + ((ch->unit + 1) << 2), 0x00000001);
1134 ATA_OUTL(ctlr->r_res2, 0x000c0240 + (ch->unit << 7),
1181 ATA_OUTL(ctlr->r_res2, 0x000c0484, 0x00000001);
1184 ATA_OUTL(ctlr->r_res2, 0x000c0400 + ((ch->unit+5)<<2), 0x00000001);
1185 ATA_OUTL(ctlr->r_res2, 0x000c0400 + ((ch->unit+9)<<2), 0x00000001);
1186 ATA_OUTL(ctlr->r_res2, 0x000c0240 + (ch->unit << 7),
1190 ATA_OUTL(ctlr->r_res2, 0x000c0400 + ((ch->unit+1)<<2), 0x00000001);
1191 ATA_OUTL(ctlr->r_res2, 0x000c0400 + ((ch->unit+13)<<2), 0x00000001);
1262 ATA_OUTL(ctlr->r_res2, 0x000c0100, hpkt);
1276 ATA_OUTL(ctlr->r_res2, 0x000c0100, hp->addr);