Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Copyright (c) 2008 Simtec Electronics
0004  *  http://armlinux.simtec.co.uk/   
0005  *  Ben Dooks <ben@simtec.co.uk>
0006  *
0007  * S3C ADC driver information
0008  */
0009 
0010 #ifndef __LINUX_SOC_SAMSUNG_S3C_ADC_H
0011 #define __LINUX_SOC_SAMSUNG_S3C_ADC_H __FILE__
0012 
0013 struct s3c_adc_client;
0014 struct platform_device;
0015 
0016 extern int s3c_adc_start(struct s3c_adc_client *client,
0017              unsigned int channel, unsigned int nr_samples);
0018 
0019 extern int s3c_adc_read(struct s3c_adc_client *client, unsigned int ch);
0020 
0021 extern struct s3c_adc_client *
0022     s3c_adc_register(struct platform_device *pdev,
0023              void (*select)(struct s3c_adc_client *client,
0024                     unsigned selected),
0025              void (*conv)(struct s3c_adc_client *client,
0026                       unsigned d0, unsigned d1,
0027                       unsigned *samples_left),
0028              unsigned int is_ts);
0029 
0030 extern void s3c_adc_release(struct s3c_adc_client *client);
0031 
0032 #endif /* __LINUX_SOC_SAMSUNG_S3C_ADC_H */