summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorssouhlal <ssouhlal@FreeBSD.org>2005-04-12 15:59:54 +0000
committerssouhlal <ssouhlal@FreeBSD.org>2005-04-12 15:59:54 +0000
commit28f1c84813b1e373262d5f0158bbd37c6462e03f (patch)
treed86b87f892d5c1e0c784b4774a79bc582c01bdef /sys
parent899856ecd8075d9011f75188548ea2b56eb32da4 (diff)
downloadFreeBSD-src-28f1c84813b1e373262d5f0158bbd37c6462e03f.zip
FreeBSD-src-28f1c84813b1e373262d5f0158bbd37c6462e03f.tar.gz
Unbreak the powerpc build by fixing some ATA constants that were renamed.
Approved by: grehan (mentor)
Diffstat (limited to 'sys')
-rw-r--r--sys/powerpc/psim/ata_iobus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/powerpc/psim/ata_iobus.c b/sys/powerpc/psim/ata_iobus.c
index 866bf0e..f01cd97 100644
--- a/sys/powerpc/psim/ata_iobus.c
+++ b/sys/powerpc/psim/ata_iobus.c
@@ -168,11 +168,11 @@ ata_iobus_alloc_resource(device_t dev, device_t child, int type, int *rid,
start, end, count, flags);
break;
- case ATA_ALTADDR_RID:
+ case ATA_CTLADDR_RID:
myrid = 0;
start = ofw_regs[10];
- end = start + ATA_ALTIOSIZE - 1;
- count = ATA_ALTIOSIZE;
+ end = start + ATA_CTLIOSIZE - 1;
+ count = ATA_CTLIOSIZE;
res = BUS_ALLOC_RESOURCE(device_get_parent(dev), child,
SYS_RES_MEMORY, &myrid,
start, end, count, flags);
OpenPOWER on IntegriCloud