Re: HEADS UP: PCI Chnages

From: M. Warner Losh <imp_at_bsdimp.com>
Date: Sun, 11 Apr 2004 18:34:55 -0600 (MDT)
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
_at__at_ -246,7 +246,7 _at__at_
     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;
_at__at_ -264,7 +264,7 _at__at_
 	    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;
_at__at_ -321,7 +321,7 _at__at_
     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
_at__at_ -330,7 +330,7 _at__at_
 	    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
Received on Sun Apr 11 2004 - 15:34:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:50 UTC