Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc G/c unused fields in mspcic_softc.
details: https://anonhg.NetBSD.org/src/rev/a392d64a3dab
branches: trunk
changeset: 584565:a392d64a3dab
user: uwe <uwe%NetBSD.org@localhost>
date: Sat Sep 24 00:49:23 2005 +0000
description:
G/c unused fields in mspcic_softc.
diffstat:
sys/arch/sparc/sparc/msiiep.c | 14 ++++----------
sys/arch/sparc/sparc/msiiepvar.h | 14 ++++----------
2 files changed, 8 insertions(+), 20 deletions(-)
diffs (75 lines):
diff -r e8a00f31c8b1 -r a392d64a3dab sys/arch/sparc/sparc/msiiep.c
--- a/sys/arch/sparc/sparc/msiiep.c Sat Sep 24 00:35:08 2005 +0000
+++ b/sys/arch/sparc/sparc/msiiep.c Sat Sep 24 00:49:23 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msiiep.c,v 1.26 2005/09/23 23:22:57 uwe Exp $ */
+/* $NetBSD: msiiep.c,v 1.27 2005/09/24 00:49:23 uwe Exp $ */
/*
* Copyright (c) 2001 Valeriy E. Ushakov
@@ -27,7 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: msiiep.c,v 1.26 2005/09/23 23:22:57 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msiiep.c,v 1.27 2005/09/24 00:49:23 uwe Exp $");
#include <sys/param.h>
#include <sys/malloc.h>
@@ -267,22 +267,16 @@
struct pcibus_attach_args pba;
sc->sc_node = node;
- sc->sc_clockfreq = prom_getpropint(node, "clock-frequency", 33333333);
/* copy parent tags */
sc->sc_bustag = ma->ma_bustag;
sc->sc_dmatag = ma->ma_dmatag;
- /*
- * PCIC registers are mapped at a fixed VA because counters,
- * interrupt registers etc are there. Just save that mapping.
- */
- sc->sc_bh = (bus_space_handle_t)MSIIEP_PCIC_VA;
-
/* print our PCI device info and bus clock frequency */
pci_devinfo(mspcic_read_4(pcic_id), mspcic_read_4(pcic_class), 0,
devinfo, sizeof(devinfo));
- printf(": %s: clock = %s MHz\n", devinfo, clockfreq(sc->sc_clockfreq));
+ printf(": %s: clock = %s MHz\n", devinfo,
+ clockfreq(prom_getpropint(node, "clock-frequency", 33333333)));
mspcic_init_maps();
diff -r e8a00f31c8b1 -r a392d64a3dab sys/arch/sparc/sparc/msiiepvar.h
--- a/sys/arch/sparc/sparc/msiiepvar.h Sat Sep 24 00:35:08 2005 +0000
+++ b/sys/arch/sparc/sparc/msiiepvar.h Sat Sep 24 00:49:23 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: msiiepvar.h,v 1.4 2005/06/03 22:17:18 martin Exp $ */
+/* $NetBSD: msiiepvar.h,v 1.5 2005/09/24 00:49:23 uwe Exp $ */
/*
* Copyright (c) 2001 Valeriy E. Ushakov
@@ -38,19 +38,13 @@
struct mspcic_softc {
struct device sc_dev;
+ /* PROM node */
+ int sc_node;
+
/* parent (mainbus) tags */
bus_space_tag_t sc_bustag;
bus_dma_tag_t sc_dmatag;
- /*
- * PCIC control registers. Not that we need this field, as
- * they are mapped as fixed VA (MSIIEP_PCIC_VA) anyway.
- */
- bus_space_handle_t sc_bh;
-
- int sc_node; /* prom node */
- int sc_clockfreq; /* in Hz */
-
/* our tags */
bus_space_tag_t sc_memt;
bus_space_tag_t sc_iot;
Home |
Main Index |
Thread Index |
Old Index