Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
smsc.h File Reference
#include <linux/regmap.h>

Go to the source code of this file.

Data Structures

struct  smsc
 

Macros

#define SMSC_ID_ECE1099   1
 
#define SMSC_NUM_CLIENTS   2
 
#define SMSC_BASE_ADDR   0x38
 
#define OMAP_GPIO_SMSC_IRQ   151
 
#define SMSC_MAXGPIO   32
 
#define SMSC_BANK(offs)   ((offs) >> 3)
 
#define SMSC_BIT(offs)   (1u << ((offs) & 0x7))
 
#define SMSC_RESET   0xF5
 
#define SMSC_GRP_INT   0xF9
 
#define SMSC_CLK_CTRL   0xFA
 
#define SMSC_WKUP_CTRL   0xFB
 
#define SMSC_DEV_ID   0xFC
 
#define SMSC_DEV_REV   0xFD
 
#define SMSC_VEN_ID_L   0xFE
 
#define SMSC_VEN_ID_H   0xFF
 
#define SMSC_CLK_VALUE   0x13
 
#define SMSC_GPIO_DATA_IN_START   0x00
 
#define SMSC_GPIO_DATA_OUT_START   0x05
 
#define SMSC_GPIO_INPUT_LOW   0x01
 
#define SMSC_GPIO_INPUT_RISING   0x09
 
#define SMSC_GPIO_INPUT_FALLING   0x11
 
#define SMSC_GPIO_INPUT_BOTH_EDGE   0x19
 
#define SMSC_GPIO_OUTPUT_PP   0x21
 
#define SMSC_GPIO_OUTPUT_OP   0x31
 
#define GRP_INT_STAT   0xf9
 
#define SMSC_GPI_INT   0x0f
 
#define SMSC_CFG_START   0x0A
 
#define SMSC_GPIO_INT_STAT_START   0x32
 
#define SMSC_GPIO_INT_MASK_START   0x37
 
#define SMSC_KP_OUT   0x40
 
#define SMSC_KP_IN   0x41
 
#define SMSC_KP_INT_STAT   0x42
 
#define SMSC_KP_INT_MASK   0x43
 
#define SMSC_KP_KSO   0x70
 
#define SMSC_KP_KSI   0x51
 
#define SMSC_KSO_ALL_LOW   0x20
 
#define SMSC_KP_SET_LOW_PWR   0x0B
 
#define SMSC_KP_SET_HIGH   0xFF
 
#define SMSC_KSO_EVAL   0x00
 

Macro Definition Documentation

#define GRP_INT_STAT   0xf9

Definition at line 85 of file smsc.h.

#define OMAP_GPIO_SMSC_IRQ   151

Definition at line 24 of file smsc.h.

#define SMSC_BANK (   offs)    ((offs) >> 3)

Definition at line 27 of file smsc.h.

#define SMSC_BASE_ADDR   0x38

Definition at line 23 of file smsc.h.

#define SMSC_BIT (   offs)    (1u << ((offs) & 0x7))

Definition at line 28 of file smsc.h.

#define SMSC_CFG_START   0x0A

Definition at line 87 of file smsc.h.

#define SMSC_CLK_CTRL   0xFA

Definition at line 61 of file smsc.h.

#define SMSC_CLK_VALUE   0x13

Definition at line 69 of file smsc.h.

#define SMSC_DEV_ID   0xFC

Definition at line 63 of file smsc.h.

#define SMSC_DEV_REV   0xFD

Definition at line 64 of file smsc.h.

#define SMSC_GPI_INT   0x0f

Definition at line 86 of file smsc.h.

#define SMSC_GPIO_DATA_IN_START   0x00

Definition at line 72 of file smsc.h.

#define SMSC_GPIO_DATA_OUT_START   0x05

Definition at line 75 of file smsc.h.

#define SMSC_GPIO_INPUT_BOTH_EDGE   0x19

Definition at line 81 of file smsc.h.

#define SMSC_GPIO_INPUT_FALLING   0x11

Definition at line 80 of file smsc.h.

#define SMSC_GPIO_INPUT_LOW   0x01

Definition at line 78 of file smsc.h.

#define SMSC_GPIO_INPUT_RISING   0x09

Definition at line 79 of file smsc.h.

#define SMSC_GPIO_INT_MASK_START   0x37

Definition at line 93 of file smsc.h.

#define SMSC_GPIO_INT_STAT_START   0x32

Definition at line 90 of file smsc.h.

#define SMSC_GPIO_OUTPUT_OP   0x31

Definition at line 83 of file smsc.h.

#define SMSC_GPIO_OUTPUT_PP   0x21

Definition at line 82 of file smsc.h.

#define SMSC_GRP_INT   0xF9

Definition at line 60 of file smsc.h.

#define SMSC_ID_ECE1099   1

Definition at line 20 of file smsc.h.

#define SMSC_KP_IN   0x41

Definition at line 97 of file smsc.h.

#define SMSC_KP_INT_MASK   0x43

Definition at line 99 of file smsc.h.

#define SMSC_KP_INT_STAT   0x42

Definition at line 98 of file smsc.h.

#define SMSC_KP_KSI   0x51

Definition at line 103 of file smsc.h.

#define SMSC_KP_KSO   0x70

Definition at line 102 of file smsc.h.

#define SMSC_KP_OUT   0x40

Definition at line 96 of file smsc.h.

#define SMSC_KP_SET_HIGH   0xFF

Definition at line 106 of file smsc.h.

#define SMSC_KP_SET_LOW_PWR   0x0B

Definition at line 105 of file smsc.h.

#define SMSC_KSO_ALL_LOW   0x20

Definition at line 104 of file smsc.h.

#define SMSC_KSO_EVAL   0x00

Definition at line 107 of file smsc.h.

#define SMSC_MAXGPIO   32

Definition at line 26 of file smsc.h.

#define SMSC_NUM_CLIENTS   2

Definition at line 21 of file smsc.h.

#define SMSC_RESET   0xF5

Definition at line 59 of file smsc.h.

#define SMSC_VEN_ID_H   0xFF

Definition at line 66 of file smsc.h.

#define SMSC_VEN_ID_L   0xFE

Definition at line 65 of file smsc.h.

#define SMSC_WKUP_CTRL   0xFB

Definition at line 62 of file smsc.h.