18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* sunsab.h: Register Definitions for the Siemens SAB82532 DUSCC 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Copyright (C) 1997 Eddie C. Dost (ecd@skynet.be) 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifndef _SUNSAB_H 88c2ecf20Sopenharmony_ci#define _SUNSAB_H 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_cistruct sab82532_async_rd_regs { 118c2ecf20Sopenharmony_ci u8 rfifo[0x20]; /* Receive FIFO */ 128c2ecf20Sopenharmony_ci u8 star; /* Status Register */ 138c2ecf20Sopenharmony_ci u8 __pad1; 148c2ecf20Sopenharmony_ci u8 mode; /* Mode Register */ 158c2ecf20Sopenharmony_ci u8 timr; /* Timer Register */ 168c2ecf20Sopenharmony_ci u8 xon; /* XON Character */ 178c2ecf20Sopenharmony_ci u8 xoff; /* XOFF Character */ 188c2ecf20Sopenharmony_ci u8 tcr; /* Termination Character Register */ 198c2ecf20Sopenharmony_ci u8 dafo; /* Data Format */ 208c2ecf20Sopenharmony_ci u8 rfc; /* RFIFO Control Register */ 218c2ecf20Sopenharmony_ci u8 __pad2; 228c2ecf20Sopenharmony_ci u8 rbcl; /* Receive Byte Count Low */ 238c2ecf20Sopenharmony_ci u8 rbch; /* Receive Byte Count High */ 248c2ecf20Sopenharmony_ci u8 ccr0; /* Channel Configuration Register 0 */ 258c2ecf20Sopenharmony_ci u8 ccr1; /* Channel Configuration Register 1 */ 268c2ecf20Sopenharmony_ci u8 ccr2; /* Channel Configuration Register 2 */ 278c2ecf20Sopenharmony_ci u8 ccr3; /* Channel Configuration Register 3 */ 288c2ecf20Sopenharmony_ci u8 __pad3[4]; 298c2ecf20Sopenharmony_ci u8 vstr; /* Version Status Register */ 308c2ecf20Sopenharmony_ci u8 __pad4[3]; 318c2ecf20Sopenharmony_ci u8 gis; /* Global Interrupt Status */ 328c2ecf20Sopenharmony_ci u8 ipc; /* Interrupt Port Configuration */ 338c2ecf20Sopenharmony_ci u8 isr0; /* Interrupt Status 0 */ 348c2ecf20Sopenharmony_ci u8 isr1; /* Interrupt Status 1 */ 358c2ecf20Sopenharmony_ci u8 pvr; /* Port Value Register */ 368c2ecf20Sopenharmony_ci u8 pis; /* Port Interrupt Status */ 378c2ecf20Sopenharmony_ci u8 pcr; /* Port Configuration Register */ 388c2ecf20Sopenharmony_ci u8 ccr4; /* Channel Configuration Register 4 */ 398c2ecf20Sopenharmony_ci}; 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_cistruct sab82532_async_wr_regs { 428c2ecf20Sopenharmony_ci u8 xfifo[0x20]; /* Transmit FIFO */ 438c2ecf20Sopenharmony_ci u8 cmdr; /* Command Register */ 448c2ecf20Sopenharmony_ci u8 __pad1; 458c2ecf20Sopenharmony_ci u8 mode; 468c2ecf20Sopenharmony_ci u8 timr; 478c2ecf20Sopenharmony_ci u8 xon; 488c2ecf20Sopenharmony_ci u8 xoff; 498c2ecf20Sopenharmony_ci u8 tcr; 508c2ecf20Sopenharmony_ci u8 dafo; 518c2ecf20Sopenharmony_ci u8 rfc; 528c2ecf20Sopenharmony_ci u8 __pad2; 538c2ecf20Sopenharmony_ci u8 xbcl; /* Transmit Byte Count Low */ 548c2ecf20Sopenharmony_ci u8 xbch; /* Transmit Byte Count High */ 558c2ecf20Sopenharmony_ci u8 ccr0; 568c2ecf20Sopenharmony_ci u8 ccr1; 578c2ecf20Sopenharmony_ci u8 ccr2; 588c2ecf20Sopenharmony_ci u8 ccr3; 598c2ecf20Sopenharmony_ci u8 tsax; /* Time-Slot Assignment Reg. Transmit */ 608c2ecf20Sopenharmony_ci u8 tsar; /* Time-Slot Assignment Reg. Receive */ 618c2ecf20Sopenharmony_ci u8 xccr; /* Transmit Channel Capacity Register */ 628c2ecf20Sopenharmony_ci u8 rccr; /* Receive Channel Capacity Register */ 638c2ecf20Sopenharmony_ci u8 bgr; /* Baud Rate Generator Register */ 648c2ecf20Sopenharmony_ci u8 tic; /* Transmit Immediate Character */ 658c2ecf20Sopenharmony_ci u8 mxn; /* Mask XON Character */ 668c2ecf20Sopenharmony_ci u8 mxf; /* Mask XOFF Character */ 678c2ecf20Sopenharmony_ci u8 iva; /* Interrupt Vector Address */ 688c2ecf20Sopenharmony_ci u8 ipc; 698c2ecf20Sopenharmony_ci u8 imr0; /* Interrupt Mask Register 0 */ 708c2ecf20Sopenharmony_ci u8 imr1; /* Interrupt Mask Register 1 */ 718c2ecf20Sopenharmony_ci u8 pvr; 728c2ecf20Sopenharmony_ci u8 pim; /* Port Interrupt Mask */ 738c2ecf20Sopenharmony_ci u8 pcr; 748c2ecf20Sopenharmony_ci u8 ccr4; 758c2ecf20Sopenharmony_ci}; 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_cistruct sab82532_async_rw_regs { /* Read/Write registers */ 788c2ecf20Sopenharmony_ci u8 __pad1[0x20]; 798c2ecf20Sopenharmony_ci u8 __pad2; 808c2ecf20Sopenharmony_ci u8 __pad3; 818c2ecf20Sopenharmony_ci u8 mode; 828c2ecf20Sopenharmony_ci u8 timr; 838c2ecf20Sopenharmony_ci u8 xon; 848c2ecf20Sopenharmony_ci u8 xoff; 858c2ecf20Sopenharmony_ci u8 tcr; 868c2ecf20Sopenharmony_ci u8 dafo; 878c2ecf20Sopenharmony_ci u8 rfc; 888c2ecf20Sopenharmony_ci u8 __pad4; 898c2ecf20Sopenharmony_ci u8 __pad5; 908c2ecf20Sopenharmony_ci u8 __pad6; 918c2ecf20Sopenharmony_ci u8 ccr0; 928c2ecf20Sopenharmony_ci u8 ccr1; 938c2ecf20Sopenharmony_ci u8 ccr2; 948c2ecf20Sopenharmony_ci u8 ccr3; 958c2ecf20Sopenharmony_ci u8 __pad7; 968c2ecf20Sopenharmony_ci u8 __pad8; 978c2ecf20Sopenharmony_ci u8 __pad9; 988c2ecf20Sopenharmony_ci u8 __pad10; 998c2ecf20Sopenharmony_ci u8 __pad11; 1008c2ecf20Sopenharmony_ci u8 __pad12; 1018c2ecf20Sopenharmony_ci u8 __pad13; 1028c2ecf20Sopenharmony_ci u8 __pad14; 1038c2ecf20Sopenharmony_ci u8 __pad15; 1048c2ecf20Sopenharmony_ci u8 ipc; 1058c2ecf20Sopenharmony_ci u8 __pad16; 1068c2ecf20Sopenharmony_ci u8 __pad17; 1078c2ecf20Sopenharmony_ci u8 pvr; 1088c2ecf20Sopenharmony_ci u8 __pad18; 1098c2ecf20Sopenharmony_ci u8 pcr; 1108c2ecf20Sopenharmony_ci u8 ccr4; 1118c2ecf20Sopenharmony_ci}; 1128c2ecf20Sopenharmony_ci 1138c2ecf20Sopenharmony_ciunion sab82532_async_regs { 1148c2ecf20Sopenharmony_ci __volatile__ struct sab82532_async_rd_regs r; 1158c2ecf20Sopenharmony_ci __volatile__ struct sab82532_async_wr_regs w; 1168c2ecf20Sopenharmony_ci __volatile__ struct sab82532_async_rw_regs rw; 1178c2ecf20Sopenharmony_ci}; 1188c2ecf20Sopenharmony_ci 1198c2ecf20Sopenharmony_ciunion sab82532_irq_status { 1208c2ecf20Sopenharmony_ci unsigned short stat; 1218c2ecf20Sopenharmony_ci struct { 1228c2ecf20Sopenharmony_ci unsigned char isr0; 1238c2ecf20Sopenharmony_ci unsigned char isr1; 1248c2ecf20Sopenharmony_ci } sreg; 1258c2ecf20Sopenharmony_ci}; 1268c2ecf20Sopenharmony_ci 1278c2ecf20Sopenharmony_ci/* irqflags bits */ 1288c2ecf20Sopenharmony_ci#define SAB82532_ALLS 0x00000001 1298c2ecf20Sopenharmony_ci#define SAB82532_XPR 0x00000002 1308c2ecf20Sopenharmony_ci#define SAB82532_REGS_PENDING 0x00000004 1318c2ecf20Sopenharmony_ci 1328c2ecf20Sopenharmony_ci/* RFIFO Status Byte */ 1338c2ecf20Sopenharmony_ci#define SAB82532_RSTAT_PE 0x80 1348c2ecf20Sopenharmony_ci#define SAB82532_RSTAT_FE 0x40 1358c2ecf20Sopenharmony_ci#define SAB82532_RSTAT_PARITY 0x01 1368c2ecf20Sopenharmony_ci 1378c2ecf20Sopenharmony_ci/* Status Register (STAR) */ 1388c2ecf20Sopenharmony_ci#define SAB82532_STAR_XDOV 0x80 1398c2ecf20Sopenharmony_ci#define SAB82532_STAR_XFW 0x40 1408c2ecf20Sopenharmony_ci#define SAB82532_STAR_RFNE 0x20 1418c2ecf20Sopenharmony_ci#define SAB82532_STAR_FCS 0x10 1428c2ecf20Sopenharmony_ci#define SAB82532_STAR_TEC 0x08 1438c2ecf20Sopenharmony_ci#define SAB82532_STAR_CEC 0x04 1448c2ecf20Sopenharmony_ci#define SAB82532_STAR_CTS 0x02 1458c2ecf20Sopenharmony_ci 1468c2ecf20Sopenharmony_ci/* Command Register (CMDR) */ 1478c2ecf20Sopenharmony_ci#define SAB82532_CMDR_RMC 0x80 1488c2ecf20Sopenharmony_ci#define SAB82532_CMDR_RRES 0x40 1498c2ecf20Sopenharmony_ci#define SAB82532_CMDR_RFRD 0x20 1508c2ecf20Sopenharmony_ci#define SAB82532_CMDR_STI 0x10 1518c2ecf20Sopenharmony_ci#define SAB82532_CMDR_XF 0x08 1528c2ecf20Sopenharmony_ci#define SAB82532_CMDR_XRES 0x01 1538c2ecf20Sopenharmony_ci 1548c2ecf20Sopenharmony_ci/* Mode Register (MODE) */ 1558c2ecf20Sopenharmony_ci#define SAB82532_MODE_FRTS 0x40 1568c2ecf20Sopenharmony_ci#define SAB82532_MODE_FCTS 0x20 1578c2ecf20Sopenharmony_ci#define SAB82532_MODE_FLON 0x10 1588c2ecf20Sopenharmony_ci#define SAB82532_MODE_RAC 0x08 1598c2ecf20Sopenharmony_ci#define SAB82532_MODE_RTS 0x04 1608c2ecf20Sopenharmony_ci#define SAB82532_MODE_TRS 0x02 1618c2ecf20Sopenharmony_ci#define SAB82532_MODE_TLP 0x01 1628c2ecf20Sopenharmony_ci 1638c2ecf20Sopenharmony_ci/* Timer Register (TIMR) */ 1648c2ecf20Sopenharmony_ci#define SAB82532_TIMR_CNT_MASK 0xe0 1658c2ecf20Sopenharmony_ci#define SAB82532_TIMR_VALUE_MASK 0x1f 1668c2ecf20Sopenharmony_ci 1678c2ecf20Sopenharmony_ci/* Data Format (DAFO) */ 1688c2ecf20Sopenharmony_ci#define SAB82532_DAFO_XBRK 0x40 1698c2ecf20Sopenharmony_ci#define SAB82532_DAFO_STOP 0x20 1708c2ecf20Sopenharmony_ci#define SAB82532_DAFO_PAR_SPACE 0x00 1718c2ecf20Sopenharmony_ci#define SAB82532_DAFO_PAR_ODD 0x08 1728c2ecf20Sopenharmony_ci#define SAB82532_DAFO_PAR_EVEN 0x10 1738c2ecf20Sopenharmony_ci#define SAB82532_DAFO_PAR_MARK 0x18 1748c2ecf20Sopenharmony_ci#define SAB82532_DAFO_PARE 0x04 1758c2ecf20Sopenharmony_ci#define SAB82532_DAFO_CHL8 0x00 1768c2ecf20Sopenharmony_ci#define SAB82532_DAFO_CHL7 0x01 1778c2ecf20Sopenharmony_ci#define SAB82532_DAFO_CHL6 0x02 1788c2ecf20Sopenharmony_ci#define SAB82532_DAFO_CHL5 0x03 1798c2ecf20Sopenharmony_ci 1808c2ecf20Sopenharmony_ci/* RFIFO Control Register (RFC) */ 1818c2ecf20Sopenharmony_ci#define SAB82532_RFC_DPS 0x40 1828c2ecf20Sopenharmony_ci#define SAB82532_RFC_DXS 0x20 1838c2ecf20Sopenharmony_ci#define SAB82532_RFC_RFDF 0x10 1848c2ecf20Sopenharmony_ci#define SAB82532_RFC_RFTH_1 0x00 1858c2ecf20Sopenharmony_ci#define SAB82532_RFC_RFTH_4 0x04 1868c2ecf20Sopenharmony_ci#define SAB82532_RFC_RFTH_16 0x08 1878c2ecf20Sopenharmony_ci#define SAB82532_RFC_RFTH_32 0x0c 1888c2ecf20Sopenharmony_ci#define SAB82532_RFC_TCDE 0x01 1898c2ecf20Sopenharmony_ci 1908c2ecf20Sopenharmony_ci/* Received Byte Count High (RBCH) */ 1918c2ecf20Sopenharmony_ci#define SAB82532_RBCH_DMA 0x80 1928c2ecf20Sopenharmony_ci#define SAB82532_RBCH_CAS 0x20 1938c2ecf20Sopenharmony_ci 1948c2ecf20Sopenharmony_ci/* Transmit Byte Count High (XBCH) */ 1958c2ecf20Sopenharmony_ci#define SAB82532_XBCH_DMA 0x80 1968c2ecf20Sopenharmony_ci#define SAB82532_XBCH_CAS 0x20 1978c2ecf20Sopenharmony_ci#define SAB82532_XBCH_XC 0x10 1988c2ecf20Sopenharmony_ci 1998c2ecf20Sopenharmony_ci/* Channel Configuration Register 0 (CCR0) */ 2008c2ecf20Sopenharmony_ci#define SAB82532_CCR0_PU 0x80 2018c2ecf20Sopenharmony_ci#define SAB82532_CCR0_MCE 0x40 2028c2ecf20Sopenharmony_ci#define SAB82532_CCR0_SC_NRZ 0x00 2038c2ecf20Sopenharmony_ci#define SAB82532_CCR0_SC_NRZI 0x08 2048c2ecf20Sopenharmony_ci#define SAB82532_CCR0_SC_FM0 0x10 2058c2ecf20Sopenharmony_ci#define SAB82532_CCR0_SC_FM1 0x14 2068c2ecf20Sopenharmony_ci#define SAB82532_CCR0_SC_MANCH 0x18 2078c2ecf20Sopenharmony_ci#define SAB82532_CCR0_SM_HDLC 0x00 2088c2ecf20Sopenharmony_ci#define SAB82532_CCR0_SM_SDLC_LOOP 0x01 2098c2ecf20Sopenharmony_ci#define SAB82532_CCR0_SM_BISYNC 0x02 2108c2ecf20Sopenharmony_ci#define SAB82532_CCR0_SM_ASYNC 0x03 2118c2ecf20Sopenharmony_ci 2128c2ecf20Sopenharmony_ci/* Channel Configuration Register 1 (CCR1) */ 2138c2ecf20Sopenharmony_ci#define SAB82532_CCR1_ODS 0x10 2148c2ecf20Sopenharmony_ci#define SAB82532_CCR1_BCR 0x08 2158c2ecf20Sopenharmony_ci#define SAB82532_CCR1_CM_MASK 0x07 2168c2ecf20Sopenharmony_ci 2178c2ecf20Sopenharmony_ci/* Channel Configuration Register 2 (CCR2) */ 2188c2ecf20Sopenharmony_ci#define SAB82532_CCR2_SOC1 0x80 2198c2ecf20Sopenharmony_ci#define SAB82532_CCR2_SOC0 0x40 2208c2ecf20Sopenharmony_ci#define SAB82532_CCR2_BR9 0x80 2218c2ecf20Sopenharmony_ci#define SAB82532_CCR2_BR8 0x40 2228c2ecf20Sopenharmony_ci#define SAB82532_CCR2_BDF 0x20 2238c2ecf20Sopenharmony_ci#define SAB82532_CCR2_SSEL 0x10 2248c2ecf20Sopenharmony_ci#define SAB82532_CCR2_XCS0 0x20 2258c2ecf20Sopenharmony_ci#define SAB82532_CCR2_RCS0 0x10 2268c2ecf20Sopenharmony_ci#define SAB82532_CCR2_TOE 0x08 2278c2ecf20Sopenharmony_ci#define SAB82532_CCR2_RWX 0x04 2288c2ecf20Sopenharmony_ci#define SAB82532_CCR2_DIV 0x01 2298c2ecf20Sopenharmony_ci 2308c2ecf20Sopenharmony_ci/* Channel Configuration Register 3 (CCR3) */ 2318c2ecf20Sopenharmony_ci#define SAB82532_CCR3_PSD 0x01 2328c2ecf20Sopenharmony_ci 2338c2ecf20Sopenharmony_ci/* Time Slot Assignment Register Transmit (TSAX) */ 2348c2ecf20Sopenharmony_ci#define SAB82532_TSAX_TSNX_MASK 0xfc 2358c2ecf20Sopenharmony_ci#define SAB82532_TSAX_XCS2 0x02 /* see also CCR2 */ 2368c2ecf20Sopenharmony_ci#define SAB82532_TSAX_XCS1 0x01 2378c2ecf20Sopenharmony_ci 2388c2ecf20Sopenharmony_ci/* Time Slot Assignment Register Receive (TSAR) */ 2398c2ecf20Sopenharmony_ci#define SAB82532_TSAR_TSNR_MASK 0xfc 2408c2ecf20Sopenharmony_ci#define SAB82532_TSAR_RCS2 0x02 /* see also CCR2 */ 2418c2ecf20Sopenharmony_ci#define SAB82532_TSAR_RCS1 0x01 2428c2ecf20Sopenharmony_ci 2438c2ecf20Sopenharmony_ci/* Version Status Register (VSTR) */ 2448c2ecf20Sopenharmony_ci#define SAB82532_VSTR_CD 0x80 2458c2ecf20Sopenharmony_ci#define SAB82532_VSTR_DPLA 0x40 2468c2ecf20Sopenharmony_ci#define SAB82532_VSTR_VN_MASK 0x0f 2478c2ecf20Sopenharmony_ci#define SAB82532_VSTR_VN_1 0x00 2488c2ecf20Sopenharmony_ci#define SAB82532_VSTR_VN_2 0x01 2498c2ecf20Sopenharmony_ci#define SAB82532_VSTR_VN_3_2 0x02 2508c2ecf20Sopenharmony_ci 2518c2ecf20Sopenharmony_ci/* Global Interrupt Status Register (GIS) */ 2528c2ecf20Sopenharmony_ci#define SAB82532_GIS_PI 0x80 2538c2ecf20Sopenharmony_ci#define SAB82532_GIS_ISA1 0x08 2548c2ecf20Sopenharmony_ci#define SAB82532_GIS_ISA0 0x04 2558c2ecf20Sopenharmony_ci#define SAB82532_GIS_ISB1 0x02 2568c2ecf20Sopenharmony_ci#define SAB82532_GIS_ISB0 0x01 2578c2ecf20Sopenharmony_ci 2588c2ecf20Sopenharmony_ci/* Interrupt Vector Address (IVA) */ 2598c2ecf20Sopenharmony_ci#define SAB82532_IVA_MASK 0xf1 2608c2ecf20Sopenharmony_ci 2618c2ecf20Sopenharmony_ci/* Interrupt Port Configuration (IPC) */ 2628c2ecf20Sopenharmony_ci#define SAB82532_IPC_VIS 0x80 2638c2ecf20Sopenharmony_ci#define SAB82532_IPC_SLA1 0x10 2648c2ecf20Sopenharmony_ci#define SAB82532_IPC_SLA0 0x08 2658c2ecf20Sopenharmony_ci#define SAB82532_IPC_CASM 0x04 2668c2ecf20Sopenharmony_ci#define SAB82532_IPC_IC_OPEN_DRAIN 0x00 2678c2ecf20Sopenharmony_ci#define SAB82532_IPC_IC_ACT_LOW 0x01 2688c2ecf20Sopenharmony_ci#define SAB82532_IPC_IC_ACT_HIGH 0x03 2698c2ecf20Sopenharmony_ci 2708c2ecf20Sopenharmony_ci/* Interrupt Status Register 0 (ISR0) */ 2718c2ecf20Sopenharmony_ci#define SAB82532_ISR0_TCD 0x80 2728c2ecf20Sopenharmony_ci#define SAB82532_ISR0_TIME 0x40 2738c2ecf20Sopenharmony_ci#define SAB82532_ISR0_PERR 0x20 2748c2ecf20Sopenharmony_ci#define SAB82532_ISR0_FERR 0x10 2758c2ecf20Sopenharmony_ci#define SAB82532_ISR0_PLLA 0x08 2768c2ecf20Sopenharmony_ci#define SAB82532_ISR0_CDSC 0x04 2778c2ecf20Sopenharmony_ci#define SAB82532_ISR0_RFO 0x02 2788c2ecf20Sopenharmony_ci#define SAB82532_ISR0_RPF 0x01 2798c2ecf20Sopenharmony_ci 2808c2ecf20Sopenharmony_ci/* Interrupt Status Register 1 (ISR1) */ 2818c2ecf20Sopenharmony_ci#define SAB82532_ISR1_BRK 0x80 2828c2ecf20Sopenharmony_ci#define SAB82532_ISR1_BRKT 0x40 2838c2ecf20Sopenharmony_ci#define SAB82532_ISR1_ALLS 0x20 2848c2ecf20Sopenharmony_ci#define SAB82532_ISR1_XOFF 0x10 2858c2ecf20Sopenharmony_ci#define SAB82532_ISR1_TIN 0x08 2868c2ecf20Sopenharmony_ci#define SAB82532_ISR1_CSC 0x04 2878c2ecf20Sopenharmony_ci#define SAB82532_ISR1_XON 0x02 2888c2ecf20Sopenharmony_ci#define SAB82532_ISR1_XPR 0x01 2898c2ecf20Sopenharmony_ci 2908c2ecf20Sopenharmony_ci/* Interrupt Mask Register 0 (IMR0) */ 2918c2ecf20Sopenharmony_ci#define SAB82532_IMR0_TCD 0x80 2928c2ecf20Sopenharmony_ci#define SAB82532_IMR0_TIME 0x40 2938c2ecf20Sopenharmony_ci#define SAB82532_IMR0_PERR 0x20 2948c2ecf20Sopenharmony_ci#define SAB82532_IMR0_FERR 0x10 2958c2ecf20Sopenharmony_ci#define SAB82532_IMR0_PLLA 0x08 2968c2ecf20Sopenharmony_ci#define SAB82532_IMR0_CDSC 0x04 2978c2ecf20Sopenharmony_ci#define SAB82532_IMR0_RFO 0x02 2988c2ecf20Sopenharmony_ci#define SAB82532_IMR0_RPF 0x01 2998c2ecf20Sopenharmony_ci 3008c2ecf20Sopenharmony_ci/* Interrupt Mask Register 1 (IMR1) */ 3018c2ecf20Sopenharmony_ci#define SAB82532_IMR1_BRK 0x80 3028c2ecf20Sopenharmony_ci#define SAB82532_IMR1_BRKT 0x40 3038c2ecf20Sopenharmony_ci#define SAB82532_IMR1_ALLS 0x20 3048c2ecf20Sopenharmony_ci#define SAB82532_IMR1_XOFF 0x10 3058c2ecf20Sopenharmony_ci#define SAB82532_IMR1_TIN 0x08 3068c2ecf20Sopenharmony_ci#define SAB82532_IMR1_CSC 0x04 3078c2ecf20Sopenharmony_ci#define SAB82532_IMR1_XON 0x02 3088c2ecf20Sopenharmony_ci#define SAB82532_IMR1_XPR 0x01 3098c2ecf20Sopenharmony_ci 3108c2ecf20Sopenharmony_ci/* Port Interrupt Status Register (PIS) */ 3118c2ecf20Sopenharmony_ci#define SAB82532_PIS_SYNC_B 0x08 3128c2ecf20Sopenharmony_ci#define SAB82532_PIS_DTR_B 0x04 3138c2ecf20Sopenharmony_ci#define SAB82532_PIS_DTR_A 0x02 3148c2ecf20Sopenharmony_ci#define SAB82532_PIS_SYNC_A 0x01 3158c2ecf20Sopenharmony_ci 3168c2ecf20Sopenharmony_ci/* Channel Configuration Register 4 (CCR4) */ 3178c2ecf20Sopenharmony_ci#define SAB82532_CCR4_MCK4 0x80 3188c2ecf20Sopenharmony_ci#define SAB82532_CCR4_EBRG 0x40 3198c2ecf20Sopenharmony_ci#define SAB82532_CCR4_TST1 0x20 3208c2ecf20Sopenharmony_ci#define SAB82532_CCR4_ICD 0x10 3218c2ecf20Sopenharmony_ci 3228c2ecf20Sopenharmony_ci 3238c2ecf20Sopenharmony_ci#endif /* !(_SUNSAB_H) */ 324