cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

s3c-adc.h (907B)


      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 __LINUX_SOC_SAMSUNG_S3C_ADC_H
     11#define __LINUX_SOC_SAMSUNG_S3C_ADC_H __FILE__
     12
     13struct s3c_adc_client;
     14struct platform_device;
     15
     16extern int s3c_adc_start(struct s3c_adc_client *client,
     17			 unsigned int channel, unsigned int nr_samples);
     18
     19extern int s3c_adc_read(struct s3c_adc_client *client, unsigned int ch);
     20
     21extern 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
     30extern void s3c_adc_release(struct s3c_adc_client *client);
     31
     32#endif /* __LINUX_SOC_SAMSUNG_S3C_ADC_H */