Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
sunsab.h File Reference

Go to the source code of this file.

Data Structures

struct  sab82532_async_rd_regs
 
struct  sab82532_async_wr_regs
 
struct  sab82532_async_rw_regs
 
union  sab82532_async_regs
 
union  sab82532_irq_status
 

Macros

#define SAB82532_ALLS   0x00000001
 
#define SAB82532_XPR   0x00000002
 
#define SAB82532_REGS_PENDING   0x00000004
 
#define SAB82532_RSTAT_PE   0x80
 
#define SAB82532_RSTAT_FE   0x40
 
#define SAB82532_RSTAT_PARITY   0x01
 
#define SAB82532_STAR_XDOV   0x80
 
#define SAB82532_STAR_XFW   0x40
 
#define SAB82532_STAR_RFNE   0x20
 
#define SAB82532_STAR_FCS   0x10
 
#define SAB82532_STAR_TEC   0x08
 
#define SAB82532_STAR_CEC   0x04
 
#define SAB82532_STAR_CTS   0x02
 
#define SAB82532_CMDR_RMC   0x80
 
#define SAB82532_CMDR_RRES   0x40
 
#define SAB82532_CMDR_RFRD   0x20
 
#define SAB82532_CMDR_STI   0x10
 
#define SAB82532_CMDR_XF   0x08
 
#define SAB82532_CMDR_XRES   0x01
 
#define SAB82532_MODE_FRTS   0x40
 
#define SAB82532_MODE_FCTS   0x20
 
#define SAB82532_MODE_FLON   0x10
 
#define SAB82532_MODE_RAC   0x08
 
#define SAB82532_MODE_RTS   0x04
 
#define SAB82532_MODE_TRS   0x02
 
#define SAB82532_MODE_TLP   0x01
 
#define SAB82532_TIMR_CNT_MASK   0xe0
 
#define SAB82532_TIMR_VALUE_MASK   0x1f
 
#define SAB82532_DAFO_XBRK   0x40
 
#define SAB82532_DAFO_STOP   0x20
 
#define SAB82532_DAFO_PAR_SPACE   0x00
 
#define SAB82532_DAFO_PAR_ODD   0x08
 
#define SAB82532_DAFO_PAR_EVEN   0x10
 
#define SAB82532_DAFO_PAR_MARK   0x18
 
#define SAB82532_DAFO_PARE   0x04
 
#define SAB82532_DAFO_CHL8   0x00
 
#define SAB82532_DAFO_CHL7   0x01
 
#define SAB82532_DAFO_CHL6   0x02
 
#define SAB82532_DAFO_CHL5   0x03
 
#define SAB82532_RFC_DPS   0x40
 
#define SAB82532_RFC_DXS   0x20
 
#define SAB82532_RFC_RFDF   0x10
 
#define SAB82532_RFC_RFTH_1   0x00
 
#define SAB82532_RFC_RFTH_4   0x04
 
#define SAB82532_RFC_RFTH_16   0x08
 
#define SAB82532_RFC_RFTH_32   0x0c
 
#define SAB82532_RFC_TCDE   0x01
 
#define SAB82532_RBCH_DMA   0x80
 
#define SAB82532_RBCH_CAS   0x20
 
#define SAB82532_XBCH_DMA   0x80
 
#define SAB82532_XBCH_CAS   0x20
 
#define SAB82532_XBCH_XC   0x10
 
#define SAB82532_CCR0_PU   0x80
 
#define SAB82532_CCR0_MCE   0x40
 
#define SAB82532_CCR0_SC_NRZ   0x00
 
#define SAB82532_CCR0_SC_NRZI   0x08
 
#define SAB82532_CCR0_SC_FM0   0x10
 
#define SAB82532_CCR0_SC_FM1   0x14
 
#define SAB82532_CCR0_SC_MANCH   0x18
 
#define SAB82532_CCR0_SM_HDLC   0x00
 
