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

Go to the source code of this file.

Data Structures

struct  sja1000_platform_data
 

Macros

#define CDR_CLKOUT_MASK   0x07
 
#define CDR_CLK_OFF   0x08 /* Clock off (CLKOUT pin) */
 
#define CDR_RXINPEN   0x20 /* TX1 output is RX irq output */
 
#define CDR_CBP   0x40 /* CAN input comparator bypass */
 
#define CDR_PELICAN   0x80 /* PeliCAN mode */
 
#define OCR_MODE_BIPHASE   0x00
 
#define OCR_MODE_TEST   0x01
 
#define OCR_MODE_NORMAL   0x02
 
#define OCR_MODE_CLOCK   0x03
 
#define OCR_MODE_MASK   0x07
 
#define OCR_TX0_INVERT   0x04
 
#define OCR_TX0_PULLDOWN   0x08
 
#define OCR_TX0_PULLUP   0x10
 
#define OCR_TX0_PUSHPULL   0x18
 
#define OCR_TX1_INVERT   0x20
 
#define OCR_TX1_PULLDOWN   0x40
 
#define OCR_TX1_PULLUP   0x80
 
#define OCR_TX1_PUSHPULL   0xc0
 
#define OCR_TX_MASK   0xfc
 
#define OCR_TX_SHIFT   2
 

Macro Definition Documentation

#define CDR_CBP   0x40 /* CAN input comparator bypass */

Definition at line 8 of file sja1000.h.

#define CDR_CLK_OFF   0x08 /* Clock off (CLKOUT pin) */

Definition at line 6 of file sja1000.h.

#define CDR_CLKOUT_MASK   0x07

Definition at line 5 of file sja1000.h.

#define CDR_PELICAN   0x80 /* PeliCAN mode */

Definition at line 9 of file sja1000.h.

#define CDR_RXINPEN   0x20 /* TX1 output is RX irq output */

Definition at line 7 of file sja1000.h.

#define OCR_MODE_BIPHASE   0x00

Definition at line 12 of file sja1000.h.

#define OCR_MODE_CLOCK   0x03

Definition at line 15 of file sja1000.h.

#define OCR_MODE_MASK   0x07

Definition at line 16 of file sja1000.h.

#define OCR_MODE_NORMAL   0x02

Definition at line 14 of file sja1000.h.

#define OCR_MODE_TEST   0x01

Definition at line 13 of file sja1000.h.

#define OCR_TX0_INVERT   0x04

Definition at line 17 of file sja1000.h.

#define OCR_TX0_PULLDOWN   0x08

Definition at line 18 of file sja1000.h.

#define OCR_TX0_PULLUP   0x10

Definition at line 19 of file sja1000.h.

#define OCR_TX0_PUSHPULL   0x18

Definition at line 20 of file sja1000.h.

#define OCR_TX1_INVERT   0x20

Definition at line 21 of file sja1000.h.

#define OCR_TX1_PULLDOWN   0x40

Definition at line 22 of file sja1000.h.

#define OCR_TX1_PULLUP   0x80

Definition at line 23 of file sja1000.h.

#define OCR_TX1_PUSHPULL   0xc0

Definition at line 24 of file sja1000.h.

#define OCR_TX_MASK   0xfc

Definition at line 25 of file sja1000.h.

#define OCR_TX_SHIFT   2

Definition at line 26 of file sja1000.h.