forked from Imagelibrary/rtems
* include/chain.h, include/clockdrv.h, include/console.h, include/iosupp.h, include/rtc.h, include/spurious.h, include/timerdrv.h, include/vmeintr.h, include/motorola/mc68230.h, include/rtems/libcsupport.h, include/rtems/libio.h, include/rtems/libio_.h, include/rtems/termiostypes.h, include/sys/termios.h, include/zilog/z8036.h, include/zilog/z8530.h, include/zilog/z8536.h, src/__brk.c, src/__gettod.c, src/__sbrk.c, src/__times.c, src/access.c, src/base_fs.c, src/cfgetispeed.c, src/cfgetospeed.c, src/cfsetispeed.c, src/cfsetospeed.c, src/chdir.c, src/chmod.c, src/chown.c, src/chroot.c, src/close.c, src/ctermid.c, src/dup.c, src/dup2.c, src/eval.c, src/fchdir.c, src/fchmod.c, src/fcntl.c, src/fdatasync.c, src/fpathconf.c, src/fs_null_handlers.c, src/fstat.c, src/fsync.c, src/ftruncate.c, src/getdents.c, src/getpwent.c, src/hosterr.c, src/ioctl.c, src/isatty.c, src/libio.c, src/libio_sockets.c, src/link.c, src/lseek.c, src/lstat.c, src/malloc.c, src/mallocfreespace.c, src/mkdir.c, src/mkfifo.c, src/mknod.c, src/mount.c, src/newlibc.c, src/no_libc.c, src/no_posix.c, src/open.c, src/pathconf.c, src/pipe.c, src/privateenv.c, src/read.c, src/readlink.c, src/rewinddir.c, src/rmdir.c, src/seekdir.c, src/stat.c, src/symlink.c, src/sync.c, src/tcdrain.c, src/tcflow.c, src/tcflush.c, src/tcgetattr.c, src/tcgetprgrp.c, src/tcsendbreak.c, src/tcsetattr.c, src/tcsetpgrp.c, src/telldir.c, src/termios.c, src/termiosinitialize.c, src/truncate.c, src/umask.c, src/unixlibc.c, src/unlink.c, src/unmount.c, src/utime.c, src/write.c: URL for license changed.
99 lines
2.0 KiB
C
99 lines
2.0 KiB
C
/* z8530.h
|
|
*
|
|
* This include file defines information related to a Zilog Z8530
|
|
* SCC Chip. It is a IO mapped part.
|
|
*
|
|
* Input parameters: NONE
|
|
*
|
|
* Output parameters: NONE
|
|
*
|
|
* COPYRIGHT (c) 1989-1999.
|
|
* On-Line Applications Research Corporation (OAR).
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rtems.com/license/LICENSE.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#ifndef __Z8530_h
|
|
#define __Z8530_h
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* macros */
|
|
|
|
#define VOL8( ptr ) ((volatile rtems_unsigned8 *)(ptr))
|
|
|
|
#define Z8x30_STATE0 ( z8530 ) \
|
|
{ char *garbage; \
|
|
(garbage) = *(VOL8(z8530)) \
|
|
}
|
|
|
|
#define Z8x30_WRITE_CONTROL( z8530, reg, data ) \
|
|
*(VOL8(z8530)) = (reg); \
|
|
*(VOL8(z8530)) = (data)
|
|
|
|
#define Z8x30_READ_CONTROL( z8530, reg, data ) \
|
|
*(VOL8(z8530)) = (reg); \
|
|
(data) = *(VOL8(z8530))
|
|
|
|
#define Z8x30_WRITE_DATA( z8530, data ) \
|
|
*(VOL8(z8530)) = (data);
|
|
|
|
#define Z8x30_READ_DATA( z8530, data ) \
|
|
(data) = *(VOL8(z8530));
|
|
|
|
|
|
/* RR_0 Bit Definitions */
|
|
|
|
#define RR_0_TX_BUFFER_EMPTY 0x04
|
|
#define RR_0_RX_DATA_AVAILABLE 0x01
|
|
|
|
/* read registers */
|
|
|
|
#define RR_0 0x00
|
|
#define RR_1 0x01
|
|
#define RR_2 0x02
|
|
#define RR_3 0x03
|
|
#define RR_4 0x04
|
|
#define RR_5 0x05
|
|
#define RR_6 0x06
|
|
#define RR_7 0x07
|
|
#define RR_8 0x08
|
|
#define RR_9 0x09
|
|
#define RR_10 0x0A
|
|
#define RR_11 0x0B
|
|
#define RR_12 0x0C
|
|
#define RR_13 0x0D
|
|
#define RR_14 0x0E
|
|
#define RR_15 0x0F
|
|
|
|
/* write registers */
|
|
|
|
#define WR_0 0x00
|
|
#define WR_1 0x01
|
|
#define WR_2 0x02
|
|
#define WR_3 0x03
|
|
#define WR_4 0x04
|
|
#define WR_5 0x05
|
|
#define WR_6 0x06
|
|
#define WR_7 0x07
|
|
#define WR_8 0x08
|
|
#define WR_9 0x09
|
|
#define WR_10 0x0A
|
|
#define WR_11 0x0B
|
|
#define WR_12 0x0C
|
|
#define WR_13 0x0D
|
|
#define WR_14 0x0E
|
|
#define WR_15 0x0F
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|