Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | bfin_rotary_platform_data |
Macros | |
#define | ROT_QUAD_ENC CNTMODE_QUADENC /* quadrature/grey code encoder mode */ |
#define | ROT_BIN_ENC CNTMODE_BINENC /* binary encoder mode */ |
#define | ROT_UD_CNT CNTMODE_UDCNT /* rotary counter mode */ |
#define | ROT_DIR_CNT CNTMODE_DIRCNT /* direction counter mode */ |
#define | ROT_DEBE DEBE /* Debounce Enable */ |
#define | ROT_CDGINV CDGINV /* CDG Pin Polarity Invert */ |
#define | ROT_CUDINV CUDINV /* CUD Pin Polarity Invert */ |
#define | ROT_CZMINV CZMINV /* CZM Pin Polarity Invert */ |
#define | CNTE (1 << 0) /* Counter Enable */ |
#define | DEBE (1 << 1) /* Debounce Enable */ |
#define | CDGINV (1 << 4) /* CDG Pin Polarity Invert */ |
#define | CUDINV (1 << 5) /* CUD Pin Polarity Invert */ |
#define | CZMINV (1 << 6) /* CZM Pin Polarity Invert */ |
#define | CNTMODE_SHIFT 8 |
#define | CNTMODE (0x7 << CNTMODE_SHIFT) /* Counter Operating Mode */ |
#define | ZMZC (1 << 1) /* CZM Zeroes Counter Enable */ |
#define | BNDMODE_SHIFT 12 |
#define | BNDMODE (0x3 << BNDMODE_SHIFT) /* Boundary register Mode */ |
#define | INPDIS (1 << 15) /* CUG and CDG Input Disable */ |
#define | CNTMODE_QUADENC (0 << CNTMODE_SHIFT) /* quadrature encoder mode */ |
#define | CNTMODE_BINENC (1 << CNTMODE_SHIFT) /* binary encoder mode */ |
#define | CNTMODE_UDCNT (2 << CNTMODE_SHIFT) /* up/down counter mode */ |
#define | CNTMODE_DIRCNT (4 << CNTMODE_SHIFT) /* direction counter mode */ |
#define | CNTMODE_DIRTMR (5 << CNTMODE_SHIFT) /* direction timer mode */ |
#define | BNDMODE_COMP (0 << BNDMODE_SHIFT) /* boundary compare mode */ |
#define | BNDMODE_ZERO (1 << BNDMODE_SHIFT) /* boundary compare and zero mode */ |
#define | BNDMODE_CAPT (2 << BNDMODE_SHIFT) /* boundary capture mode */ |
#define | BNDMODE_AEXT (3 << BNDMODE_SHIFT) /* boundary auto-extend mode */ |
#define | ICIE (1 << 0) /* Illegal Gray/Binary Code Interrupt Enable */ |
#define | UCIE (1 << 1) /* Up count Interrupt Enable */ |
#define | DCIE (1 << 2) /* Down count Interrupt Enable */ |
#define | MINCIE (1 << 3) /* Min Count Interrupt Enable */ |
#define | MAXCIE (1 << 4) /* Max Count Interrupt Enable */ |
#define | COV31IE (1 << 5) /* Bit 31 Overflow Interrupt Enable */ |
#define | COV15IE (1 << 6) /* Bit 15 Overflow Interrupt Enable */ |
#define | CZEROIE (1 << 7) /* Count to Zero Interrupt Enable */ |
#define | CZMIE (1 << 8) /* CZM Pin Interrupt Enable */ |
#define | CZMEIE (1 << 9) /* CZM Error Interrupt Enable */ |
#define | CZMZIE (1 << 10) /* CZM Zeroes Counter Interrupt Enable */ |
#define | ICII (1 << 0) /* Illegal Gray/Binary Code Interrupt Identifier */ |
#define | UCII (1 << 1) /* Up count Interrupt Identifier */ |
#define | DCII (1 << 2) /* Down count Interrupt Identifier */ |
#define | MINCII (1 << 3) /* Min Count Interrupt Identifier */ |
#define | MAXCII (1 << 4) /* Max Count Interrupt Identifier */ |
#define | COV31II (1 << 5) /* Bit 31 Overflow Interrupt Identifier */ |
#define | COV15II (1 << 6) /* Bit 15 Overflow Interrupt Identifier */ |
#define | CZEROII (1 << 7) /* Count to Zero Interrupt Identifier */ |
#define | CZMII (1 << 8) /* CZM Pin Interrupt Identifier */ |
#define | CZMEII (1 << 9) /* CZM Error Interrupt Identifier */ |
#define | CZMZII (1 << 10) /* CZM Zeroes Counter Interrupt Identifier */ |
#define | W1LCNT 0xf /* Load Counter Register */ |
#define | W1LMIN 0xf0 /* Load Min Register */ |
#define | W1LMAX 0xf00 /* Load Max Register */ |
#define | W1ZMONCE (1 << 12) /* Enable CZM Clear Counter Once */ |
#define | W1LCNT_ZERO (1 << 0) /* write 1 to load CNT_COUNTER with zero */ |
#define | W1LCNT_MIN (1 << 2) /* write 1 to load CNT_COUNTER from CNT_MIN */ |
#define | W1LCNT_MAX (1 << 3) /* write 1 to load CNT_COUNTER from CNT_MAX */ |
#define | W1LMIN_ZERO (1 << 4) /* write 1 to load CNT_MIN with zero */ |
#define | W1LMIN_CNT (1 << 5) /* write 1 to load CNT_MIN from CNT_COUNTER */ |
#define | W1LMIN_MAX (1 << 7) /* write 1 to load CNT_MIN from CNT_MAX */ |
#define | W1LMAX_ZERO (1 << 8) /* write 1 to load CNT_MAX with zero */ |
#define | W1LMAX_CNT (1 << 9) /* write 1 to load CNT_MAX from CNT_COUNTER */ |
#define | W1LMAX_MIN (1 << 10) /* write 1 to load CNT_MAX from CNT_MIN */ |
#define | DPRESCALE 0xf /* Load Counter Register */ |
#define BNDMODE (0x3 << BNDMODE_SHIFT) /* Boundary register Mode */ |
Definition at line 55 of file bfin_rotary.h.
#define BNDMODE_AEXT (3 << BNDMODE_SHIFT) /* boundary auto-extend mode */ |
Definition at line 67 of file bfin_rotary.h.
#define BNDMODE_CAPT (2 << BNDMODE_SHIFT) /* boundary capture mode */ |
Definition at line 66 of file bfin_rotary.h.
#define BNDMODE_COMP (0 << BNDMODE_SHIFT) /* boundary compare mode */ |
Definition at line 64 of file bfin_rotary.h.
#define BNDMODE_SHIFT 12 |
Definition at line 54 of file bfin_rotary.h.
#define BNDMODE_ZERO (1 << BNDMODE_SHIFT) /* boundary compare and zero mode */ |
Definition at line 65 of file bfin_rotary.h.
#define CDGINV (1 << 4) /* CDG Pin Polarity Invert */ |
Definition at line 48 of file bfin_rotary.h.
#define CNTE (1 << 0) /* Counter Enable */ |
Definition at line 46 of file bfin_rotary.h.
#define CNTMODE (0x7 << CNTMODE_SHIFT) /* Counter Operating Mode */ |
Definition at line 52 of file bfin_rotary.h.
#define CNTMODE_BINENC (1 << CNTMODE_SHIFT) /* binary encoder mode */ |
Definition at line 59 of file bfin_rotary.h.
#define CNTMODE_DIRCNT (4 << CNTMODE_SHIFT) /* direction counter mode */ |
Definition at line 61 of file bfin_rotary.h.
#define CNTMODE_DIRTMR (5 << CNTMODE_SHIFT) /* direction timer mode */ |
Definition at line 62 of file bfin_rotary.h.
#define CNTMODE_QUADENC (0 << CNTMODE_SHIFT) /* quadrature encoder mode */ |
Definition at line 58 of file bfin_rotary.h.
#define CNTMODE_SHIFT 8 |
Definition at line 51 of file bfin_rotary.h.
#define CNTMODE_UDCNT (2 << CNTMODE_SHIFT) /* up/down counter mode */ |
Definition at line 60 of file bfin_rotary.h.
Definition at line 76 of file bfin_rotary.h.
Definition at line 89 of file bfin_rotary.h.
Definition at line 75 of file bfin_rotary.h.
Definition at line 88 of file bfin_rotary.h.
#define CUDINV (1 << 5) /* CUD Pin Polarity Invert */ |
Definition at line 49 of file bfin_rotary.h.
#define CZEROIE (1 << 7) /* Count to Zero Interrupt Enable */ |
Definition at line 77 of file bfin_rotary.h.
#define CZEROII (1 << 7) /* Count to Zero Interrupt Identifier */ |
Definition at line 90 of file bfin_rotary.h.
#define CZMEIE (1 << 9) /* CZM Error Interrupt Enable */ |
Definition at line 79 of file bfin_rotary.h.
#define CZMEII (1 << 9) /* CZM Error Interrupt Identifier */ |
Definition at line 92 of file bfin_rotary.h.
#define CZMIE (1 << 8) /* CZM Pin Interrupt Enable */ |
Definition at line 78 of file bfin_rotary.h.
#define CZMII (1 << 8) /* CZM Pin Interrupt Identifier */ |
Definition at line 91 of file bfin_rotary.h.
#define CZMINV (1 << 6) /* CZM Pin Polarity Invert */ |
Definition at line 50 of file bfin_rotary.h.
#define CZMZIE (1 << 10) /* CZM Zeroes Counter Interrupt Enable */ |
Definition at line 80 of file bfin_rotary.h.
#define CZMZII (1 << 10) /* CZM Zeroes Counter Interrupt Identifier */ |
Definition at line 93 of file bfin_rotary.h.
#define DCIE (1 << 2) /* Down count Interrupt Enable */ |
Definition at line 72 of file bfin_rotary.h.
#define DCII (1 << 2) /* Down count Interrupt Identifier */ |
Definition at line 85 of file bfin_rotary.h.
#define DEBE (1 << 1) /* Debounce Enable */ |
Definition at line 47 of file bfin_rotary.h.
#define DPRESCALE 0xf /* Load Counter Register */ |
Definition at line 114 of file bfin_rotary.h.
#define ICIE (1 << 0) /* Illegal Gray/Binary Code Interrupt Enable */ |
Definition at line 70 of file bfin_rotary.h.
#define ICII (1 << 0) /* Illegal Gray/Binary Code Interrupt Identifier */ |
Definition at line 83 of file bfin_rotary.h.
Definition at line 56 of file bfin_rotary.h.
#define MAXCIE (1 << 4) /* Max Count Interrupt Enable */ |
Definition at line 74 of file bfin_rotary.h.
#define MAXCII (1 << 4) /* Max Count Interrupt Identifier */ |
Definition at line 87 of file bfin_rotary.h.
#define MINCIE (1 << 3) /* Min Count Interrupt Enable */ |
Definition at line 73 of file bfin_rotary.h.
#define MINCII (1 << 3) /* Min Count Interrupt Identifier */ |
Definition at line 86 of file bfin_rotary.h.
#define ROT_BIN_ENC CNTMODE_BINENC /* binary encoder mode */ |
Definition at line 15 of file bfin_rotary.h.
#define ROT_CDGINV CDGINV /* CDG Pin Polarity Invert */ |
Definition at line 21 of file bfin_rotary.h.
#define ROT_CUDINV CUDINV /* CUD Pin Polarity Invert */ |
Definition at line 22 of file bfin_rotary.h.
#define ROT_CZMINV CZMINV /* CZM Pin Polarity Invert */ |
Definition at line 23 of file bfin_rotary.h.
#define ROT_DEBE DEBE /* Debounce Enable */ |
Definition at line 19 of file bfin_rotary.h.
#define ROT_DIR_CNT CNTMODE_DIRCNT /* direction counter mode */ |
Definition at line 17 of file bfin_rotary.h.
#define ROT_QUAD_ENC CNTMODE_QUADENC /* quadrature/grey code encoder mode */ |
Definition at line 14 of file bfin_rotary.h.
#define ROT_UD_CNT CNTMODE_UDCNT /* rotary counter mode */ |
Definition at line 16 of file bfin_rotary.h.
#define UCIE (1 << 1) /* Up count Interrupt Enable */ |
Definition at line 71 of file bfin_rotary.h.
#define UCII (1 << 1) /* Up count Interrupt Identifier */ |
Definition at line 84 of file bfin_rotary.h.
#define W1LCNT 0xf /* Load Counter Register */ |
Definition at line 96 of file bfin_rotary.h.
#define W1LCNT_MAX (1 << 3) /* write 1 to load CNT_COUNTER from CNT_MAX */ |
Definition at line 103 of file bfin_rotary.h.
#define W1LCNT_MIN (1 << 2) /* write 1 to load CNT_COUNTER from CNT_MIN */ |
Definition at line 102 of file bfin_rotary.h.
#define W1LCNT_ZERO (1 << 0) /* write 1 to load CNT_COUNTER with zero */ |
Definition at line 101 of file bfin_rotary.h.
#define W1LMAX 0xf00 /* Load Max Register */ |
Definition at line 98 of file bfin_rotary.h.
#define W1LMAX_CNT (1 << 9) /* write 1 to load CNT_MAX from CNT_COUNTER */ |
Definition at line 110 of file bfin_rotary.h.
Definition at line 111 of file bfin_rotary.h.
Definition at line 109 of file bfin_rotary.h.
#define W1LMIN 0xf0 /* Load Min Register */ |
Definition at line 97 of file bfin_rotary.h.
#define W1LMIN_CNT (1 << 5) /* write 1 to load CNT_MIN from CNT_COUNTER */ |
Definition at line 106 of file bfin_rotary.h.
Definition at line 107 of file bfin_rotary.h.
Definition at line 105 of file bfin_rotary.h.
#define W1ZMONCE (1 << 12) /* Enable CZM Clear Counter Once */ |
Definition at line 99 of file bfin_rotary.h.
#define ZMZC (1 << 1) /* CZM Zeroes Counter Enable */ |
Definition at line 53 of file bfin_rotary.h.