summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev/schizovar.h
diff options
context:
space:
mode:
authorHenric Jungheim <henric@cvs.openbsd.org>2003-02-17 01:29:22 +0000
committerHenric Jungheim <henric@cvs.openbsd.org>2003-02-17 01:29:22 +0000
commitecebaec0fd1a08a0975b8f756936722a40ae03a6 (patch)
tree59277d25c05e37b02700a112ccaf0a5859342f3b /sys/arch/sparc64/dev/schizovar.h
parent914c2239132eb3f27af97793d1c7534d2e08045d (diff)
Add support for the Sun Enterprise 450
Reduce the size of a GENERIC kernel by ~190k Remove the nasty pointer/bus_space_handle_t casts Adds debug bus_space code including the ability to trace bus operations (it actually works now). The following rules are now followed (and verfified by the debug code): 1. A "bus_space_handle_t" may only be used with the "bus_space_tag_t" that created it. 2. Only "bus_space_map()" may create "bus_space_handle_t"s. 3. A "bus_space_handle_t" may not be modified after it has been created (other than being destroyed by "bus_space_unmap()"). Thanks to help from mcbride, marc, jason, drahn, to anyone that might have slipped my mind at the moment. ok jason@, deraadt@
Diffstat (limited to 'sys/arch/sparc64/dev/schizovar.h')
-rw-r--r--sys/arch/sparc64/dev/schizovar.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/sparc64/dev/schizovar.h b/sys/arch/sparc64/dev/schizovar.h
index b312b04bb90..d84b48d333f 100644
--- a/sys/arch/sparc64/dev/schizovar.h
+++ b/sys/arch/sparc64/dev/schizovar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: schizovar.h,v 1.2 2002/07/18 16:45:08 jason Exp $ */
+/* $OpenBSD: schizovar.h,v 1.3 2003/02/17 01:29:20 henric Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -42,6 +42,8 @@ struct schizo_pbm {
bus_space_tag_t sp_memt;
bus_space_tag_t sp_iot;
+ bus_space_tag_t sp_regt;
+ bus_space_handle_t sp_regh;
bus_space_tag_t sp_cfgt;
bus_space_handle_t sp_cfgh;
bus_dma_tag_t sp_dmat;
@@ -50,6 +52,8 @@ struct schizo_pbm {
int sp_bus_a;
bus_addr_t sp_confpaddr;
struct iommu_state sp_is;
+ struct strbuf_ctl sp_sb;
+ char pp_flush[0x80];
};
struct schizo_softc {
@@ -57,9 +61,6 @@ struct schizo_softc {
int sc_node;
bus_dma_tag_t sc_dmat;
bus_space_tag_t sc_bust;
- bus_space_tag_t sc_bustag;
- struct iommu_state *sc_is;
bus_addr_t sc_ctrl;
bus_space_handle_t sc_ctrlh;
- struct schizo_regs *sc_regs;
};