From bfcbf0f513eac206cfb8894381543f5f4b816e16 Mon Sep 17 00:00:00 2001 From: gwr Date: Wed, 4 May 1994 05:29:25 +0000 Subject: [PATCH] Add zs0_va, zs1_va --- sys/arch/sun3/dev/obio.c | 8 +++++++- sys/arch/sun3/sun3/obio.c | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/sys/arch/sun3/dev/obio.c b/sys/arch/sun3/dev/obio.c index c17cf57f8902..f01b63fd75fe 100644 --- a/sys/arch/sun3/dev/obio.c +++ b/sys/arch/sun3/dev/obio.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Header: /cvsroot/src/sys/arch/sun3/dev/Attic/obio.c,v 1.7 1994/03/16 04:35:37 glass Exp $ + * $Header: /cvsroot/src/sys/arch/sun3/dev/Attic/obio.c,v 1.8 1994/05/04 05:29:25 gwr Exp $ * Added stub for obio_probe_byte() -gwr */ #include @@ -46,6 +46,8 @@ unsigned char *interrupt_reg = NULL; vm_offset_t eeprom_va = NULL; vm_offset_t memerr_va = NULL; +vm_offset_t zs0_va = NULL; /* ttya, ttyb */ +vm_offset_t zs1_va = NULL; /* kbd, mouse */ static struct obio_internal { vm_offset_t *obio_internal_va; @@ -56,6 +58,8 @@ static struct obio_internal { } obio_internal_dev[] = { {&eeprom_va, OBIO_EEPROM, ALL, OBIO_EEPROM_SIZE ,1}, {&memerr_va, OBIO_MEMERR, ALL, OBIO_MEMERR_SIZE ,1}, + {&zs0_va, OBIO_ZS, ALL, OBIO_ZS_SIZE ,1}, + {&zs1_va, OBIO_KEYBD_MS, ALL, OBIO_ZS_SIZE ,1}, {NULL, 0, 0, 0 ,0} /* {&ecc_va, OBIO_MEMERR, ALL, OBIO_MEMERR_SIZE }, */ }; @@ -101,6 +105,8 @@ void obioattach(parent, self, args) * * In reality this maps in a few control registers. VA space is allocated * out of the high_segment... + * XXX - Is it worth the trouble to go find and re-use the mappings + * created by the PROM monitor? -gwr * */ void obio_internal_configure() diff --git a/sys/arch/sun3/sun3/obio.c b/sys/arch/sun3/sun3/obio.c index e98da6e66304..a8057f778b28 100644 --- a/sys/arch/sun3/sun3/obio.c +++ b/sys/arch/sun3/sun3/obio.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Header: /cvsroot/src/sys/arch/sun3/sun3/obio.c,v 1.7 1994/03/16 04:35:37 glass Exp $ + * $Header: /cvsroot/src/sys/arch/sun3/sun3/obio.c,v 1.8 1994/05/04 05:29:25 gwr Exp $ * Added stub for obio_probe_byte() -gwr */ #include @@ -46,6 +46,8 @@ unsigned char *interrupt_reg = NULL; vm_offset_t eeprom_va = NULL; vm_offset_t memerr_va = NULL; +vm_offset_t zs0_va = NULL; /* ttya, ttyb */ +vm_offset_t zs1_va = NULL; /* kbd, mouse */ static struct obio_internal { vm_offset_t *obio_internal_va; @@ -56,6 +58,8 @@ static struct obio_internal { } obio_internal_dev[] = { {&eeprom_va, OBIO_EEPROM, ALL, OBIO_EEPROM_SIZE ,1}, {&memerr_va, OBIO_MEMERR, ALL, OBIO_MEMERR_SIZE ,1}, + {&zs0_va, OBIO_ZS, ALL, OBIO_ZS_SIZE ,1}, + {&zs1_va, OBIO_KEYBD_MS, ALL, OBIO_ZS_SIZE ,1}, {NULL, 0, 0, 0 ,0} /* {&ecc_va, OBIO_MEMERR, ALL, OBIO_MEMERR_SIZE }, */ }; @@ -101,6 +105,8 @@ void obioattach(parent, self, args) * * In reality this maps in a few control registers. VA space is allocated * out of the high_segment... + * XXX - Is it worth the trouble to go find and re-use the mappings + * created by the PROM monitor? -gwr * */ void obio_internal_configure()