Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
leds-ss4200.c File Reference
#include <linux/dmi.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/kernel.h>
#include <linux/leds.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/types.h>
#include <linux/uaccess.h>

Go to the source code of this file.

Data Structures

struct  nasgpio_led
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define PMBASE   0x040
 
#define GPIO_BASE   0x048
 
#define GPIO_CTRL   0x04c
 
#define GPIO_EN   0x010
 
#define ICH7_GPIO_SIZE   64
 
#define GPIO_USE_SEL   0x000
 
#define GP_IO_SEL   0x004
 
#define GP_LVL   0x00c
 
#define GPO_BLINK   0x018
 
#define GPI_INV   0x030
 
#define GPIO_USE_SEL2   0x034
 
#define GP_IO_SEL2   0x038
 
#define GP_LVL2   0x03c
 
#define NAS_RECOVERY   0x00000400 /* GPIO10 */
 

Functions

 MODULE_AUTHOR ("Rodney Girod <[email protected]>, Dave Hansen <[email protected]>")
 
 MODULE_DESCRIPTION ("Intel NAS/Home Server ICH7 GPIO Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (pci, ich7_lpc_pci_id)
 
 module_param_named (nodetect, nodetect, bool, 0)
 
 MODULE_PARM_DESC (nodetect,"Skip DMI-based hardware detection")
 
u32 nasgpio_led_get_attr (struct led_classdev *led_cdev, u32 port)
 
 module_init (nas_gpio_init)
 
 module_exit (nas_gpio_exit)
 

Macro Definition Documentation

#define GP_IO_SEL   0x004

Definition at line 55 of file leds-ss4200.c.

#define GP_IO_SEL2   0x038

Definition at line 60 of file leds-ss4200.c.

#define GP_LVL   0x00c

Definition at line 56 of file leds-ss4200.c.

#define GP_LVL2   0x03c

Definition at line 61 of file leds-ss4200.c.

#define GPI_INV   0x030

Definition at line 58 of file leds-ss4200.c.

#define GPIO_BASE   0x048

Definition at line 42 of file leds-ss4200.c.

#define GPIO_CTRL   0x04c

Definition at line 43 of file leds-ss4200.c.

#define GPIO_EN   0x010

Definition at line 44 of file leds-ss4200.c.

#define GPIO_USE_SEL   0x000

Definition at line 54 of file leds-ss4200.c.

#define GPIO_USE_SEL2   0x034

Definition at line 59 of file leds-ss4200.c.

#define GPO_BLINK   0x018

Definition at line 57 of file leds-ss4200.c.

#define ICH7_GPIO_SIZE   64

Definition at line 49 of file leds-ss4200.c.

#define NAS_RECOVERY   0x00000400 /* GPIO10 */

Definition at line 147 of file leds-ss4200.c.

#define PMBASE   0x040

Definition at line 41 of file leds-ss4200.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 22 of file leds-ss4200.c.

Function Documentation

MODULE_AUTHOR ( "Rodney Girod <[email protected] ,
Dave Hansen< dave @sr71.net >"   
)
MODULE_DESCRIPTION ( "Intel NAS/Home Server ICH7 GPIO Driver"  )
MODULE_DEVICE_TABLE ( pci  ,
ich7_lpc_pci_id   
)
module_exit ( nas_gpio_exit  )
module_init ( nas_gpio_init  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( nodetect  ,
nodetect  ,
bool  ,
 
)
MODULE_PARM_DESC ( nodetect  ,
"Skip DMI-based hardware detection"   
)
u32 nasgpio_led_get_attr ( struct led_classdev led_cdev,
u32  port 
)

Definition at line 201 of file leds-ss4200.c.