1
2
3
4
5
6
7
8
9
10 #ifndef __ASM_PLAT_ADC_H
11 #define __ASM_PLAT_ADC_H __FILE__
12
13 struct s3c_adc_client;
14 struct platform_device;
15
16 extern int s3c_adc_start(struct s3c_adc_client *client,
17 unsigned int channel, unsigned int nr_samples);
18
19 extern int s3c_adc_read(struct s3c_adc_client *client, unsigned int ch);
20
21 extern struct s3c_adc_client *
22 s3c_adc_register(struct platform_device *pdev,
23 void (*select)(struct s3c_adc_client *client,
24 unsigned selected),
25 void (*conv)(struct s3c_adc_client *client,
26 unsigned d0, unsigned d1,
27 unsigned *samples_left),
28 unsigned int is_ts);
29
30 extern void s3c_adc_release(struct s3c_adc_client *client);
31
32 #endif