diff options
| author | leo <leo@NetBSD.org> | 1995-08-20 13:24:05 +0000 |
|---|---|---|
| committer | leo <leo@NetBSD.org> | 1995-08-20 13:24:05 +0000 |
| commit | b7680d7c14acb78313b53187bf799ff09826467a (patch) | |
| tree | e61a713318e7c5807a49d2eb8cfd5bd49ac2efd0 /sys/dev | |
| parent | 8eb5c9a6ffb2481d48fcbd9022b2a496f8881a36 (diff) | |
Select the right register structure for the Atari. Although it's big-endian,
it uses the odd bytes. Also make the registers volatile.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/z8530reg.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/ic/z8530reg.h b/sys/dev/ic/z8530reg.h index a94d4ada651..30abf6206b2 100644 --- a/sys/dev/ic/z8530reg.h +++ b/sys/dev/ic/z8530reg.h @@ -1,4 +1,4 @@ -/* $NetBSD: z8530reg.h,v 1.3 1995/06/19 13:15:08 briggs Exp $ */ +/* $NetBSD: z8530reg.h,v 1.4 1995/08/20 13:24:05 leo Exp $ */ /* * Copyright (c) 1992, 1993 @@ -66,16 +66,16 @@ */ #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; +#if (BYTE_ORDER == BIG_ENDIAN) && !defined(atari) + volatile u_char zc_csr; /* ctrl,status, and indirect access */ + u_char zc_xxx0; + volatile 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 */ + u_char zc_xxx0; + volatile u_char zc_csr; /* ctrl,status, and indirect access */ + u_char zc_xxx1; + volatile u_char zc_data; /* data */ #endif }; |