#define SAB82532_CCR0_SM_SDLC_LOOP   0x01
 
#define SAB82532_CCR0_SM_BISYNC   0x02
 
#define SAB82532_CCR0_SM_ASYNC   0x03
 
#define SAB82532_CCR1_ODS   0x10
 
#define SAB82532_CCR1_BCR   0x08
 
#define SAB82532_CCR1_CM_MASK   0x07
 
#define SAB82532_CCR2_SOC1   0x80
 
#define SAB82532_CCR2_SOC0   0x40
 
#define SAB82532_CCR2_BR9   0x80
 
#define SAB82532_CCR2_BR8   0x40
 
#define SAB82532_CCR2_BDF   0x20
 
#define SAB82532_CCR2_SSEL   0x10
 
#define SAB82532_CCR2_XCS0   0x20
 
#define SAB82532_CCR2_RCS0   0x10
 
#define SAB82532_CCR2_TOE   0x08
 
#define SAB82532_CCR2_RWX   0x04
 
#define SAB82532_CCR2_DIV   0x01
 
#define SAB82532_CCR3_PSD   0x01
 
#define SAB82532_TSAX_TSNX_MASK   0xfc
 
#define SAB82532_TSAX_XCS2   0x02 /* see also CCR2 */
 
#define SAB82532_TSAX_XCS1   0x01
 
#define SAB82532_TSAR_TSNR_MASK   0xfc
 
#define SAB82532_TSAR_RCS2   0x02 /* see also CCR2 */
 
#define SAB82532_TSAR_RCS1   0x01
 
#define SAB82532_VSTR_CD   0x80
 
#define SAB82532_VSTR_DPLA   0x40
 
#define SAB82532_VSTR_VN_MASK   0x0f
 
#define SAB82532_VSTR_VN_1   0x00
 
#define SAB82532_VSTR_VN_2   0x01
 
#define SAB82532_VSTR_VN_3_2   0x02
 
#define SAB82532_GIS_PI   0x80
 
#define SAB82532_GIS_ISA1   0x08
 
#define SAB82532_GIS_ISA0   0x04
 
#define SAB82532_GIS_ISB1   0x02
 
#define SAB82532_GIS_ISB0   0x01
 
#define SAB82532_IVA_MASK   0xf1
 
#define SAB82532_IPC_VIS   0x80
 
#define SAB82532_IPC_SLA1   0x10
 
#define SAB82532_IPC_SLA0   0x08
 
#define SAB82532_IPC_CASM   0x04
 
#define SAB82532_IPC_IC_OPEN_DRAIN   0x00
 
#define SAB82532_IPC_IC_ACT_LOW   0x01
 
#define SAB82532_IPC_IC_ACT_HIGH   0x03
 
#define SAB82532_ISR0_TCD   0x80
 
#define SAB82532_ISR0_TIME   0x40
 
#define SAB82532_ISR0_PERR   0x20
 
#define SAB82532_ISR0_FERR   0x10
 
#define SAB82532_ISR0_PLLA   0x08
 
#define SAB82532_ISR0_CDSC   0x04
 
#define SAB82532_ISR0_RFO   0x02
 
#define SAB82532_ISR0_RPF   0x01
 
#define SAB82532_ISR1_BRK   0x80
 
#define SAB82532_ISR1_BRKT   0x40
 
#define SAB82532_ISR1_ALLS   0x20
 
#define SAB82532_ISR1_XOFF   0x10
 
#define SAB82532_ISR1_TIN   0x08
 
#define SAB82532_ISR1_CSC   0x04
 
#define SAB82532_ISR1_XON   0x02
 
#define SAB82532_ISR1_XPR   0x01
 
#define SAB82532_IMR0_TCD   0x80
 
#define SAB82532_IMR0_TIME   0x40
 
#define SAB82532_IMR0_PERR   0x20
 
#define SAB82532_IMR0_FERR   0x10
 
