summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2002-09-19 04:50:30 +0000
committergrehan <grehan@FreeBSD.org>2002-09-19 04:50:30 +0000
commitcca4d56e84532d9dd3d741652a8bcc5bca43226f (patch)
treeb35aaec67fe32a6ab3fab09f2f3051a75386d161
parent91ea6a395fa1639e288bc86fdd98bf0090fc2a7f (diff)
downloadFreeBSD-src-cca4d56e84532d9dd3d741652a8bcc5bca43226f.zip
FreeBSD-src-cca4d56e84532d9dd3d741652a8bcc5bca43226f.tar.gz
softc and register defs for the UniNorth chip
Approved by: benno
-rw-r--r--sys/powerpc/powermac/uninorthvar.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/sys/powerpc/powermac/uninorthvar.h b/sys/powerpc/powermac/uninorthvar.h
index 56fb3d3..7269cec 100644
--- a/sys/powerpc/powermac/uninorthvar.h
+++ b/sys/powerpc/powermac/uninorthvar.h
@@ -52,4 +52,22 @@ struct uninorth_softc {
bus_dma_tag_t sc_dmat;
};
-#endif /* _POWERPC_POWERMAC_UNINORTHVAR_H_ */
+struct unin_chip_softc {
+ vm_offset_t sc_physaddr;
+ vm_offset_t sc_addr;
+ u_int sc_size;
+ int sc_version;
+};
+
+/*
+ * Version register
+ */
+#define UNIN_VERS 0x0
+
+/*
+ * Clock-control register
+ */
+#define UNIN_CLOCKCNTL 0x20
+#define UNIN_CLOCKCNTL_GMAC 0x2
+
+#endif /* _POWERPC_POWERMAC_UNINORTHVAR_H_ */
OpenPOWER on IntegriCloud