re,rl and BURN_BRIDGES

From: Jiri Mikulas <konfer_at_mikulas.com>
Date: Fri, 26 Sep 2003 15:15:44 +0200
Hello
when i use BURN_BRIDGES in kernel config,
it seems that there is resubmited old part of code
in function suspend and resume - PCIR_MAPS symbol
i made diff for me  - see attachment
please could anybody submit corrected version into cvs tree?
i'm not maintainer ...
Thanks for help  :)
Jiri


--- sys/pci/if_rl.c	Thu Sep 11 06:05:01 2003
+++ sys/pci/if_rl.c	Tue Sep 23 16:09:10 2003
_at__at_ -1915,7 +1915,7 _at__at_
 	rl_stop(sc);
 
 	for (i = 0; i < 5; i++)
-		sc->saved_maps[i] = pci_read_config(dev, PCIR_MAPS + i * 4, 4);
+		sc->saved_maps[i] = pci_read_config(dev, PCIR_BAR(i), 4);
 	sc->saved_biosaddr = pci_read_config(dev, PCIR_BIOS, 4);
 	sc->saved_intline = pci_read_config(dev, PCIR_INTLINE, 1);
 	sc->saved_cachelnsz = pci_read_config(dev, PCIR_CACHELNSZ, 1);
_at__at_ -1944,7 +1944,7 _at__at_
 
 	/* better way to do this? */
 	for (i = 0; i < 5; i++)
-		pci_write_config(dev, PCIR_MAPS + i * 4, sc->saved_maps[i], 4);
+		pci_write_config(dev, PCIR_BAR(i), sc->saved_maps[i], 4);
 	pci_write_config(dev, PCIR_BIOS, sc->saved_biosaddr, 4);
 	pci_write_config(dev, PCIR_INTLINE, sc->saved_intline, 1);
 	pci_write_config(dev, PCIR_CACHELNSZ, sc->saved_cachelnsz, 1);
--- sys/dev/re/if_re.c	Sat Sep 20 23:18:27 2003
+++ sys/dev/re/if_re.c	Tue Sep 23 16:06:35 2003
_at__at_ -2423,7 +2423,7 _at__at_
 	re_stop(sc);
 
 	for (i = 0; i < 5; i++)
-		sc->saved_maps[i] = pci_read_config(dev, PCIR_MAPS + i * 4, 4);
+		sc->saved_maps[i] = pci_read_config(dev, PCIR_BAR(i), 4);
 	sc->saved_biosaddr = pci_read_config(dev, PCIR_BIOS, 4);
 	sc->saved_intline = pci_read_config(dev, PCIR_INTLINE, 1);
 	sc->saved_cachelnsz = pci_read_config(dev, PCIR_CACHELNSZ, 1);
_at__at_ -2452,7 +2452,7 _at__at_
 
 	/* better way to do this? */
 	for (i = 0; i < 5; i++)
-		pci_write_config(dev, PCIR_MAPS + i * 4, sc->saved_maps[i], 4);
+		pci_write_config(dev, PCIR_BAR(i), sc->saved_maps[i], 4);
 	pci_write_config(dev, PCIR_BIOS, sc->saved_biosaddr, 4);
 	pci_write_config(dev, PCIR_INTLINE, sc->saved_intline, 1);
 	pci_write_config(dev, PCIR_CACHELNSZ, sc->saved_cachelnsz, 1);
Received on Fri Sep 26 2003 - 04:17:08 UTC

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