Lines Matching +full:constant +full:- +full:on +full:- +full:time

1 /* SPDX-License-Identifier: GPL-2.0 */
20 /* Conversion routines to/from brg time constants from/to bits
24 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
52 #define RES_RxINT_FC 0x20 /* Reset RxINT on First Character */
68 #define RxINT_FCERR 0x8 /* Rx Int on First Character Only or Error */
69 #define INT_ALL_Rx 0x10 /* Int on all Rx Characters or error */
70 #define INT_ERR_Rx 0x18 /* Int on error only */
73 #define WT_RDY_RT 0x20 /* Wait/Ready on R/T */
118 #define SDLC_CRC 0x4 /* SDLC/CRC-16 */
128 /* Write Register 6 (Sync bits 0-7/SDLC Address Field) */
130 /* Write Register 7 (Sync bits 8-15/SDLC 01111110) */
149 #define SWIACK 0x20 /* Software Interrupt Ack (not on NMOS) */
150 #define NORESET 0 /* No reset on write to R9 */
158 #define ABUNDER 4 /* Abort/flag on SDLC xmit underrun */
159 #define MARKIDLE 8 /* Mark/flag on idle */
160 #define GAOP 0x10 /* Go active on poll */
183 /* Write Register 12 (lower byte of baud rate generator time constant) */
185 /* Write Register 13 (upper byte of baud rate generator time constant) */
239 /* Read Register 2 (channel b only) - Interrupt vector */
258 /* Read Register 6 (LSB frame byte count [Not on NMOS]) */
260 /* Read Register 7 (MSB frame byte count and FIFO status [Not on NMOS]) */
265 #define ONLOOP 2 /* On loop */
270 /* Read Register 12 (lower byte of baud rate generator constant) */
272 /* Read Register 13 (upper byte of baud rate generator constant) */
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); \