root/arch/arm/plat-samsung/include/plat/adc.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* SPDX-License-Identifier: GPL-2.0 */
   2 /*
   3  * Copyright (c) 2008 Simtec Electronics
   4  *      http://armlinux.simtec.co.uk/   
   5  *      Ben Dooks <ben@simtec.co.uk>
   6  *
   7  * S3C ADC driver information
   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 /* __ASM_PLAT_ADC_H */

/* [<][>][^][v][top][bottom][index][help] */