Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
include
linux
mfd
htc-egpio.h
Go to the documentation of this file.
1
/*
2
* HTC simple EGPIO irq and gpio extender
3
*/
4
5
#ifndef __HTC_EGPIO_H__
6
#define __HTC_EGPIO_H__
7
8
#include <
linux/gpio.h
>
9
10
/* Descriptive values for all-in or all-out htc_egpio_chip descriptors. */
11
#define HTC_EGPIO_OUTPUT (~0)
12
#define HTC_EGPIO_INPUT 0
13
22
struct
htc_egpio_chip
{
23
int
reg_start
;
24
int
gpio_base
;
25
int
num_gpios
;
26
unsigned
long
direction
;
27
unsigned
long
initial_values
;
28
};
29
41
struct
htc_egpio_platform_data
{
42
int
bus_width
;
43
int
reg_width
;
44
45
int
irq_base
;
46
int
num_irqs
;
47
int
invert_acks
;
48
int
ack_register
;
49
50
struct
htc_egpio_chip
*
chip
;
51
int
num_chips
;
52
};
53
54
/* Determine the wakeup irq, to be called during early resume */
55
extern
int
htc_egpio_get_wakeup_irq
(
struct
device
*
dev
);
56
57
#endif
Generated on Thu Jan 10 2013 14:51:53 for Linux Kernel by
1.8.2