#define SAB82532_IMR0_PLLA   0x08
 
#define SAB82532_IMR0_CDSC   0x04
 
#define SAB82532_IMR0_RFO   0x02
 
#define SAB82532_IMR0_RPF   0x01
 
#define SAB82532_IMR1_BRK   0x80
 
#define SAB82532_IMR1_BRKT   0x40
 
#define SAB82532_IMR1_ALLS   0x20
 
#define SAB82532_IMR1_XOFF   0x10
 
#define SAB82532_IMR1_TIN   0x08
 
#define SAB82532_IMR1_CSC   0x04
 
#define SAB82532_IMR1_XON   0x02
 
#define SAB82532_IMR1_XPR   0x01
 
#define SAB82532_PIS_SYNC_B   0x08
 
#define SAB82532_PIS_DTR_B   0x04
 
#define SAB82532_PIS_DTR_A   0x02
 
#define SAB82532_PIS_SYNC_A   0x01
 
#define SAB82532_CCR4_MCK4   0x80
 
#define SAB82532_CCR4_EBRG   0x40
 
#define SAB82532_CCR4_TST1   0x20
 
#define SAB82532_CCR4_ICD   0x10
 

Macro Definition Documentation

#define SAB82532_ALLS   0x00000001

Definition at line 127 of file sunsab.h.

#define SAB82532_CCR0_MCE   0x40

Definition at line 200 of file sunsab.h.

#define SAB82532_CCR0_PU   0x80

Definition at line 199 of file sunsab.h.

#define SAB82532_CCR0_SC_FM0   0x10

Definition at line 203 of file sunsab.h.

#define SAB82532_CCR0_SC_FM1   0x14

Definition at line 204 of file sunsab.h.

#define SAB82532_CCR0_SC_MANCH   0x18

Definition at line 205 of file sunsab.h.

#define SAB82532_CCR0_SC_NRZ   0x00

Definition at line 201 of file sunsab.h.

#define SAB82532_CCR0_SC_NRZI   0x08

Definition at line 202 of file sunsab.h.

#define SAB82532_CCR0_SM_ASYNC   0x03

Definition at line 209 of file sunsab.h.

#define SAB82532_CCR0_SM_BISYNC   0x02

Definition at line 208 of file sunsab.h.

#define SAB82532_CCR0_SM_HDLC   0x00

Definition at line 206 of file sunsab.h.

#define SAB82532_CCR0_SM_SDLC_LOOP   0x01

Definition at line 207 of file sunsab.h.

#define SAB82532_CCR1_BCR   0x08

Definition at line 213 of file sunsab.h.

#define SAB82532_CCR1_CM_MASK   0x07

Definition at line 214 of file sunsab.h.

#define SAB82532_CCR1_ODS   0x10

Definition at line 212 of file sunsab.h.

#define SAB82532_CCR2_BDF   0x20

Definition at line 221 of file sunsab.h.

#define SAB82532_CCR2_BR8   0x40

Definition at line 220 of file sunsab.h.

#define SAB82532_CCR2_BR9   0x80

Definition at line 219 of file sunsab.h.

#define SAB82532_CCR2_DIV   0x01

Definition at line 227 of file sunsab.h.

#define SAB82532_CCR2_RCS0   0x10

Definition at line 224 of file sunsab.h.

#define SAB82532_CCR2_RWX   0x04

Definition at line 226 of file sunsab.h.

#define SAB82532_CCR2_SOC0   0x40

Definition at line 218 of file sunsab.h.

#define SAB82532_CCR2_SOC1   0x80

Definition at line 217 of file sunsab.h.

#define SAB82532_CCR2_SSEL   0x10

Definition at line 222 of file sunsab.h.

#define SAB82532_CCR2_TOE   0x08

Definition at line 225 of file sunsab.h.

#define SAB82532_CCR2_XCS0   0x20

Definition at line 223 of file sunsab.h.

#define SAB82532_CCR3_PSD   0x01

