Lines Matching refs:iobase1
91 bios_dsk->channels[channel].iobase1 = 0x0;
132 uint16_t iobase1, iobase2;
142 iobase1 = bios_dsk->channels[channel].iobase1;
153 uint8_t status = inb(iobase1+ATA_CB_STAT);
164 outb(iobase1+ATA_CB_DH, slave?ATA_CB_DH_DEV1:ATA_CB_DH_DEV0);
165 sc = inb(iobase1+ATA_CB_SC);
166 sn = inb(iobase1+ATA_CB_SN);
172 uint8_t status = inb(iobase1+ATA_CB_STAT);
186 uint8_t status = inb(iobase1+ATA_CB_STAT);
210 uint16_t iobase1, iobase2, blksize, mult_blk_cnt;
223 iobase1 = bios_dsk->channels[channel].iobase1;
239 status = inb(iobase1 + ATA_CB_STAT);
260 outb(iobase1 + ATA_CB_SC, (count & 0xff00) >> 8);
261 outb(iobase1 + ATA_CB_SN, sector);
262 outb(iobase1 + ATA_CB_CL, cylinder & 0x00ff);
263 outb(iobase1 + ATA_CB_CH, cylinder >> 8);
276 outb(iobase1 + ATA_CB_FR, 0x00);
277 outb(iobase1 + ATA_CB_SC, count);
278 outb(iobase1 + ATA_CB_SN, sector);
279 outb(iobase1 + ATA_CB_CL, cylinder & 0x00ff);
280 outb(iobase1 + ATA_CB_CH, cylinder >> 8);
281 outb(iobase1 + ATA_CB_DH, (slave ? ATA_CB_DH_DEV1 : ATA_CB_DH_DEV0) | (uint8_t) head );
282 outb(iobase1 + ATA_CB_CMD, command);
292 status = inb(iobase1 + ATA_CB_STAT);
320 buffer = rep_insd(buffer, blksize, iobase1);
322 buffer = rep_insw(buffer, blksize, iobase1);
327 status = inb(iobase1 + ATA_CB_STAT);
372 bios_dsk->channels[0].iobase1 = 0x1f0;
378 bios_dsk->channels[1].iobase1 = 0x170;
385 bios_dsk->channels[2].iobase1 = 0x1e8;
391 bios_dsk->channels[3].iobase1 = 0x168;
404 uint16_t iobase1, iobase2;
411 iobase1 = bios_dsk->channels[channel].iobase1;
418 outb(iobase1+ATA_CB_DH, slave ? ATA_CB_DH_DEV1 : ATA_CB_DH_DEV0);
419 outb(iobase1+ATA_CB_SC, 0x55);
420 outb(iobase1+ATA_CB_SN, 0xaa);
421 outb(iobase1+ATA_CB_SC, 0xaa);
422 outb(iobase1+ATA_CB_SN, 0x55);
423 outb(iobase1+ATA_CB_SC, 0x55);
424 outb(iobase1+ATA_CB_SN, 0xaa);
427 sc = inb(iobase1+ATA_CB_SC);
428 sn = inb(iobase1+ATA_CB_SN);
437 outb(iobase1+ATA_CB_DH, slave ? ATA_CB_DH_DEV1 : ATA_CB_DH_DEV0);
438 sc = inb(iobase1+ATA_CB_SC);
439 sn = inb(iobase1+ATA_CB_SN);
441 cl = inb(iobase1+ATA_CB_CL);
442 ch = inb(iobase1+ATA_CB_CH);
443 st = inb(iobase1+ATA_CB_STAT);
687 uint16_t iobase1, iobase2, blksize;
699 iobase1 = bios_dsk->channels[channel].iobase1;
708 status = inb(iobase1 + ATA_CB_STAT);
728 outb(iobase1 + ATA_CB_SC, (count & 0xff00) >> 8);
729 outb(iobase1 + ATA_CB_SN, sector);
730 outb(iobase1 + ATA_CB_CL, cylinder & 0x00ff);
731 outb(iobase1 + ATA_CB_CH, cylinder >> 8);
744 outb(iobase1 + ATA_CB_FR, 0x00);
745 outb(iobase1 + ATA_CB_SC, count);
746 outb(iobase1 + ATA_CB_SN, sector);
747 outb(iobase1 + ATA_CB_CL, cylinder & 0x00ff);
748 outb(iobase1 + ATA_CB_CH, cylinder >> 8);
749 outb(iobase1 + ATA_CB_DH, (slave ? ATA_CB_DH_DEV1 : ATA_CB_DH_DEV0) | (uint8_t) head );
750 outb(iobase1 + ATA_CB_CMD, command);
753 status = inb(iobase1 + ATA_CB_STAT);
781 buffer = rep_outsd(buffer, blksize, iobase1);
783 buffer = rep_outsw(buffer, blksize, iobase1);
789 status = inb(iobase1 + ATA_CB_STAT);
892 uint16_t iobase1, iobase2;
916 iobase1 = bios_dsk->channels[channel].iobase1;
932 status = inb(iobase1 + ATA_CB_STAT);
937 // outb(iobase1 + ATA_CB_FR, 0x00);
938 // outb(iobase1 + ATA_CB_SC, 0x00);
939 // outb(iobase1 + ATA_CB_SN, 0x00);
940 outb(iobase1 + ATA_CB_CL, 0xfff0 & 0x00ff);
941 outb(iobase1 + ATA_CB_CH, 0xfff0 >> 8);
942 outb(iobase1 + ATA_CB_DH, slave ? ATA_CB_DH_DEV1 : ATA_CB_DH_DEV0);
943 outb(iobase1 + ATA_CB_CMD, ATA_CMD_PACKET);
947 status = inb(iobase1 + ATA_CB_STAT);
972 rep_outsw(cmdbuf, cmdlen, iobase1);
975 status = inb(iobase1 + ATA_CB_STAT);
981 status = inb(iobase1 + ATA_CB_STAT);
1013 lcount = ((uint16_t)(inb(iobase1 + ATA_CB_CH))<<8)+inb(iobase1 + ATA_CB_CL);
1073 insd_discard(lbefore, iobase1);
1074 rep_insd(buffer, lcount, iobase1);
1076 insd_discard(lafter, iobase1);
1079 insw_discard(lbefore, iobase1);
1080 rep_insw(buffer, lcount, iobase1);
1082 insw_discard(lafter, iobase1);
1117 uint16_t iobase1, iobase2;
1127 iobase1 = bios_dsk->channels[channel].iobase1;
1132 outb(iobase1 + ATA_CB_DH, slave ? ATA_CB_DH_DEV1 : ATA_CB_DH_DEV0);
1133 outb(iobase1 + ATA_CB_CMD, ATA_CMD_DEVICE_RESET);
1137 status = inb(iobase1 + ATA_CB_STAT);