Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
scx200_gpio.c File Reference
#include <linux/device.h>
#include <linux/fs.h>
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <linux/types.h>
#include <linux/cdev.h>
#include <linux/scx200_gpio.h>
#include <linux/nsc_gpio.h>

Go to the source code of this file.

Macros

#define DRVNAME   "scx200_gpio"
 
#define MAX_PINS   32 /* 64 later, when known ok */
 

Functions

 MODULE_AUTHOR ("Christer Weinigel <[email protected]>")
 
 MODULE_DESCRIPTION ("NatSemi/AMD SCx200 GPIO Pin Driver")
 
 MODULE_LICENSE ("GPL")
 
 module_param (major, int, 0)
 
 MODULE_PARM_DESC (major,"Major device number")
 
 EXPORT_SYMBOL_GPL (scx200_gpio_ops)
 
 module_init (scx200_gpio_init)
 
 module_exit (scx200_gpio_cleanup)
 

Variables

struct nsc_gpio_ops scx200_gpio_ops
 

Macro Definition Documentation

#define DRVNAME   "scx200_gpio"

Definition at line 24 of file scx200_gpio.c.

#define MAX_PINS   32 /* 64 later, when known ok */

Definition at line 36 of file scx200_gpio.c.

Function Documentation

EXPORT_SYMBOL_GPL ( scx200_gpio_ops  )
MODULE_AUTHOR ( "Christer Weinigel <[email protected]>"  )
MODULE_DESCRIPTION ( "NatSemi/AMD SCx200 GPIO Pin Driver"  )
module_exit ( scx200_gpio_cleanup  )
module_init ( scx200_gpio_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( major  ,
int  ,
 
)
MODULE_PARM_DESC ( major  ,
"Major device number  
)

Variable Documentation

struct nsc_gpio_ops scx200_gpio_ops
Initial value:
= {
.owner = THIS_MODULE,
.gpio_config = scx200_gpio_configure,
.gpio_dump = nsc_gpio_dump,
.gpio_get = scx200_gpio_get,
.gpio_set = scx200_gpio_set,
.gpio_change = scx200_gpio_change,
.gpio_current = scx200_gpio_current
}

Definition at line 38 of file scx200_gpio.c.