Definition at line 230 of file sunsab.h.

#define SAB82532_CCR4_EBRG   0x40

Definition at line 317 of file sunsab.h.

#define SAB82532_CCR4_ICD   0x10

Definition at line 319 of file sunsab.h.

#define SAB82532_CCR4_MCK4   0x80

Definition at line 316 of file sunsab.h.

#define SAB82532_CCR4_TST1   0x20

Definition at line 318 of file sunsab.h.

#define SAB82532_CMDR_RFRD   0x20

Definition at line 148 of file sunsab.h.

#define SAB82532_CMDR_RMC   0x80

Definition at line 146 of file sunsab.h.

#define SAB82532_CMDR_RRES   0x40

Definition at line 147 of file sunsab.h.

#define SAB82532_CMDR_STI   0x10

Definition at line 149 of file sunsab.h.

#define SAB82532_CMDR_XF   0x08

Definition at line 150 of file sunsab.h.

#define SAB82532_CMDR_XRES   0x01

Definition at line 151 of file sunsab.h.

#define SAB82532_DAFO_CHL5   0x03

Definition at line 177 of file sunsab.h.

#define SAB82532_DAFO_CHL6   0x02

Definition at line 176 of file sunsab.h.

#define SAB82532_DAFO_CHL7   0x01

Definition at line 175 of file sunsab.h.

#define SAB82532_DAFO_CHL8   0x00

Definition at line 174 of file sunsab.h.

#define SAB82532_DAFO_PAR_EVEN   0x10

Definition at line 171 of file sunsab.h.

#define SAB82532_DAFO_PAR_MARK   0x18

Definition at line 172 of file sunsab.h.

#define SAB82532_DAFO_PAR_ODD   0x08

Definition at line 170 of file sunsab.h.

#define SAB82532_DAFO_PAR_SPACE   0x00

Definition at line 169 of file sunsab.h.

#define SAB82532_DAFO_PARE   0x04

Definition at line 173 of file sunsab.h.

#define SAB82532_DAFO_STOP   0x20

Definition at line 168 of file sunsab.h.

#define SAB82532_DAFO_XBRK   0x40

Definition at line 167 of file sunsab.h.

#define SAB82532_GIS_ISA0   0x04

Definition at line 253 of file sunsab.h.

#define SAB82532_GIS_ISA1   0x08

Definition at line 252 of file sunsab.h.

#define SAB82532_GIS_ISB0   0x01

Definition at line 255 of file sunsab.h.

#define SAB82532_GIS_ISB1   0x02

Definition at line 254 of file sunsab.h.

#define SAB82532_GIS_PI   0x80

Definition at line 251 of file sunsab.h.

#define SAB82532_IMR0_CDSC   0x04

Definition at line 295 of file sunsab.h.

#define SAB82532_IMR0_FERR   0x10

Definition at line 293 of file sunsab.h.

#define SAB82532_IMR0_PERR   0x20

Definition at line 292 of file sunsab.h.

#define SAB82532_IMR0_PLLA   0x08

Definition at line 294 of file sunsab.h.

#define SAB82532_IMR0_RFO   0x02

Definition at line 296 of file sunsab.h.

#define SAB82532_IMR0_RPF   0x01

Definition at line 297 of file sunsab.h.

#define SAB82532_IMR0_TCD   0x80

Definition at line 290 of file sunsab.h.

#define SAB82532_IMR0_TIME   0x40

Definition at line 291 of file sunsab.h.

#define SAB82532_IMR1_ALLS   0x20

Definition at line 302 of file sunsab.h.

#define SAB82532_IMR1_BRK   0x80

Definition at line 300 of file sunsab.h.

#define SAB82532_IMR1_BRKT   0x40

Definition at line 301 of file sunsab.h.

#define SAB82532_IMR1_CSC   0x04

Definition at line 305 of file sunsab.h.

#define SAB82532_IMR1_TIN   0x08

Definition at line 304 of file sunsab.h.

#define SAB82532_IMR1_XOFF   0x10

Definition at line 303 of file sunsab.h.

#define SAB82532_IMR1_XON   0x02

Definition at line 306 of file sunsab.h.

#define SAB82532_IMR1_XPR   0x01

Definition at line 307 of file sunsab.h.

#define SAB82532_IPC_CASM   0x04

Definition at line 264 of file sunsab.h.

#define SAB82532_IPC_IC_ACT_HIGH   0x03

Definition at line 267 of file sunsab.h.

#define SAB82532_IPC_IC_ACT_LOW   0x01

Definition at line 266 of file sunsab.h.

#define SAB82532_IPC_IC_OPEN_DRAIN   0x00

Definition at line 265 of file sunsab.h.

#define SAB82532_IPC_SLA0   0x08

Definition at line 263 of file sunsab.h.

#define SAB82532_IPC_SLA1   0x10

Definition at line 262 of file sunsab.h.

#define SAB82532_IPC_VIS   0x80

Definition at line 261 of file sunsab.h.

#define SAB82532_ISR0_CDSC   0x04

Definition at line 275 of file sunsab.h.

#define SAB82532_ISR0_FERR   0x10

Definition at line 273 of file sunsab.h.

#define SAB82532_ISR0_PERR   0x20

Definition at line 272 of file sunsab.h.

#define SAB82532_ISR0_PLLA   0x08

Definition at line 274 of file sunsab.h.

#define SAB82532_ISR0_RFO   0x02

Definition at line 276 of file sunsab.h.

#define SAB82532_ISR0_RPF   0x01

Definition at line 277 of file sunsab.h.

#define SAB82532_ISR0_TCD   0x80

Definition at line 270 of file sunsab.h.

#define SAB82532_ISR0_TIME   0x40

Definition at line 271 of file sunsab.h.

#define SAB82532_ISR1_ALLS   0x20

Definition at line 282 of file sunsab.h.

#define SAB82532_ISR1_BRK   0x80

Definition at line 280 of file sunsab.h.

#define SAB82532_ISR1_BRKT   0x40

Definition at line 281 of file sunsab.h.

#define SAB82532_ISR1_CSC   0x04

Definition at line 285 of file sunsab.h.

#define SAB82532_ISR1_TIN   0x08

Definition at line 284 of file sunsab.h.

#define SAB82532_ISR1_XOFF   0x10

Definition at line 283 of file sunsab.h.

#define SAB82532_ISR1_XON   0x02

Definition at line 286 of file sunsab.h.

#define SAB82532_ISR1_XPR   0x01

Definition at line 287 of file sunsab.h.

#define SAB82532_IVA_MASK   0xf1

Definition at line 258 of file sunsab.h.

#define SAB82532_MODE_FCTS   0x20

Definition at line 155 of file sunsab.h.

#define SAB82532_MODE_FLON   0x10

Definition at line 156 of file sunsab.h.

#define SAB82532_MODE_FRTS   0x40

Definition at line 154 of file sunsab.h.

#define SAB82532_MODE_RAC   0x08

Definition at line 157 of file sunsab.h.

#define SAB82532_MODE_RTS   0x04

Definition at line 158 of file sunsab.h.

#define SAB82532_MODE_TLP   0x01

Definition at line 160 of file sunsab.h.

#define SAB82532_MODE_TRS   0x02

Definition at line 159 of file sunsab.h.

#define SAB82532_PIS_DTR_A   0x02

Definition at line 312 of file sunsab.h.

#define SAB82532_PIS_DTR_B   0x04

Definition at line 311 of file sunsab.h.

#define SAB82532_PIS_SYNC_A   0x01

Definition at line 313 of file sunsab.h.

#define SAB82532_PIS_SYNC_B   0x08

Definition at line 310 of file sunsab.h.

#define SAB82532_RBCH_CAS   0x20

