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
platform_data
at91_adc.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2011 Free Electrons
3
*
4
* Licensed under the GPLv2 or later.
5
*/
6
7
#ifndef _AT91_ADC_H_
8
#define _AT91_ADC_H_
9
18
struct
at91_adc_reg_desc
{
19
u8
channel_base
;
20
u32
drdy_mask
;
21
u8
status_register
;
22
u8
trigger_register
;
23
};
24
32
struct
at91_adc_trigger
{
33
const
char
*
name
;
34
u8
value
;
35
bool
is_external
;
36
};
37
49
struct
at91_adc_data
{
50
unsigned
long
channels_used
;
51
u8
num_channels
;
52
struct
at91_adc_reg_desc
*
registers
;
53
u8
startup_time
;
54
struct
at91_adc_trigger
*
trigger_list
;
55
u8
trigger_number
;
56
bool
use_external_triggers
;
57
u16
vref
;
58
};
59
60
extern
void
__init
at91_add_device_adc
(
struct
at91_adc_data
*
data
);
61
#endif
Generated on Thu Jan 10 2013 12:56:53 for Linux Kernel by
1.8.2