⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sxwindow.h

📁 Linux内核源代码 为压缩文件 是<<Linux内核>>一书中的源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
	WORD	nextp;				/* 0x2E Define as WORD if not compiling into download */#endif	BYTE	prtcl;				/* 0x30 INTERNAL copy of hi_prtcl */	BYTE	mr1;				/* 0x31 INTERNAL copy of hi_mr1 */	BYTE	mr2;				/* 0x32 INTERNAL copy of hi_mr2 */	BYTE	hi_txbaud;			/* 0x33 Extended transmit baud rate (SXDC only if((hi_csr&0x0F)==0x0F) */	BYTE	hi_rxbaud;			/* 0x34 Extended receive baud rate  (SXDC only if((hi_csr&0xF0)==0xF0) */	BYTE	txbreak_state;			/* 0x35 INTERNAL MTA/SXDC transmit break state */	BYTE	txbaud;				/* 0x36 INTERNAL copy of hi_txbaud */	BYTE	rxbaud;				/* 0x37 INTERNAL copy of hi_rxbaud */	WORD	err_framing;			/* 0x38 Count of receive framing errors */	WORD	err_parity;			/* 0x3A Count of receive parity errors */	WORD	err_overrun;			/* 0x3C Count of receive overrun errors */	WORD	err_overflow;			/* 0x3E Count of receive buffer overflow errors */	BYTE	rfu2[TX_BUFF_OFFSET - 0x40];	/* 0x40 Reserved until hi_txbuf */	BYTE	hi_txbuf[BUFFER_SIZE];		/* 0x060 Transmit buffer */	BYTE	hi_rxbuf[BUFFER_SIZE];		/* 0x160 Receive buffer */	BYTE	rfu3[0x300 - 0x260];		/* 0x260 Reserved until 768 bytes (0x300) */} SXCHANNEL;/* SXCHANNEL.addr_uart definitions... */#define		FASTPATH	0x1000		/* Set to indicate fast rx/tx processing (TA only) *//* SXCHANNEL.xc_status definitions... */#define		X_TANY		0x0001		/* XON is any character (TA only) */#define		X_TION		0x0001		/* Tx interrupts on (MTA only) */#define		X_TXEN		0x0002		/* Tx XON/XOFF enabled (TA only) */#define		X_RTSEN		0x0002		/* RTS FLOW enabled (MTA only) */#define		X_TXRC		0x0004		/* XOFF received (TA only) */#define		X_RTSLOW	0x0004		/* RTS dropped (MTA only) */#define		X_RXEN		0x0008		/* Rx XON/XOFF enabled */#define		X_ANYXO		0x0010		/* XOFF pending/sent or RTS dropped */#define		X_RXSE		0x0020		/* Rx XOFF sent */#define		X_NPEND		0x0040		/* Rx XON pending or XOFF pending */#define		X_FPEND		0x0080		/* Rx XOFF pending */#define		C_CRSE		0x0100		/* Carriage return sent (TA only) */#define		C_TEMR		0x0100		/* Tx empty requested (MTA only) */#define		C_TEMA		0x0200		/* Tx empty acked (MTA only) */#define		C_ANYP		0x0200		/* Any protocol bar tx XON/XOFF (TA only) */#define		C_EN		0x0400		/* Cooking enabled (on MTA means port is also || */#define		C_HIGH		0x0800		/* Buffer previously hit high water */#define		C_CTSEN		0x1000		/* CTS automatic flow-control enabled */#define		C_DCDEN		0x2000		/* DCD/DTR checking enabled */#define		C_BREAK		0x4000		/* Break detected */#define		C_RTSEN		0x8000		/* RTS automatic flow control enabled (MTA only) */#define		C_PARITY	0x8000		/* Parity checking enabled (TA only) *//* SXCHANNEL.hi_hstat definitions... */#define		HS_IDLE_OPEN	0x00		/* Channel open state */#define		HS_LOPEN	0x02		/* Local open command (no modem monitoring) */#define		HS_MOPEN	0x04		/* Modem open command (wait for DCD signal) */#define		HS_IDLE_MPEND	0x06		/* Waiting for DCD signal state */#define		HS_CONFIG	0x08		/* Configuration command */#define		HS_CLOSE	0x0A		/* Close command */#define		HS_START	0x0C		/* Start transmit break command */#define		HS_STOP		0x0E		/* Stop transmit break command */#define		HS_IDLE_CLOSED	0x10		/* Closed channel state */#define		HS_IDLE_BREAK	0x12		/* Transmit break state */#define		HS_FORCE_CLOSED	0x14		/* Force close command */#define		HS_RESUME	0x16		/* Clear pending XOFF command */#define		HS_WFLUSH	0x18		/* Flush transmit buffer command */#define		HS_RFLUSH	0x1A		/* Flush receive buffer command */#define		HS_SUSPEND	0x1C		/* Suspend output command (like XOFF received) */#define		PARALLEL	0x1E		/* Parallel port loopback test command (Diagnostics Only) */#define		ENABLE_RX_INTS	0x20		/* Enable receive interrupts command (Diagnostics Only) */#define		ENABLE_TX_INTS	0x22		/* Enable transmit interrupts command (Diagnostics Only) */#define		ENABLE_MDM_INTS	0x24		/* Enable modem interrupts command (Diagnostics Only) */#define		DISABLE_INTS	0x26		/* Disable interrupts command (Diagnostics Only) *//* SXCHANNEL.hi_mr1 definitions... */#define		MR1_BITS	0x03		/* Data bits mask */#define		MR1_5_BITS	0x00		/* 5 data bits */#define		MR1_6_BITS	0x01		/* 6 data bits */#define		MR1_7_BITS	0x02		/* 7 data bits */#define		MR1_8_BITS	0x03		/* 8 data bits */#define		MR1_PARITY	0x1C		/* Parity mask */#define		MR1_ODD		0x04		/* Odd parity */#define		MR1_EVEN	0x00		/* Even parity */#define		MR1_WITH	0x00		/* Parity enabled */#define		MR1_FORCE	0x08		/* Force parity */#define		MR1_NONE	0x10		/* No parity */#define		MR1_NOPARITY	MR1_NONE		/* No parity */#define		MR1_ODDPARITY	(MR1_WITH|MR1_ODD)	/* Odd parity */#define		MR1_EVENPARITY	(MR1_WITH|MR1_EVEN)	/* Even parity */#define		MR1_MARKPARITY	(MR1_FORCE|MR1_ODD)	/* Mark parity */#define		MR1_SPACEPARITY	(MR1_FORCE|MR1_EVEN)	/* Space parity */#define		MR1_RTS_RXFLOW	0x80		/* RTS receive flow control *//* SXCHANNEL.hi_mr2 definitions... */#define		MR2_STOP	0x0F		/* Stop bits mask */#define		MR2_1_STOP	0x07		/* 1 stop bit */#define		MR2_2_STOP	0x0F		/* 2 stop bits */#define		MR2_CTS_TXFLOW	0x10		/* CTS transmit flow control */#define		MR2_RTS_TOGGLE	0x20		/* RTS toggle on transmit */#define		MR2_NORMAL	0x00		/* Normal mode */#define		MR2_AUTO	0x40		/* Auto-echo mode (TA only) */#define		MR2_LOCAL	0x80		/* Local echo mode */#define		MR2_REMOTE	0xC0		/* Remote echo mode (TA only) *//* SXCHANNEL.hi_csr definitions... */#define		CSR_75		0x0		/*    75 baud */#define		CSR_110		0x1		/*   110 baud (TA), 115200 (MTA/SXDC) */#define		CSR_38400	0x2		/* 38400 baud */#define		CSR_150		0x3		/*   150 baud */#define		CSR_300		0x4		/*   300 baud */#define		CSR_600		0x5		/*   600 baud */#define		CSR_1200	0x6		/*  1200 baud */#define		CSR_2000	0x7		/*  2000 baud */#define		CSR_2400	0x8		/*  2400 baud */#define		CSR_4800	0x9		/*  4800 baud */#define		CSR_1800	0xA		/*  1800 baud */#define		CSR_9600	0xB		/*  9600 baud */#define		CSR_19200	0xC		/* 19200 baud */#define		CSR_57600	0xD		/* 57600 baud */#define		CSR_EXTBAUD	0xF		/* Extended baud rate (hi_txbaud/hi_rxbaud) *//* SXCHANNEL.hi_op definitions... */#define		OP_RTS		0x01		/* RTS modem output signal */#define		OP_DTR		0x02		/* DTR modem output signal *//* SXCHANNEL.hi_ip definitions... */#define		IP_CTS		0x02		/* CTS modem input signal */#define		IP_DCD		0x04		/* DCD modem input signal */#define		IP_DSR		0x20		/* DTR modem input signal */#define		IP_RI		0x40		/* RI modem input signal *//* SXCHANNEL.hi_state definitions... */#define		ST_BREAK	0x01		/* Break received (clear with config) */#define		ST_DCD		0x02		/* DCD signal changed state *//* SXCHANNEL.hi_prtcl definitions... */#define		SP_TANY		0x01		/* Transmit XON/XANY (if SP_TXEN enabled) */#define		SP_TXEN		0x02		/* Transmit XON/XOFF flow control */#define		SP_CEN		0x04		/* Cooking enabled */#define		SP_RXEN		0x08		/* Rx XON/XOFF enabled */#define		SP_DCEN		0x20		/* DCD / DTR check */#define		SP_DTR_RXFLOW	0x40		/* DTR receive flow control */#define		SP_PAEN		0x80		/* Parity checking enabled *//* SXCHANNEL.hi_break definitions... */#define		BR_IGN		0x01		/* Ignore any received breaks */#define		BR_INT		0x02		/* Interrupt on received break */#define		BR_PARMRK	0x04		/* Enable parmrk parity error processing */#define		BR_PARIGN	0x08		/* Ignore chars with parity errors */#define 	BR_ERRINT	0x80		/* Treat parity/framing/overrun errors as exceptions *//* SXCHANNEL.par_error definitions.. */#define		DIAG_IRQ_RX	0x01		/* Indicate serial receive interrupt (diags only) */#define		DIAG_IRQ_TX	0x02		/* Indicate serial transmit interrupt (diags only) */#define		DIAG_IRQ_MD	0x04		/* Indicate serial modem interrupt (diags only) *//* SXCHANNEL.hi_txbaud/hi_rxbaud definitions... (SXDC only) */#define		BAUD_75		0x00		/*     75 baud */#define		BAUD_115200	0x01		/* 115200 baud */#define		BAUD_38400	0x02		/*  38400 baud */#define		BAUD_150	0x03		/*    150 baud */#define		BAUD_300	0x04		/*    300 baud */#define		BAUD_600	0x05		/*    600 baud */#define		BAUD_1200	0x06		/*   1200 baud */#define		BAUD_2000	0x07		/*   2000 baud */#define		BAUD_2400	0x08		/*   2400 baud */#define		BAUD_4800	0x09		/*   4800 baud */#define		BAUD_1800	0x0A		/*   1800 baud */#define		BAUD_9600	0x0B		/*   9600 baud */#define		BAUD_19200	0x0C		/*  19200 baud */#define		BAUD_57600	0x0D		/*  57600 baud */#define		BAUD_230400	0x0E		/* 230400 baud */#define		BAUD_460800	0x0F		/* 460800 baud */#define		BAUD_921600	0x10		/* 921600 baud */#define		BAUD_50		0x11    	/*     50 baud */#define		BAUD_110	0x12		/*    110 baud */#define		BAUD_134_5	0x13		/*  134.5 baud */#define		BAUD_200	0x14		/*    200 baud */#define		BAUD_7200	0x15		/*   7200 baud */#define		BAUD_56000	0x16		/*  56000 baud */#define		BAUD_64000	0x17		/*  64000 baud */#define		BAUD_76800	0x18		/*  76800 baud */#define		BAUD_128000	0x19		/* 128000 baud */#define		BAUD_150000	0x1A		/* 150000 baud */#define		BAUD_14400	0x1B		/*  14400 baud */#define		BAUD_256000	0x1C		/* 256000 baud */#define		BAUD_28800	0x1D		/*  28800 baud *//* SXCHANNEL.txbreak_state definiions... */#define		TXBREAK_OFF	0		/* Not sending break */#define		TXBREAK_START	1		/* Begin sending break */#define		TXBREAK_START1	2		/* Begin sending break, part 1 */#define		TXBREAK_ON	3		/* Sending break */#define		TXBREAK_STOP	4		/* Stop sending break */#define		TXBREAK_STOP1	5		/* Stop sending break, part 1 */#endif						/* _sxwindow_h *//* End of SXWINDOW.H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -