xref: /freebsd/sys/dev/ic/z8530.h (revision 718cf2ccb9956613756ab15d7a0e28f2c8e91cab)
1098ca2bdSWarner Losh /*-
2*718cf2ccSPedro F. Giffuni  * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3*718cf2ccSPedro F. Giffuni  *
427d5dc18SMarcel Moolenaar  * Copyright (c) 2003 Marcel Moolenaar
527d5dc18SMarcel Moolenaar  * All rights reserved.
627d5dc18SMarcel Moolenaar  *
727d5dc18SMarcel Moolenaar  * Redistribution and use in source and binary forms, with or without
827d5dc18SMarcel Moolenaar  * modification, are permitted provided that the following conditions
927d5dc18SMarcel Moolenaar  * are met:
1027d5dc18SMarcel Moolenaar  *
1127d5dc18SMarcel Moolenaar  * 1. Redistributions of source code must retain the above copyright
1227d5dc18SMarcel Moolenaar  *    notice, this list of conditions and the following disclaimer.
1327d5dc18SMarcel Moolenaar  * 2. Redistributions in binary form must reproduce the above copyright
1427d5dc18SMarcel Moolenaar  *    notice, this list of conditions and the following disclaimer in the
1527d5dc18SMarcel Moolenaar  *    documentation and/or other materials provided with the distribution.
1627d5dc18SMarcel Moolenaar  *
1727d5dc18SMarcel Moolenaar  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1827d5dc18SMarcel Moolenaar  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1927d5dc18SMarcel Moolenaar  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2027d5dc18SMarcel Moolenaar  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2127d5dc18SMarcel Moolenaar  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2227d5dc18SMarcel Moolenaar  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2327d5dc18SMarcel Moolenaar  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2427d5dc18SMarcel Moolenaar  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2527d5dc18SMarcel Moolenaar  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2627d5dc18SMarcel Moolenaar  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2727d5dc18SMarcel Moolenaar  *
2827d5dc18SMarcel Moolenaar  * $FreeBSD$
2927d5dc18SMarcel Moolenaar  */
3027d5dc18SMarcel Moolenaar 
3143f0d570SMarcel Moolenaar #ifndef _DEV_IC_Z8530_H_
3243f0d570SMarcel Moolenaar #define	_DEV_IC_Z8530_H_
3327d5dc18SMarcel Moolenaar 
3427d5dc18SMarcel Moolenaar /*
3527d5dc18SMarcel Moolenaar  * Channel B control:	0
3627d5dc18SMarcel Moolenaar  * Channel B data:	1
3727d5dc18SMarcel Moolenaar  * Channel A control:	2
3827d5dc18SMarcel Moolenaar  * Channel A data:	3
3927d5dc18SMarcel Moolenaar  */
401ba1685bSMarcel Moolenaar 
411ba1685bSMarcel Moolenaar /* The following apply when using a device-scoped bus handle */
421ba1685bSMarcel Moolenaar #define	CHAN_A		2
431ba1685bSMarcel Moolenaar #define	CHAN_B		0
441ba1685bSMarcel Moolenaar 
4527d5dc18SMarcel Moolenaar #define	REG_CTRL	0
4627d5dc18SMarcel Moolenaar #define	REG_DATA	1
4727d5dc18SMarcel Moolenaar 
4827d5dc18SMarcel Moolenaar /* Write registers. */
4927d5dc18SMarcel Moolenaar #define	WR_CR		0	/* Command Register. */
5027d5dc18SMarcel Moolenaar #define	WR_IDT		1	/* Interrupt and Data Transfer Mode. */
5127d5dc18SMarcel Moolenaar #define	WR_IV		2	/* Interrupt Vector (shared). */
5227d5dc18SMarcel Moolenaar #define	WR_RPC		3	/* Receive Parameters and Control. */
5327d5dc18SMarcel Moolenaar #define	WR_MPM		4	/* Miscellaneous Parameters and Modes. */
5427d5dc18SMarcel Moolenaar #define	WR_TPC		5	/* Transmit Parameters and Control. */
5527d5dc18SMarcel Moolenaar #define	WR_SCAF		6	/* Sync Character or (SDLC) Address Field. */
5627d5dc18SMarcel Moolenaar #define	WR_SCF		7	/* Sync Character or (SDCL) Flag. */
5727d5dc18SMarcel Moolenaar #define	WR_EFC		7	/* Extended Feature and FIFO Control. */
5827d5dc18SMarcel Moolenaar #define	WR_TB		8	/* Transmit Buffer. */
5927d5dc18SMarcel Moolenaar #define	WR_MIC		9	/* Master Interrupt Control (shared). */
6027d5dc18SMarcel Moolenaar #define	WR_MCB1		10	/* Miscellaneous Control Bits (part 1 :-). */
6127d5dc18SMarcel Moolenaar #define	WR_CMC		11	/* Clock Mode Control. */
6227d5dc18SMarcel Moolenaar #define	WR_TCL		12	/* BRG Time Constant Low. */
6327d5dc18SMarcel Moolenaar #define	WR_TCH		13	/* BRG Time Constant High. */
6427d5dc18SMarcel Moolenaar #define	WR_MCB2		14	/* Miscellaneous Control Bits (part 2 :-). */
6527d5dc18SMarcel Moolenaar #define	WR_IC		15	/* Interrupt Control. */
6627d5dc18SMarcel Moolenaar 
6727d5dc18SMarcel Moolenaar /* Read registers. */
6827d5dc18SMarcel Moolenaar #define	RR_BES		0	/* Buffer and External Status. */
6927d5dc18SMarcel Moolenaar #define	RR_SRC		1	/* Special Receive Condition. */
7027d5dc18SMarcel Moolenaar #define	RR_IV		2	/* Interrupt Vector. */
7127d5dc18SMarcel Moolenaar #define	RR_IP		3	/* Interrupt Pending (ch A only). */
7227d5dc18SMarcel Moolenaar #define	RR_MPM		4	/* Miscellaneous Parameters and Modes. */
7327d5dc18SMarcel Moolenaar #define	RR_TPC		5	/* Transmit Parameters and Control. */
7427d5dc18SMarcel Moolenaar #define	RR_BCL		6	/* Byte Count Low. */
7527d5dc18SMarcel Moolenaar #define	RR_BCH		7	/* Byte Count High. */
7627d5dc18SMarcel Moolenaar #define	RR_RB		8	/* Receive Buffer. */
771ba1685bSMarcel Moolenaar #define	RR_RPC		9	/* Receive Parameters and Control. */
7827d5dc18SMarcel Moolenaar #define	RR_MSB		10	/* Miscellaneous Status Bits. */
7927d5dc18SMarcel Moolenaar #define	RR_MCB1		11	/* Miscellaneous Control Bits (part 1). */
8027d5dc18SMarcel Moolenaar #define	RR_TCL		12	/* BRG Time Constant Low. */
8127d5dc18SMarcel Moolenaar #define	RR_TCH		13	/* BRG Time Constant High. */
8227d5dc18SMarcel Moolenaar #define	RR_EFC		14	/* Extended Feature and FIFO Control. */
8327d5dc18SMarcel Moolenaar #define	RR_IC		15	/* Interrupt Control. */
8427d5dc18SMarcel Moolenaar 
8527d5dc18SMarcel Moolenaar /* Buffer and External Status (RR0). */
8627d5dc18SMarcel Moolenaar #define	BES_BRK		0x80	/* Break (Abort). */
8727d5dc18SMarcel Moolenaar #define	BES_TXU		0x40	/* Tx Underrun (EOM). */
8827d5dc18SMarcel Moolenaar #define	BES_CTS		0x20	/* CTS. */
8927d5dc18SMarcel Moolenaar #define	BES_SYNC	0x10	/* Sync. */
9027d5dc18SMarcel Moolenaar #define	BES_DCD		0x08	/* DCD. */
9127d5dc18SMarcel Moolenaar #define	BES_TXE		0x04	/* Tx Empty. */
9227d5dc18SMarcel Moolenaar #define	BES_ZC		0x02	/* Zero Count. */
9327d5dc18SMarcel Moolenaar #define	BES_RXA		0x01	/* Rx Available. */
9427d5dc18SMarcel Moolenaar 
9527d5dc18SMarcel Moolenaar /* Clock Mode Control (WR11). */
9627d5dc18SMarcel Moolenaar #define	CMC_XTAL	0x80	/* -RTxC connects to quartz crystal. */
9727d5dc18SMarcel Moolenaar #define	CMC_RC_DPLL	0x60	/* Rx Clock from DPLL. */
9827d5dc18SMarcel Moolenaar #define	CMC_RC_BRG	0x40	/* Rx Clock from BRG. */
9927d5dc18SMarcel Moolenaar #define	CMC_RC_TRXC	0x20	/* Rx Clock from -TRxC. */
10027d5dc18SMarcel Moolenaar #define	CMC_RC_RTXC	0x00	/* Rx Clock from -RTxC. */
10127d5dc18SMarcel Moolenaar #define	CMC_TC_DPLL	0x18	/* Tx Clock from DPLL */
10227d5dc18SMarcel Moolenaar #define	CMC_TC_BRG	0x10	/* Tx Clock from BRG */
10327d5dc18SMarcel Moolenaar #define	CMC_TC_TRXC	0x08	/* Tx Clock from -TRxC. */
10427d5dc18SMarcel Moolenaar #define	CMC_TC_RTXC	0x00	/* Tx Clock from -RTxC. */
10527d5dc18SMarcel Moolenaar #define	CMC_TRXC_OUT	0x04	/* -TRxC is output. */
10627d5dc18SMarcel Moolenaar #define	CMC_TRXC_DPLL	0x03	/* -TRxC from DPLL */
10727d5dc18SMarcel Moolenaar #define	CMC_TRXC_BRG	0x02	/* -TRxC from BRG */
10827d5dc18SMarcel Moolenaar #define	CMC_TRXC_XMIT	0x01	/* -TRxC from Tx clock. */
10927d5dc18SMarcel Moolenaar #define	CMC_TRXC_XTAL	0x00	/* -TRxC from XTAL. */
11027d5dc18SMarcel Moolenaar 
11127d5dc18SMarcel Moolenaar /* Command Register (WR0). */
11227d5dc18SMarcel Moolenaar #define	CR_RSTTXU	0xc0	/* Reset Tx. Underrun/EOM. */
11327d5dc18SMarcel Moolenaar #define	CR_RSTTXCRC	0x80	/* Reset Tx. CRC. */
11427d5dc18SMarcel Moolenaar #define	CR_RSTRXCRC	0x40	/* Reset Rx. CRC. */
11527d5dc18SMarcel Moolenaar #define	CR_RSTIUS	0x38	/* Reset Int. Under Service. */
11627d5dc18SMarcel Moolenaar #define	CR_RSTERR	0x30	/* Error Reset. */
11727d5dc18SMarcel Moolenaar #define	CR_RSTTXI	0x28	/* Reset Tx. Int. */
11827d5dc18SMarcel Moolenaar #define	CR_ENARXI	0x20	/* Enable Rx. Int. */
11927d5dc18SMarcel Moolenaar #define	CR_ABORT	0x18	/* Send Abort. */
12027d5dc18SMarcel Moolenaar #define	CR_RSTXSI	0x10	/* Reset Ext/Status Int. */
12127d5dc18SMarcel Moolenaar 
12227d5dc18SMarcel Moolenaar /* Extended Feature and FIFO Control (WR7 prime). */
12327d5dc18SMarcel Moolenaar #define	EFC_ERE		0x40	/* Extended Read Enable. */
12427d5dc18SMarcel Moolenaar #define	EFC_FE		0x20	/* Transmit FIFO Empty. */
12527d5dc18SMarcel Moolenaar #define	EFC_RQT		0x10	/* Request Timing. */
12627d5dc18SMarcel Moolenaar #define	EFC_FHF		0x08	/* Receive FIFO Half Full. */
12727d5dc18SMarcel Moolenaar #define	EFC_RTS		0x04	/* Auto RTS Deactivation. */
12827d5dc18SMarcel Moolenaar #define	EFC_EOM		0x02	/* Auto EOM Reset. */
12927d5dc18SMarcel Moolenaar #define	EFC_FLAG	0x01	/* Auto SDLC Flag on Tx. */
13027d5dc18SMarcel Moolenaar 
13127d5dc18SMarcel Moolenaar /* Interrupt Control (WR15). */
13227d5dc18SMarcel Moolenaar #define	IC_BRK		0x80	/* Break (Abort) IE. */
13327d5dc18SMarcel Moolenaar #define	IC_TXU		0x40	/* Tx Underrun IE. */
13427d5dc18SMarcel Moolenaar #define	IC_CTS		0x20	/* CTS IE. */
13527d5dc18SMarcel Moolenaar #define	IC_SYNC		0x10	/* Sync IE. */
13627d5dc18SMarcel Moolenaar #define	IC_DCD		0x08	/* DCD IE. */
13727d5dc18SMarcel Moolenaar #define	IC_FIFO		0x04	/* SDLC FIFO Enable. */
13827d5dc18SMarcel Moolenaar #define	IC_ZC		0x02	/* Zero Count IE. */
13927d5dc18SMarcel Moolenaar #define	IC_EF		0x01	/* Extended Feature Enable. */
14027d5dc18SMarcel Moolenaar 
14127d5dc18SMarcel Moolenaar /* Interrupt and Data Transfer Mode (WR1). */
14227d5dc18SMarcel Moolenaar #define	IDT_WRE		0x80	/* Wait/DMA Request Enable. */
14327d5dc18SMarcel Moolenaar #define	IDT_REQ		0x40	/* DMA Request. */
14427d5dc18SMarcel Moolenaar #define	IDT_WRR		0x20	/* Wait/DMA Reuest on Receive. */
14527d5dc18SMarcel Moolenaar #define	IDT_RISC	0x18	/* Rx Int. on Special Condition Only. */
14627d5dc18SMarcel Moolenaar #define	IDT_RIA		0x10	/* Rx Int. on All Characters. */
14727d5dc18SMarcel Moolenaar #define	IDT_RIF		0x08	/* Rx Int. on First Character. */
14827d5dc18SMarcel Moolenaar #define	IDT_PSC		0x04	/* Parity is Special Condition. */
14927d5dc18SMarcel Moolenaar #define	IDT_TIE		0x02	/* Tx Int. Enable. */
15027d5dc18SMarcel Moolenaar #define	IDT_XIE		0x01	/* Ext. Int. Enable. */
15127d5dc18SMarcel Moolenaar 
15227d5dc18SMarcel Moolenaar /* Interrupt Pending (RR3). */
15327d5dc18SMarcel Moolenaar #define	IP_RIA		0x20	/* Rx. Int. ch. A. */
15427d5dc18SMarcel Moolenaar #define	IP_TIA		0x10	/* Tx. Int. ch. A. */
15527d5dc18SMarcel Moolenaar #define	IP_SIA		0x08	/* Ext/Status Int. ch. A. */
15627d5dc18SMarcel Moolenaar #define	IP_RIB		0x04	/* Rx. Int. ch. B. */
15727d5dc18SMarcel Moolenaar #define	IP_TIB		0x02	/* Tx. Int. ch. B. */
15827d5dc18SMarcel Moolenaar #define	IP_SIB		0x01	/* Ext/Status Int. ch. B. */
15927d5dc18SMarcel Moolenaar 
16027d5dc18SMarcel Moolenaar /* Interrupt Vector Status Low (RR2). */
16127d5dc18SMarcel Moolenaar #define	IV_SCA		0x0e	/* Special Condition ch. A. */
16227d5dc18SMarcel Moolenaar #define	IV_RAA		0x0c	/* Receive Available ch. A. */
16327d5dc18SMarcel Moolenaar #define	IV_XSA		0x0a	/* External/Status Change ch. A. */
16427d5dc18SMarcel Moolenaar #define	IV_TEA		0x08	/* Transmitter Empty ch. A. */
16527d5dc18SMarcel Moolenaar #define	IV_SCB		0x06	/* Special Condition ch. B. */
16627d5dc18SMarcel Moolenaar #define	IV_RAB		0x04	/* Receive Available ch. B. */
16727d5dc18SMarcel Moolenaar #define	IV_XSB		0x02	/* External/Status Change ch. B. */
16827d5dc18SMarcel Moolenaar #define	IV_TEB		0x00	/* Transmitter Empty ch. B. */
16927d5dc18SMarcel Moolenaar 
17027d5dc18SMarcel Moolenaar /* Miscellaneous Control Bits part 1 (WR10). */
17127d5dc18SMarcel Moolenaar #define	MCB1_CRC1	0x80	/* CRC presets to 1. */
17227d5dc18SMarcel Moolenaar #define	MCB1_FM0	0x60	/* FM0 Encoding. */
17327d5dc18SMarcel Moolenaar #define	MCB1_FM1	0x40	/* FM1 Encoding. */
17427d5dc18SMarcel Moolenaar #define	MCB1_NRZI	0x20	/* NRZI Encoding. */
17527d5dc18SMarcel Moolenaar #define	MCB1_NRZ	0x00	/* NRZ Encoding. */
17627d5dc18SMarcel Moolenaar #define	MCB1_AOP	0x10	/* Active On Poll. */
17727d5dc18SMarcel Moolenaar #define	MCB1_MI		0x08	/* Mark Idle. */
17827d5dc18SMarcel Moolenaar #define	MCB1_AOU	0x04	/* Abort On Underrun. */
17927d5dc18SMarcel Moolenaar #define	MCB1_LM		0x02	/* Loop Mode. */
18027d5dc18SMarcel Moolenaar #define	MCB1_SIX	0x01	/* 6 or 12 bit SYNC. */
18127d5dc18SMarcel Moolenaar 
18227d5dc18SMarcel Moolenaar /* Miscellaneous Control Bits part 2 (WR14). */
18327d5dc18SMarcel Moolenaar #define	MCB2_NRZI	0xe0	/* DPLL - NRZI mode. */
18427d5dc18SMarcel Moolenaar #define	MCB2_FM		0xc0	/* DPLL - FM mode. */
18527d5dc18SMarcel Moolenaar #define	MCB2_RTXC	0xa0	/* DPLL - Clock from -RTxC. */
18627d5dc18SMarcel Moolenaar #define	MCB2_BRG	0x80	/* DPLL - Clock from BRG. */
18727d5dc18SMarcel Moolenaar #define	MCB2_OFF	0x60	/* DPLL - Disable. */
18827d5dc18SMarcel Moolenaar #define	MCB2_RMC	0x40	/* DPLL - Reset Missing Clock. */
18927d5dc18SMarcel Moolenaar #define	MCB2_ESM	0x20	/* DPLL - Enter Search Mode. */
19027d5dc18SMarcel Moolenaar #define	MCB2_LL		0x10	/* Local Loopback. */
19127d5dc18SMarcel Moolenaar #define	MCB2_AE		0x08	/* Auto Echo. */
19227d5dc18SMarcel Moolenaar #define	MCB2_REQ	0x04	/* Request Function. */
19327d5dc18SMarcel Moolenaar #define	MCB2_PCLK	0x02	/* BRG source is PCLK. */
19427d5dc18SMarcel Moolenaar #define	MCB2_BRGE	0x01	/* BRG enable. */
19527d5dc18SMarcel Moolenaar 
19627d5dc18SMarcel Moolenaar /* Master Interrupt Control (WR9). */
19727d5dc18SMarcel Moolenaar #define	MIC_FHR		0xc0	/* Force Hardware Reset. */
19827d5dc18SMarcel Moolenaar #define	MIC_CRA		0x80	/* Channel Reset A. */
19927d5dc18SMarcel Moolenaar #define	MIC_CRB		0x40	/* Channel Reset B. */
20027d5dc18SMarcel Moolenaar #define	MIC_SIE		0x20	/* Software INTACK Enable. */
20127d5dc18SMarcel Moolenaar #define	MIC_SH		0x10	/* Status High. */
20227d5dc18SMarcel Moolenaar #define	MIC_MIE		0x08	/* Master Interrupt Enable. */
20327d5dc18SMarcel Moolenaar #define	MIC_DLC		0x04	/* Disable Lower Chain. */
20427d5dc18SMarcel Moolenaar #define	MIC_NV		0x02	/* No Vector. */
20527d5dc18SMarcel Moolenaar #define	MIC_VIS		0x01	/* Vector Includes Status. */
20627d5dc18SMarcel Moolenaar 
20727d5dc18SMarcel Moolenaar /* Transmit/Receive Miscellaneous Parameters and Modes (WR4). */
20827d5dc18SMarcel Moolenaar #define	MPM_CM64	0xc0	/* X64 Clock Mode. */
20927d5dc18SMarcel Moolenaar #define	MPM_CM32	0x80	/* X32 Clock Mode. */
21027d5dc18SMarcel Moolenaar #define	MPM_CM16	0x40	/* X16 Clock Mode. */
21127d5dc18SMarcel Moolenaar #define	MPM_CM1		0x00	/* X1 Clock Mode. */
21227d5dc18SMarcel Moolenaar #define	MPM_EXT		0x30	/* External Sync Mode. */
21327d5dc18SMarcel Moolenaar #define	MPM_SDLC 	0x20	/* SDLC mode. */
21427d5dc18SMarcel Moolenaar #define	MPM_BI		0x10	/* 16-bit Sync (bi-sync). */
21527d5dc18SMarcel Moolenaar #define	MPM_MONO	0x00	/* 8-bit Sync (mono-sync). */
21627d5dc18SMarcel Moolenaar #define	MPM_SB2 	0x0c	/* Async mode: 2 stopbits. */
21727d5dc18SMarcel Moolenaar #define	MPM_SB15 	0x08	/* Async mode: 1.5 stopbits. */
21827d5dc18SMarcel Moolenaar #define	MPM_SB1 	0x04	/* Async mode: 1 stopbit. */
21927d5dc18SMarcel Moolenaar #define	MPM_SYNC	0x00	/* Sync Mode Enable. */
22027d5dc18SMarcel Moolenaar #define	MPM_EVEN 	0x02	/* Async mode: even parity. */
22127d5dc18SMarcel Moolenaar #define	MPM_PE		0x01	/* Async mode: parity enable. */
22227d5dc18SMarcel Moolenaar 
22327d5dc18SMarcel Moolenaar /* Receive Parameters and Control (WR3). */
22427d5dc18SMarcel Moolenaar #define	RPC_RB8		0xc0	/* 8 databits. */
22527d5dc18SMarcel Moolenaar #define	RPC_RB6		0x80	/* 6 databits. */
22627d5dc18SMarcel Moolenaar #define	RPC_RB7		0x40	/* 7 databits. */
22727d5dc18SMarcel Moolenaar #define	RPC_RB5		0x00	/* 5 databits. */
22827d5dc18SMarcel Moolenaar #define	RPC_AE		0x20	/* Auto Enable. */
22927d5dc18SMarcel Moolenaar #define	RPC_EHM		0x10	/* Enter Hunt Mode. */
23027d5dc18SMarcel Moolenaar #define	RPC_CRC		0x08	/* CRC Enable. */
23127d5dc18SMarcel Moolenaar #define	RPC_ASM		0x04	/* Address Search Mode. */
23227d5dc18SMarcel Moolenaar #define	RPC_LI		0x02	/* SYNC Character Load Inhibit */
23327d5dc18SMarcel Moolenaar #define	RPC_RXE		0x01	/* Receiver Enable */
23427d5dc18SMarcel Moolenaar 
23527d5dc18SMarcel Moolenaar /* Special Receive Condition (RR1). */
23627d5dc18SMarcel Moolenaar #define	SRC_EOF		0x80	/* End Of Frame. */
23727d5dc18SMarcel Moolenaar #define	SRC_FE		0x40	/* Framing Error. */
23827d5dc18SMarcel Moolenaar #define	SRC_OVR		0x20	/* Rx. Overrun. */
23927d5dc18SMarcel Moolenaar #define	SRC_PE		0x10	/* Parity Error. */
24027d5dc18SMarcel Moolenaar #define	SRC_RC0		0x08	/* Residue Code 0. */
24127d5dc18SMarcel Moolenaar #define	SRC_RC1		0x04	/* Residue Code 1. */
24227d5dc18SMarcel Moolenaar #define	SRC_RC2		0x02	/* Residue Code 2. */
24327d5dc18SMarcel Moolenaar #define	SRC_AS		0x01	/* All Sent. */
24427d5dc18SMarcel Moolenaar 
24527d5dc18SMarcel Moolenaar /* Transmit Parameter and Control (WR5). */
24627d5dc18SMarcel Moolenaar #define	TPC_DTR		0x80	/* DTR. */
24727d5dc18SMarcel Moolenaar #define	TPC_TB8		0x60	/* 8 databits. */
24827d5dc18SMarcel Moolenaar #define	TPC_TB6		0x40	/* 6 databits. */
24927d5dc18SMarcel Moolenaar #define	TPC_TB7		0x20	/* 7 databits. */
25027d5dc18SMarcel Moolenaar #define	TPC_TB5		0x00	/* 5 or fewer databits. */
25127d5dc18SMarcel Moolenaar #define	TPC_BRK		0x10	/* Send break. */
25227d5dc18SMarcel Moolenaar #define	TPC_TXE		0x08	/* Transmitter Enable. */
25327d5dc18SMarcel Moolenaar #define	TPC_CRC16	0x04	/* CRC16. */
25427d5dc18SMarcel Moolenaar #define	TPC_RTS		0x02	/* RTS. */
25527d5dc18SMarcel Moolenaar #define	TPC_CRC		0x01	/* CRC Enable. */
25627d5dc18SMarcel Moolenaar 
25743f0d570SMarcel Moolenaar #endif /* _DEV_IC_Z8530_H_ */
258