patch-2.1.97 linux/arch/sparc64/kernel/central.c

Next file: linux/arch/sparc64/kernel/cpu.c
Previous file: linux/arch/sparc64/kernel/binfmt_aout32.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.96/linux/arch/sparc64/kernel/central.c linux/arch/sparc64/kernel/central.c
@@ -1,4 +1,4 @@
-/* $Id: central.c,v 1.4 1997/08/19 14:17:49 jj Exp $
+/* $Id: central.c,v 1.5 1998/02/12 15:57:59 jj Exp $
  * central.c: Central FHC driver for Sunfire/Starfire/Wildfire.
  *
  * Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu)
@@ -35,22 +35,18 @@
 		printk("no central found.\n");
 		return memory_start;
 	}
-	prom_printf("CENTRAL: found central PROM node.\n");
 	printk("found central PROM node.\n");
 
 	/* Ok we got one, grab some memory for software state. */
 	memory_start = long_align(memory_start);
 	central_bus = (struct linux_central *) (memory_start);
 
-	prom_printf("CENTRAL: central_bus[%p] ", central_bus);
 	memory_start += sizeof(struct linux_central);
 	memory_start = long_align(memory_start);
 	fhc = (struct linux_fhc *)(memory_start);
 	memory_start += sizeof(struct linux_fhc);
 	memory_start = long_align(memory_start);
 
-	prom_printf("fhc[%p] ", fhc);
-
 	/* First init central. */
 	central_bus->child = fhc;
 	central_bus->prom_node = cnode;
@@ -58,7 +54,6 @@
 	prom_getstring(cnode, "name", namebuf, sizeof(namebuf));
 	strcpy(central_bus->prom_name, namebuf);
 
-	prom_printf("init_central_ranges ");
 	prom_central_ranges_init(cnode, central_bus);
 
 	/* And then central's FHC. */
@@ -73,27 +68,15 @@
 	prom_getstring(fnode, "name", namebuf, sizeof(namebuf));
 	strcpy(fhc->prom_name, namebuf);
 
-	prom_printf("cnode[%x] fnode[%x] init_fhc_ranges\n", cnode, fnode);
 	prom_fhc_ranges_init(fnode, fhc);
 
-	/* Finally, map in FHC register set.  (From the prtconf dumps
-	 * I have seen on Ex000 boxes only the central ranges need to
-	 * be applied to the fhc internal register set) -DaveM
-	 */
-	err = prom_getproperty(fnode, "reg", (char *)&fpregs[0], sizeof(fpregs));
-	if(err == -1) {
+	/* Finally, map in FHC register set. */
+	if (prom_getproperty(fnode, "reg", (char *)&fpregs[0], sizeof(fpregs)) == -1) {
 		prom_printf("CENTRAL: fatal error, cannot get fhc regs.\n");
 		prom_halt();
 	}
 	prom_apply_central_ranges(central_bus, &fpregs[0], 6);
-	prom_printf("CENTRAL: FHC_REGS[(%08x,%08x) (%08x,%08x) "
-		    "(%08x,%08x) (%08x,%08x) (%08x,%08x) (%08x,%08x)]\n",
-		    fpregs[0].which_io, fpregs[0].phys_addr,
-		    fpregs[1].which_io, fpregs[1].phys_addr,
-		    fpregs[2].which_io, fpregs[2].phys_addr,
-		    fpregs[3].which_io, fpregs[3].phys_addr,
-		    fpregs[4].which_io, fpregs[4].phys_addr,
-		    fpregs[5].which_io, fpregs[5].phys_addr);
+	
 	fhc->fhc_regs.pregs = (struct fhc_internal_regs *)
 		__va((((unsigned long)fpregs[0].which_io)<<32) |
 		     (((unsigned long)fpregs[0].phys_addr)));
@@ -112,14 +95,8 @@
 	fhc->fhc_regs.tregs = (struct fhc_tod_regs *)
 		__va((((unsigned long)fpregs[5].which_io)<<32) |
 		     (((unsigned long)fpregs[5].phys_addr)));
-	prom_printf("CENTRAL: FHC_REGS[%p %p %p %p %p %p]\n",
-		    fhc->fhc_regs.pregs, fhc->fhc_regs.ireg,
-		    fhc->fhc_regs.ffregs, fhc->fhc_regs.sregs,
-		    fhc->fhc_regs.uregs, fhc->fhc_regs.tregs);
 
-	prom_printf("CENTRAL: reading FHC_ID register... ");
 	err = fhc->fhc_regs.pregs->fhc_id;
-	prom_printf("VALUE[%x]\n", err);
 	printk("FHC Version[%x] PartID[%x] Manufacturer[%x]\n",
 	       ((err & FHC_ID_VERS) >> 28),
 	       ((err & FHC_ID_PARTID) >> 12),

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov