Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sm501.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/list.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/pci.h>
#include <linux/i2c-gpio.h>
#include <linux/slab.h>
#include <linux/sm501.h>
#include <linux/sm501-regs.h>
#include <linux/serial_8250.h>
#include <linux/io.h>

Go to the source code of this file.

Data Structures

struct  sm501_device
 
struct  sm501_gpio
 
struct  sm501_devdata
 
struct  sm501_clock
 

Macros

#define MHZ   (1000 * 1000)
 
#define sm501_plat_suspend   NULL
 
#define sm501_plat_resume   NULL
 

Functions

int sm501_misc_control (struct device *dev, unsigned long set, unsigned long clear)
 
 EXPORT_SYMBOL_GPL (sm501_misc_control)
 
unsigned long sm501_modify_reg (struct device *dev, unsigned long reg, unsigned long set, unsigned long clear)
 
 EXPORT_SYMBOL_GPL (sm501_modify_reg)
 
int sm501_unit_power (struct device *dev, unsigned int unit, unsigned int to)
 
 EXPORT_SYMBOL_GPL (sm501_unit_power)
 
unsigned long sm501_set_clock (struct device *dev, int clksrc, unsigned long req_freq)
 
 EXPORT_SYMBOL_GPL (sm501_set_clock)
 
unsigned long sm501_find_clock (struct device *dev, int clksrc, unsigned long req_freq)
 
 EXPORT_SYMBOL_GPL (sm501_find_clock)
 
 MODULE_DEVICE_TABLE (pci, sm501_pci_tbl)
 
 MODULE_ALIAS ("platform:sm501")
 
 module_init (sm501_base_init)
 
 module_exit (sm501_base_exit)
 
 MODULE_DESCRIPTION ("SM501 Core Driver")
 
 MODULE_AUTHOR ("Ben Dooks <[email protected]>, Vincent Sanders")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define MHZ   (1000 * 1000)

Definition at line 87 of file sm501.c.

#define sm501_plat_resume   NULL

Definition at line 1534 of file sm501.c.

#define sm501_plat_suspend   NULL

Definition at line 1533 of file sm501.c.

Function Documentation

EXPORT_SYMBOL_GPL ( sm501_misc_control  )
EXPORT_SYMBOL_GPL ( sm501_modify_reg  )
EXPORT_SYMBOL_GPL ( sm501_unit_power  )
EXPORT_SYMBOL_GPL ( sm501_set_clock  )
EXPORT_SYMBOL_GPL ( sm501_find_clock  )
MODULE_ALIAS ( "platform:sm501"  )
MODULE_AUTHOR ( "Ben Dooks <[email protected] ,
Vincent Sanders"   
)
MODULE_DESCRIPTION ( "SM501 Core Driver"  )
MODULE_DEVICE_TABLE ( pci  ,
sm501_pci_tbl   
)
module_exit ( sm501_base_exit  )
module_init ( sm501_base_init  )
MODULE_LICENSE ( "GPL v2 )
unsigned long sm501_find_clock ( struct device dev,
int  clksrc,
unsigned long  req_freq 
)

Definition at line 640 of file sm501.c.

int sm501_misc_control ( struct device dev,
unsigned long  set,
unsigned long  clear 
)

Definition at line 254 of file sm501.c.

unsigned long sm501_modify_reg ( struct device dev,
unsigned long  reg,
unsigned long  set,
unsigned long  clear 
)

Definition at line 286 of file sm501.c.

unsigned long sm501_set_clock ( struct device dev,
int  clksrc,
unsigned long  req_freq 
)

Definition at line 509 of file sm501.c.

int sm501_unit_power ( struct device dev,
unsigned int  unit,
unsigned int  to 
)

Definition at line 316 of file sm501.c.