Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
htc-pasic3.h File Reference
#include <linux/platform_device.h>
#include <linux/leds.h>

Go to the source code of this file.

Data Structures

struct  pasic3_led
 
struct  pasic3_leds_machinfo
 
struct  pasic3_platform_data
 

Macros

#define PASIC3_MASK_LED0   0x04
 
#define PASIC3_MASK_LED1   0x08
 
#define PASIC3_MASK_LED2   0x40
 
#define PASIC3_BIT2_LED0   0x08
 
#define PASIC3_BIT2_LED1   0x10
 
#define PASIC3_BIT2_LED2   0x20
 

Functions

void pasic3_write_register (struct device *dev, u32 reg, u8 val)
 
u8 pasic3_read_register (struct device *dev, u32 reg)
 

Macro Definition Documentation

#define PASIC3_BIT2_LED0   0x08

Definition at line 31 of file htc-pasic3.h.

#define PASIC3_BIT2_LED1   0x10

Definition at line 32 of file htc-pasic3.h.

#define PASIC3_BIT2_LED2   0x20

Definition at line 33 of file htc-pasic3.h.

#define PASIC3_MASK_LED0   0x04

Definition at line 24 of file htc-pasic3.h.

#define PASIC3_MASK_LED1   0x08

Definition at line 25 of file htc-pasic3.h.

#define PASIC3_MASK_LED2   0x40

Definition at line 26 of file htc-pasic3.h.

Function Documentation

u8 pasic3_read_register ( struct device dev,
u32  reg 
)

Definition at line 52 of file htc-pasic3.c.

void pasic3_write_register ( struct device dev,
u32  reg,
u8  val 
)

Definition at line 37 of file htc-pasic3.c.