Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
gpio-bt8xx.c File Reference
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/spinlock.h>
#include <linux/gpio.h>
#include <linux/slab.h>
#include "../media/pci/bt8xx/bt848.h"

Go to the source code of this file.

Data Structures

struct  bt8xxgpio
 

Macros

#define BT8XXGPIO_NR_GPIOS   24 /* We have 24 GPIO pins */
 
#define bgwrite(dat, adr)   writel((dat), bg->mmio+(adr))
 
#define bgread(adr)   readl(bg->mmio+(adr))
 
#define bt8xxgpio_suspend   NULL
 
#define bt8xxgpio_resume   NULL
 

Functions

 module_param_named (gpiobase, modparam_gpiobase, int, 0444)
 
 MODULE_PARM_DESC (gpiobase,"The GPIO number base. -1 means dynamic, which is the default.")
 
 MODULE_DEVICE_TABLE (pci, bt8xxgpio_pci_tbl)
 
 module_pci_driver (bt8xxgpio_pci_driver)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Michael Buesch")
 
 MODULE_DESCRIPTION ("Abuse a BT8xx framegrabber card as generic GPIO card")
 

Macro Definition Documentation

#define bgread (   adr)    readl(bg->mmio+(adr))

Definition at line 73 of file gpio-bt8xx.c.

#define bgwrite (   dat,
  adr 
)    writel((dat), bg->mmio+(adr))

Definition at line 72 of file gpio-bt8xx.c.

#define BT8XXGPIO_NR_GPIOS   24 /* We have 24 GPIO pins */

Definition at line 56 of file gpio-bt8xx.c.

#define bt8xxgpio_resume   NULL

Definition at line 310 of file gpio-bt8xx.c.

#define bt8xxgpio_suspend   NULL

Definition at line 309 of file gpio-bt8xx.c.

Function Documentation

MODULE_AUTHOR ( "Michael Buesch"  )
MODULE_DESCRIPTION ( "Abuse a BT8xx framegrabber card as generic GPIO card )
MODULE_DEVICE_TABLE ( pci  ,
bt8xxgpio_pci_tbl   
)
MODULE_LICENSE ( "GPL"  )
module_param_named ( gpiobase  ,
modparam_gpiobase  ,
int  ,
0444   
)
MODULE_PARM_DESC ( gpiobase  ,
"The GPIO number base. -1 means  dynamic,
which is the default."   
)
module_pci_driver ( bt8xxgpio_pci_driver  )