Definition at line 191 of file sunsab.h.

#define SAB82532_RBCH_DMA   0x80

Definition at line 190 of file sunsab.h.

#define SAB82532_REGS_PENDING   0x00000004

Definition at line 129 of file sunsab.h.

#define SAB82532_RFC_DPS   0x40

Definition at line 180 of file sunsab.h.

#define SAB82532_RFC_DXS   0x20

Definition at line 181 of file sunsab.h.

#define SAB82532_RFC_RFDF   0x10

Definition at line 182 of file sunsab.h.

#define SAB82532_RFC_RFTH_1   0x00

Definition at line 183 of file sunsab.h.

#define SAB82532_RFC_RFTH_16   0x08

Definition at line 185 of file sunsab.h.

#define SAB82532_RFC_RFTH_32   0x0c

Definition at line 186 of file sunsab.h.

#define SAB82532_RFC_RFTH_4   0x04

Definition at line 184 of file sunsab.h.

#define SAB82532_RFC_TCDE   0x01

Definition at line 187 of file sunsab.h.

#define SAB82532_RSTAT_FE   0x40

Definition at line 133 of file sunsab.h.

#define SAB82532_RSTAT_PARITY   0x01

Definition at line 134 of file sunsab.h.

#define SAB82532_RSTAT_PE   0x80

Definition at line 132 of file sunsab.h.

#define SAB82532_STAR_CEC   0x04

Definition at line 142 of file sunsab.h.

#define SAB82532_STAR_CTS   0x02

Definition at line 143 of file sunsab.h.

#define SAB82532_STAR_FCS   0x10

Definition at line 140 of file sunsab.h.

#define SAB82532_STAR_RFNE   0x20

Definition at line 139 of file sunsab.h.

#define SAB82532_STAR_TEC   0x08

Definition at line 141 of file sunsab.h.

#define SAB82532_STAR_XDOV   0x80

Definition at line 137 of file sunsab.h.

#define SAB82532_STAR_XFW   0x40

Definition at line 138 of file sunsab.h.

#define SAB82532_TIMR_CNT_MASK   0xe0

Definition at line 163 of file sunsab.h.

#define SAB82532_TIMR_VALUE_MASK   0x1f

Definition at line 164 of file sunsab.h.

#define SAB82532_TSAR_RCS1   0x01

Definition at line 240 of file sunsab.h.

#define SAB82532_TSAR_RCS2   0x02 /* see also CCR2 */

Definition at line 239 of file sunsab.h.

#define SAB82532_TSAR_TSNR_MASK   0xfc

Definition at line 238 of file sunsab.h.

#define SAB82532_TSAX_TSNX_MASK   0xfc

Definition at line 233 of file sunsab.h.

#define SAB82532_TSAX_XCS1   0x01

Definition at line 235 of file sunsab.h.

#define SAB82532_TSAX_XCS2   0x02 /* see also CCR2 */

Definition at line 234 of file sunsab.h.

#define SAB82532_VSTR_CD   0x80

Definition at line 243 of file sunsab.h.

#define SAB82532_VSTR_DPLA   0x40

Definition at line 244 of file sunsab.h.

#define SAB82532_VSTR_VN_1   0x00

Definition at line 246 of file sunsab.h.

#define SAB82532_VSTR_VN_2   0x01

Definition at line 247 of file sunsab.h.

#define SAB82532_VSTR_VN_3_2   0x02

Definition at line 248 of file sunsab.h.

#define SAB82532_VSTR_VN_MASK   0x0f

Definition at line 245 of file sunsab.h.

#define SAB82532_XBCH_CAS   0x20

Definition at line 195 of file sunsab.h.

#define SAB82532_XBCH_DMA   0x80

Definition at line 194 of file sunsab.h.

#define SAB82532_XBCH_XC   0x10

Definition at line 196 of file sunsab.h.

#define SAB82532_XPR   0x00000002

Definition at line 128 of file sunsab.h.