HEADS UP: PCI Chnages
M. Warner Losh
imp at bsdimp.com
Sun Apr 11 17:34:15 PDT 2004
Try this patch
Index: ata-pci.c
===================================================================
RCS file: /cache/ncvs/src/sys/dev/ata/ata-pci.c,v
retrieving revision 1.77
diff -u -r1.77 ata-pci.c
--- ata-pci.c 17 Mar 2004 17:50:27 -0000 1.77
+++ ata-pci.c 12 Apr 2004 00:34:28 -0000
@@ -246,7 +246,7 @@
if (type == SYS_RES_IOPORT) {
switch (*rid) {
case ATA_IOADDR_RID:
- if (ATA_MASTERDEV(dev)) {
+ if (0 && ATA_MASTERDEV(dev)) {
myrid = 0;
start = (unit ? ATA_SECONDARY : ATA_PRIMARY);
end = start + ATA_IOSIZE - 1;
@@ -264,7 +264,7 @@
break;
case ATA_ALTADDR_RID:
- if (ATA_MASTERDEV(dev)) {
+ if (0 && ATA_MASTERDEV(dev)) {
myrid = 0;
start = (unit ? ATA_SECONDARY : ATA_PRIMARY) + ATA_ALTOFFSET;
end = start + ATA_ALTIOSIZE - 1;
@@ -321,7 +321,7 @@
if (type == SYS_RES_IOPORT) {
switch (rid) {
case ATA_IOADDR_RID:
- if (ATA_MASTERDEV(dev))
+ if (0 && ATA_MASTERDEV(dev))
return BUS_RELEASE_RESOURCE(device_get_parent(dev), child,
SYS_RES_IOPORT, 0x0, r);
else
@@ -330,7 +330,7 @@
break;
case ATA_ALTADDR_RID:
- if (ATA_MASTERDEV(dev))
+ if (0 && ATA_MASTERDEV(dev))
return BUS_RELEASE_RESOURCE(device_get_parent(dev), child,
SYS_RES_IOPORT, 0x0, r);
else
More information about the freebsd-current
mailing list