PERFORCE change 155804 for review

Oleksandr Tymoshenko gonzo at FreeBSD.org
Thu Jan 8 05:40:12 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=155804

Change 155804 by gonzo at gonzo_figaro on 2009/01/08 05:39:36

	o Clean code while I'm here looking for pcib(4) examples

Affected files ...

.. //depot/projects/mips2/src/sys/mips/idt/idtpci.c#4 edit

Differences ...

==== //depot/projects/mips2/src/sys/mips/idt/idtpci.c#4 (text+ko) ====

@@ -125,8 +125,6 @@
 	struct rman		sc_mem_rman[2];
 	struct rman		sc_io_rman[2];
 	struct rman		sc_irq_rman;
-	uint32_t		sc_mem;
-	uint32_t		sc_io;
 };
 
 static uint32_t
@@ -155,9 +153,6 @@
 	sc->sc_dev = dev;
 	sc->sc_busno = busno;
 
-	sc->sc_io = 0;
-	sc->sc_mem = 0;
-
 	/* TODO: Check for host mode */
 
 	/* Enabled PCI, IG mode, EAP mode */
@@ -240,7 +235,6 @@
 	}
 
 	/* Use KSEG1 to access IO ports for it is uncached */
-	sc->sc_io = 0;
 	sc->sc_io_rman[0].rm_type = RMAN_ARRAY;
 	sc->sc_io_rman[0].rm_descr = "IDTPCI I/O Ports window 1";
 	if (rman_init(&sc->sc_io_rman[0]) != 0 ||
@@ -258,7 +252,6 @@
 	}
 
 	/* Use KSEG1 to access PCI memory for it is uncached */
-	sc->sc_mem = 0;
 	sc->sc_mem_rman[0].rm_type = RMAN_ARRAY;
 	sc->sc_mem_rman[0].rm_descr = "IDTPCI PCI Memory window 1";
 	if (rman_init(&sc->sc_mem_rman[0]) != 0 ||


More information about the p4-projects mailing list