Lines Matching +full:write +full:- +full:enable
1 /* SPDX-License-Identifier: GPL-2.0 */
24 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
30 /* Write Register 0 */
61 /* Write Register 1 */
63 #define EXT_INT_ENAB 0x1 /* Ext Int Enable */
64 #define TxINT_ENAB 0x2 /* Tx Int Enable */
75 #define WT_RDY_ENAB 0x80 /* Wait/Ready Enable */
77 /* Write Register #2 (Interrupt Vector) */
79 /* Write Register 3 */
81 #define RxENAB 0x1 /* Rx Enable */
84 #define RxCRC_ENAB 0x8 /* Rx CRC Enable */
93 /* Write Register 4 */
95 #define PAR_ENAB 0x1 /* Parity Enable */
98 #define SYNC_ENAB 0 /* Sync Modes Enable */
114 /* Write Register 5 */
116 #define TxCRC_ENAB 0x1 /* Tx CRC Enable */
118 #define SDLC_CRC 0x4 /* SDLC/CRC-16 */
119 #define TxENAB 0x8 /* Tx Enable */
128 /* Write Register 6 (Sync bits 0-7/SDLC Address Field) */
130 /* Write Register 7 (Sync bits 8-15/SDLC 01111110) */
132 /* Write Register 7' (ESCC Only) */
139 #define EXT_RD_EN 0x40 /* Extended read register enable */
141 /* Write Register 8 (transmit buffer) */
143 /* Write Register 9 (Master interrupt control) */
147 #define MIE 8 /* Master Interrupt Enable */
150 #define NORESET 0 /* No reset on write to R9 */
155 /* Write Register 10 (misc control bits) */
167 /* Write Register 11 (Clock Mode control) */
183 /* Write Register 12 (lower byte of baud rate generator time constant) */
185 /* Write Register 13 (upper byte of baud rate generator time constant) */
187 /* Write Register 14 (Misc control bits) */
188 #define BRENAB 1 /* Baud rate generator enable */
201 /* Write Register 15 (external/status interrupt control) */
202 #define WR7pEN 1 /* WR7' Enable (ESCC only) */
204 #define FIFOEN 4 /* FIFO Enable (ESCC only) */
239 /* Read Register 2 (channel b only) - Interrupt vector */
277 #define ZS_CLEARERR(channel) do { sbus_writeb(ERR_RES, &channel->control); \
280 #define ZS_CLEARSTAT(channel) do { sbus_writeb(RES_EXT_INT, &channel->control); \
283 #define ZS_CLEARFIFO(channel) do { sbus_readb(&channel->data); \
285 sbus_readb(&channel->data); \
287 sbus_readb(&channel->data); \