summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/powermac/ata_kauai.c4
-rw-r--r--sys/powerpc/powermac/ata_macio.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/powerpc/powermac/ata_kauai.c b/sys/powerpc/powermac/ata_kauai.c
index 85b0daf..677e912 100644
--- a/sys/powerpc/powermac/ata_kauai.c
+++ b/sys/powerpc/powermac/ata_kauai.c
@@ -177,9 +177,9 @@ ata_kauai_probe(device_t dev)
ch->r_io[i].res = mem;
ch->r_io[i].offset = i*ATA_KAUAI_REGGAP + ATA_KAUAI_REGOFFSET;
}
+ ch->r_io[ATA_CONTROL].res = mem;
+ ch->r_io[ATA_CONTROL].offset = ATA_KAUAI_ALTOFFSET;
ata_default_registers(ch);
- ch->r_io[ATA_ALTSTAT].res = mem;
- ch->r_io[ATA_ALTSTAT].offset = ATA_KAUAI_ALTOFFSET;
ch->unit = 0;
ch->flags |= ATA_USE_16BIT|ATA_NO_SLAVE;
diff --git a/sys/powerpc/powermac/ata_macio.c b/sys/powerpc/powermac/ata_macio.c
index 1bf464e..5d91c3a 100644
--- a/sys/powerpc/powermac/ata_macio.c
+++ b/sys/powerpc/powermac/ata_macio.c
@@ -114,9 +114,9 @@ ata_macio_probe(device_t dev)
ch->r_io[i].res = mem;
ch->r_io[i].offset = i * ATA_MACIO_REGGAP;
}
+ ch->r_io[ATA_CONTROL].res = mem;
+ ch->r_io[ATA_CONTROL].offset = ATA_MACIO_ALTOFFSET;
ata_default_registers(ch);
- ch->r_io[ATA_ALTSTAT].res = mem;
- ch->r_io[ATA_ALTSTAT].offset = ATA_MACIO_ALTOFFSET;
ch->unit = 0;
ch->flags |= ATA_USE_16BIT;
OpenPOWER on IntegriCloud