diff options
| author | mycroft <mycroft@NetBSD.org> | 1995-04-11 02:35:18 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1995-04-11 02:35:18 +0000 |
| commit | 24a8feea6540d20ce1f26c528c664240a8ea0237 (patch) | |
| tree | bb85397e135571f23a6d82e68dca5b1e419df20e /sys/dev | |
| parent | 2753eeb55e674e611bd4be20652900ed09585c68 (diff) | |
Adjust for endianness, and move CHAN_[AB] out of here.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/z8530.h | 18 | ||||
| -rw-r--r-- | sys/dev/ic/z8530reg.h | 18 |
2 files changed, 18 insertions, 18 deletions
diff --git a/sys/dev/ic/z8530.h b/sys/dev/ic/z8530.h index beef07ee9a5..313d7b7af11 100644 --- a/sys/dev/ic/z8530.h +++ b/sys/dev/ic/z8530.h @@ -1,4 +1,4 @@ -/* $NetBSD: z8530.h,v 1.1 1995/04/11 02:29:25 mycroft Exp $ */ +/* $NetBSD: z8530.h,v 1.2 1995/04/11 02:35:18 mycroft Exp $ */ /* * Copyright (c) 1992, 1993 @@ -66,22 +66,22 @@ */ #ifndef LOCORE struct zschan { +#if BYTE_ORDER == BIG_ENDIAN u_char zc_csr; /* control and status, and indirect access */ u_char zc_xxx0; u_char zc_data; /* data */ u_char zc_xxx1; +#else + u_char zc_xxx0; + u_char zc_csr; /* control and status, and indirect access */ + u_char zc_xxx1; + u_char zc_data; /* data */ +#endif }; -/* - * N.B.: the keyboard is channel 1, the mouse channel 0; ttyb is 1, ttya - * is 0. In other words, the things are BACKWARDS. - */ struct zsdevice { - struct zschan zs_chan[2]; /* channel A = 1, B = 0 */ + struct zschan zs_chan[2]; }; - -#define CHAN_A 1 -#define CHAN_B 0 #endif /* diff --git a/sys/dev/ic/z8530reg.h b/sys/dev/ic/z8530reg.h index 9a0b12aefc9..863f7e201db 100644 --- a/sys/dev/ic/z8530reg.h +++ b/sys/dev/ic/z8530reg.h @@ -1,4 +1,4 @@ -/* $NetBSD: z8530reg.h,v 1.1 1995/04/11 02:29:25 mycroft Exp $ */ +/* $NetBSD: z8530reg.h,v 1.2 1995/04/11 02:35:18 mycroft Exp $ */ /* * Copyright (c) 1992, 1993 @@ -66,22 +66,22 @@ */ #ifndef LOCORE struct zschan { +#if BYTE_ORDER == BIG_ENDIAN u_char zc_csr; /* control and status, and indirect access */ u_char zc_xxx0; u_char zc_data; /* data */ u_char zc_xxx1; +#else + u_char zc_xxx0; + u_char zc_csr; /* control and status, and indirect access */ + u_char zc_xxx1; + u_char zc_data; /* data */ +#endif }; -/* - * N.B.: the keyboard is channel 1, the mouse channel 0; ttyb is 1, ttya - * is 0. In other words, the things are BACKWARDS. - */ struct zsdevice { - struct zschan zs_chan[2]; /* channel A = 1, B = 0 */ + struct zschan zs_chan[2]; }; - -#define CHAN_A 1 -#define CHAN_B 0 #endif /* |
