Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
scx200_gpio.h File Reference

Go to the source code of this file.

Macros

#define scx200_gpio_present()   (scx200_gpio_base!=0)
 
#define __SCx200_GPIO_BANK   unsigned bank = index>>5
 
#define __SCx200_GPIO_IOADDR   unsigned short ioaddr = scx200_gpio_base+0x10*bank
 
#define __SCx200_GPIO_SHADOW   unsigned long *shadow = scx200_gpio_shadow+bank
 
#define __SCx200_GPIO_INDEX   index &= 31
 
#define __SCx200_GPIO_OUT   __asm__ __volatile__("outsl":"=mS" (shadow):"d" (ioaddr), "0" (shadow))
 

Functions

u32 scx200_gpio_configure (unsigned index, u32 set, u32 clear)
 

Variables

unsigned scx200_gpio_base
 
unsigned long scx200_gpio_shadow [2]
 
struct nsc_gpio_ops scx200_gpio_ops
 

Macro Definition Documentation

#define __SCx200_GPIO_BANK   unsigned bank = index>>5

Definition at line 10 of file scx200_gpio.h.

#define __SCx200_GPIO_INDEX   index &= 31

Definition at line 13 of file scx200_gpio.h.

#define __SCx200_GPIO_IOADDR   unsigned short ioaddr = scx200_gpio_base+0x10*bank

Definition at line 11 of file scx200_gpio.h.

#define __SCx200_GPIO_OUT   __asm__ __volatile__("outsl":"=mS" (shadow):"d" (ioaddr), "0" (shadow))

Definition at line 15 of file scx200_gpio.h.

#define __SCx200_GPIO_SHADOW   unsigned long *shadow = scx200_gpio_shadow+bank

Definition at line 12 of file scx200_gpio.h.

#define scx200_gpio_present ( )    (scx200_gpio_base!=0)

Definition at line 7 of file scx200_gpio.h.

Function Documentation

u32 scx200_gpio_configure ( unsigned  index,
u32  set,
u32  clear 
)

Definition at line 94 of file scx200_32.c.

Variable Documentation

unsigned scx200_gpio_base

Definition at line 24 of file scx200_32.c.

struct nsc_gpio_ops scx200_gpio_ops

Definition at line 38 of file scx200_gpio.c.

unsigned long scx200_gpio_shadow[2]

Definition at line 25 of file scx200_32.c.