Unbreak the powerpc build by fixing some ATA constants that were renamed.

Approved by:	grehan (mentor)
This commit is contained in:
ssouhlal 2005-04-12 15:59:54 +00:00
parent 899856ecd8
commit 28f1c84813

View File

@ -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);