Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ezx-pcap.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/mfd/ezx-pcap.h>
#include <linux/spi/spi.h>
#include <linux/gpio.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  pcap_adc_request
 
struct  pcap_adc_sync_request
 
struct  pcap_chip
 

Macros

#define PCAP_ADC_MAXQ   8
 

Functions

int ezx_pcap_write (struct pcap_chip *pcap, u8 reg_num, u32 value)
 
 EXPORT_SYMBOL_GPL (ezx_pcap_write)
 
int ezx_pcap_read (struct pcap_chip *pcap, u8 reg_num, u32 *value)
 
 EXPORT_SYMBOL_GPL (ezx_pcap_read)
 
int ezx_pcap_set_bits (struct pcap_chip *pcap, u8 reg_num, u32 mask, u32 val)
 
 EXPORT_SYMBOL_GPL (ezx_pcap_set_bits)
 
int irq_to_pcap (struct pcap_chip *pcap, int irq)
 
 EXPORT_SYMBOL_GPL (irq_to_pcap)
 
int pcap_to_irq (struct pcap_chip *pcap, int irq)
 
 EXPORT_SYMBOL_GPL (pcap_to_irq)
 
void pcap_set_ts_bits (struct pcap_chip *pcap, u32 bits)
 
 EXPORT_SYMBOL_GPL (pcap_set_ts_bits)
 
int pcap_adc_async (struct pcap_chip *pcap, u8 bank, u32 flags, u8 ch[], void *callback, void *data)
 
 EXPORT_SYMBOL_GPL (pcap_adc_async)
 
int pcap_adc_sync (struct pcap_chip *pcap, u8 bank, u32 flags, u8 ch[], u16 res[])
 
 EXPORT_SYMBOL_GPL (pcap_adc_sync)
 
 subsys_initcall (ezx_pcap_init)
 
 module_exit (ezx_pcap_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Daniel Ribeiro / Harald Welte")
 
 MODULE_DESCRIPTION ("Motorola PCAP2 ASIC Driver")
 
 MODULE_ALIAS ("spi:ezx-pcap")
 

Macro Definition Documentation

#define PCAP_ADC_MAXQ   8

Definition at line 23 of file ezx-pcap.c.

Function Documentation

EXPORT_SYMBOL_GPL ( ezx_pcap_write  )
EXPORT_SYMBOL_GPL ( ezx_pcap_read  )
EXPORT_SYMBOL_GPL ( ezx_pcap_set_bits  )
EXPORT_SYMBOL_GPL ( irq_to_pcap  )
EXPORT_SYMBOL_GPL ( pcap_to_irq  )
EXPORT_SYMBOL_GPL ( pcap_set_ts_bits  )
EXPORT_SYMBOL_GPL ( pcap_adc_async  )
EXPORT_SYMBOL_GPL ( pcap_adc_sync  )
int ezx_pcap_read ( struct pcap_chip pcap,
u8  reg_num,
u32 value 
)

Definition at line 96 of file ezx-pcap.c.

int ezx_pcap_set_bits ( struct pcap_chip pcap,
u8  reg_num,
u32  mask,
u32  val 
)

Definition at line 111 of file ezx-pcap.c.

int ezx_pcap_write ( struct pcap_chip pcap,
u8  reg_num,
u32  value 
)

Definition at line 81 of file ezx-pcap.c.

int irq_to_pcap ( struct pcap_chip pcap,
int  irq 
)

Definition at line 135 of file ezx-pcap.c.

MODULE_ALIAS ( "spi:ezx-pcap"  )
MODULE_AUTHOR ( "Daniel Ribeiro / Harald Welte"  )
MODULE_DESCRIPTION ( "Motorola PCAP2 ASIC Driver"  )
module_exit ( ezx_pcap_exit  )
MODULE_LICENSE ( "GPL"  )
int pcap_adc_async ( struct pcap_chip pcap,
u8  bank,
u32  flags,
u8  ch[],
void callback,
void data 
)

Definition at line 305 of file ezx-pcap.c.

int pcap_adc_sync ( struct pcap_chip pcap,
u8  bank,
u32  flags,
u8  ch[],
u16  res[] 
)

Definition at line 348 of file ezx-pcap.c.

void pcap_set_ts_bits ( struct pcap_chip pcap,
u32  bits 
)

Definition at line 218 of file ezx-pcap.c.

int pcap_to_irq ( struct pcap_chip pcap,
int  irq 
)

Definition at line 141 of file ezx-pcap.c.

subsys_initcall ( ezx_pcap_init  )