Select the right register structure for the Atari. Although it's big-endian,

it uses the odd bytes. Also make the registers volatile.
This commit is contained in:
leo 1995-08-20 13:24:05 +00:00
parent 8eb5c9a6ff
commit b7680d7c14
1 changed files with 10 additions and 10 deletions

View File

@ -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
};