linux/drivers/tty/serial/atmel_serial.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * include/linux/atmel_serial.h
 *
 * Copyright (C) 2005 Ivan Kokshaysky
 * Copyright (C) SAN People
 *
 * USART registers.
 * Based on AT91RM9200 datasheet revision E.
 */

#include <linux/bitfield.h>

#ifndef ATMEL_SERIAL_H
#define ATMEL_SERIAL_H

#define ATMEL_US_CR
#define ATMEL_US_RSTRX
#define ATMEL_US_RSTTX
#define ATMEL_US_RXEN
#define ATMEL_US_RXDIS
#define ATMEL_US_TXEN
#define ATMEL_US_TXDIS
#define ATMEL_US_RSTSTA
#define ATMEL_US_STTBRK
#define ATMEL_US_STPBRK
#define ATMEL_US_STTTO
#define ATMEL_US_SENDA
#define ATMEL_US_RSTIT
#define ATMEL_US_RSTNACK
#define ATMEL_US_RETTO
#define ATMEL_US_DTREN
#define ATMEL_US_DTRDIS
#define ATMEL_US_RTSEN
#define ATMEL_US_RTSDIS
#define ATMEL_US_TXFCLR
#define ATMEL_US_RXFCLR
#define ATMEL_US_TXFLCLR
#define ATMEL_US_FIFOEN
#define ATMEL_US_FIFODIS

#define ATMEL_US_MR
#define ATMEL_US_USMODE
#define ATMEL_US_USMODE_NORMAL
#define ATMEL_US_USMODE_RS485
#define ATMEL_US_USMODE_HWHS
#define ATMEL_US_USMODE_MODEM
#define ATMEL_US_USMODE_ISO7816_T0
#define ATMEL_US_USMODE_ISO7816_T1
#define ATMEL_US_USMODE_IRDA
#define ATMEL_US_USCLKS
#define ATMEL_US_USCLKS_MCK
#define ATMEL_US_USCLKS_MCK_DIV8
#define ATMEL_US_USCLKS_GCLK
#define ATMEL_US_USCLKS_SCK
#define ATMEL_UA_FILTER
#define ATMEL_US_CHRL
#define ATMEL_US_CHRL_5
#define ATMEL_US_CHRL_6
#define ATMEL_US_CHRL_7
#define ATMEL_US_CHRL_8
#define ATMEL_US_SYNC
#define ATMEL_US_PAR
#define ATMEL_US_PAR_EVEN
#define ATMEL_US_PAR_ODD
#define ATMEL_US_PAR_SPACE
#define ATMEL_US_PAR_MARK
#define ATMEL_US_PAR_NONE
#define ATMEL_US_PAR_MULTI_DROP
#define ATMEL_US_NBSTOP
#define ATMEL_US_NBSTOP_1
#define ATMEL_US_NBSTOP_1_5
#define ATMEL_US_NBSTOP_2
#define ATMEL_UA_BRSRCCK
#define ATMEL_US_CHMODE
#define ATMEL_US_CHMODE_NORMAL
#define ATMEL_US_CHMODE_ECHO
#define ATMEL_US_CHMODE_LOC_LOOP
#define ATMEL_US_CHMODE_REM_LOOP
#define ATMEL_US_MSBF
#define ATMEL_US_MODE9
#define ATMEL_US_CLKO
#define ATMEL_US_OVER
#define ATMEL_US_INACK
#define ATMEL_US_DSNACK
#define ATMEL_US_MAX_ITER_MASK
#define ATMEL_US_MAX_ITER(n)
#define ATMEL_US_FILTER

#define ATMEL_US_IER
#define ATMEL_US_RXRDY
#define ATMEL_US_TXRDY
#define ATMEL_US_RXBRK
#define ATMEL_US_ENDRX
#define ATMEL_US_ENDTX
#define ATMEL_US_OVRE
#define ATMEL_US_FRAME
#define ATMEL_US_PARE
#define ATMEL_US_TIMEOUT
#define ATMEL_US_TXEMPTY
#define ATMEL_US_ITERATION
#define ATMEL_US_TXBUFE
#define ATMEL_US_RXBUFF
#define ATMEL_US_NACK
#define ATMEL_US_RIIC
#define ATMEL_US_DSRIC
#define ATMEL_US_DCDIC
#define ATMEL_US_CTSIC
#define ATMEL_US_RI
#define ATMEL_US_DSR
#define ATMEL_US_DCD
#define ATMEL_US_CTS

#define ATMEL_US_IDR
#define ATMEL_US_IMR
#define ATMEL_US_CSR
#define ATMEL_US_RHR
#define ATMEL_US_THR
#define ATMEL_US_SYNH

#define ATMEL_US_BRGR
#define ATMEL_US_CD
#define ATMEL_US_FP_OFFSET
#define ATMEL_US_FP_MASK

#define ATMEL_US_RTOR
#define ATMEL_UA_RTOR
#define ATMEL_US_TO

#define ATMEL_US_TTGR
#define ATMEL_US_TG

#define ATMEL_US_FIDI
#define ATMEL_US_NER
#define ATMEL_US_IF

#define ATMEL_US_CMPR
#define ATMEL_US_FMR
#define ATMEL_US_TXRDYM(data)
#define ATMEL_US_RXRDYM(data)
#define ATMEL_US_ONE_DATA
#define ATMEL_US_TWO_DATA
#define ATMEL_US_FOUR_DATA
#define ATMEL_US_FRTSC
#define ATMEL_US_TXFTHRES(thr)
#define ATMEL_US_RXFTHRES(thr)
#define ATMEL_US_RXFTHRES2(thr)

#define ATMEL_US_FLR
#define ATMEL_US_TXFL(reg)
#define ATMEL_US_RXFL(reg)

#define ATMEL_US_FIER
#define ATMEL_US_FIDR
#define ATMEL_US_FIMR
#define ATMEL_US_FESR
#define ATMEL_US_TXFEF
#define ATMEL_US_TXFFF
#define ATMEL_US_TXFTHF
#define ATMEL_US_RXFEF
#define ATMEL_US_RXFFF
#define ATMEL_US_RXFTHF
#define ATMEL_US_TXFPTEF
#define ATMEL_US_RXFPTEF
#define ATMEL_US_TXFLOCK
#define ATMEL_US_RXFTHF2

#define ATMEL_US_NAME
#define ATMEL_US_VERSION

#endif