blob: a0f703a824cb96fa5611f2a45dcc1f4ba6d6c717 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/* arch/arm/plat-s3c/include/plat/adc.h
*
* Copyright (c) 2008 Simtec Electronics
* http://armlinux.simnte.co.uk/
* Ben Dooks <ben@simtec.co.uk>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __ASM_PLAT_ADC_H
#define __ASM_PLAT_ADC_H __FILE__
struct s3c_adc_request {
/* for linked list */
struct list_head *list;
/* after finish ADC sampling, s3c_adc_request function call this function with three parameter */
void (*callback)(int channel, unsigned long int param, unsigned short sample);
/* for private data */
unsigned long int param;
/* selected channel for ADC sampling */
int channel;
};
struct s3c_adc_mach_info {
/* if you need to use some platform data, add in here*/
int delay;
int presc;
int resolution;
};
extern int s3c_adc_get_adc_data(int channel);
void __init s3c_adc_set_platdata(struct s3c_adc_mach_info *pd);
#endif /* __ASM_PLAT_ADC_H */
|