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

Go to the source code of this file.

Data Structures

struct  amd_gpio
 

Macros

#define PMBASE_OFFSET   0xb0
 
#define PMBASE_SIZE   0x30
 
#define AMD_REG_GPIO(i)   (0x10 + (i))
 
#define AMD_GPIO_LTCH_STS   0x40 /* Latch status, w1 */
 
#define AMD_GPIO_RTIN   0x20 /* Real Time in, ro */
 
#define AMD_GPIO_DEBOUNCE   0x10 /* Debounce, rw */
 
#define AMD_GPIO_MODE_MASK   0x0c /* Pin Mode Select, rw */
 
#define AMD_GPIO_MODE_IN   0x00
 
#define AMD_GPIO_MODE_OUT   0x04
 
#define AMD_GPIO_MODE_ALTFN   0x08 /* Or 0x09 */
 
#define AMD_GPIO_X_MASK   0x03 /* In/Out specific, rw */
 
#define AMD_GPIO_X_IN_ACTIVEHI   0x01 /* Active High */
 
#define AMD_GPIO_X_IN_LATCH   0x02 /* Latched version is selected */
 
#define AMD_GPIO_X_OUT_LOW   0x00
 
#define AMD_GPIO_X_OUT_HI   0x01
 
#define AMD_GPIO_X_OUT_CLK0   0x02
 
#define AMD_GPIO_X_OUT_CLK1   0x03
 
#define to_agp(chip)   container_of(chip, struct amd_gpio, chip)
 

Functions

 MODULE_DEVICE_TABLE (pci, pci_tbl)
 
 module_init (amd_gpio_init)
 
 module_exit (amd_gpio_exit)
 
 MODULE_AUTHOR ("The Linux Kernel team")
 
 MODULE_DESCRIPTION ("GPIO driver for AMD chipsets")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define AMD_GPIO_DEBOUNCE   0x10 /* Debounce, rw */

Definition at line 41 of file gpio-amd8111.c.

#define AMD_GPIO_LTCH_STS   0x40 /* Latch status, w1 */

Definition at line 39 of file gpio-amd8111.c.

#define AMD_GPIO_MODE_ALTFN   0x08 /* Or 0x09 */

Definition at line 46 of file gpio-amd8111.c.

#define AMD_GPIO_MODE_IN   0x00

Definition at line 43 of file gpio-amd8111.c.

#define AMD_GPIO_MODE_MASK   0x0c /* Pin Mode Select, rw */

Definition at line 42 of file gpio-amd8111.c.

#define AMD_GPIO_MODE_OUT   0x04

Definition at line 44 of file gpio-amd8111.c.

#define AMD_GPIO_RTIN   0x20 /* Real Time in, ro */

Definition at line 40 of file gpio-amd8111.c.

#define AMD_GPIO_X_IN_ACTIVEHI   0x01 /* Active High */

Definition at line 48 of file gpio-amd8111.c.

#define AMD_GPIO_X_IN_LATCH   0x02 /* Latched version is selected */

Definition at line 49 of file gpio-amd8111.c.

#define AMD_GPIO_X_MASK   0x03 /* In/Out specific, rw */

Definition at line 47 of file gpio-amd8111.c.

#define AMD_GPIO_X_OUT_CLK0   0x02

Definition at line 52 of file gpio-amd8111.c.

#define AMD_GPIO_X_OUT_CLK1   0x03

Definition at line 53 of file gpio-amd8111.c.

#define AMD_GPIO_X_OUT_HI   0x01

Definition at line 51 of file gpio-amd8111.c.

#define AMD_GPIO_X_OUT_LOW   0x00

Definition at line 50 of file gpio-amd8111.c.

#define AMD_REG_GPIO (   i)    (0x10 + (i))

Definition at line 37 of file gpio-amd8111.c.

#define PMBASE_OFFSET   0xb0

Definition at line 34 of file gpio-amd8111.c.

#define PMBASE_SIZE   0x30

Definition at line 35 of file gpio-amd8111.c.

#define to_agp (   chip)    container_of(chip, struct amd_gpio, chip)

Definition at line 78 of file gpio-amd8111.c.

Function Documentation

MODULE_AUTHOR ( "The Linux Kernel team )
MODULE_DESCRIPTION ( "GPIO driver for AMD chipsets"  )
MODULE_DEVICE_TABLE ( pci  ,
pci_tbl   
)
module_exit ( amd_gpio_exit  )
module_init ( amd_gpio_init  )
MODULE_LICENSE ( "GPL"  )