Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
tb0219.c File Reference
#include <linux/platform_device.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/module.h>
#include <asm/io.h>
#include <asm/reboot.h>
#include <asm/vr41xx/giu.h>
#include <asm/vr41xx/tb0219.h>

Go to the source code of this file.

Macros

#define tb0219_read(offset)   readw(tb0219_base + (offset))
 
#define tb0219_write(offset, value)   writew((value), tb0219_base + (offset))
 
#define TB0219_START   0x0a000000UL
 
#define TB0219_SIZE   0x20UL
 
#define TB0219_LED   0x00
 
#define TB0219_GPIO_INPUT   0x02
 
#define TB0219_GPIO_OUTPUT   0x04
 
#define TB0219_DIP_SWITCH   0x06
 
#define TB0219_MISC   0x08
 
#define TB0219_RESET   0x0e
 
#define TB0219_PCI_SLOT1_IRQ_STATUS   0x10
 
#define TB0219_PCI_SLOT2_IRQ_STATUS   0x12
 
#define TB0219_PCI_SLOT3_IRQ_STATUS   0x14
 

Enumerations

enum  tb0219_type_t { TYPE_LED, TYPE_GPIO_OUTPUT }
 

Functions

 MODULE_AUTHOR ("Yoichi Yuasa <[email protected]>")
 
 MODULE_DESCRIPTION ("TANBAC TB0219 base board driver")
 
 MODULE_LICENSE ("GPL")
 
 module_param (major, int, 0)
 
 MODULE_PARM_DESC (major,"Major device number")
 
 module_init (tanbac_tb0219_init)
 
 module_exit (tanbac_tb0219_exit)
 

Macro Definition Documentation

#define TB0219_DIP_SWITCH   0x06

Definition at line 51 of file tb0219.c.

#define TB0219_GPIO_INPUT   0x02

Definition at line 49 of file tb0219.c.

#define TB0219_GPIO_OUTPUT   0x04

Definition at line 50 of file tb0219.c.

#define TB0219_LED   0x00

Definition at line 48 of file tb0219.c.

#define TB0219_MISC   0x08

Definition at line 52 of file tb0219.c.

#define TB0219_PCI_SLOT1_IRQ_STATUS   0x10

Definition at line 54 of file tb0219.c.

#define TB0219_PCI_SLOT2_IRQ_STATUS   0x12

Definition at line 55 of file tb0219.c.

#define TB0219_PCI_SLOT3_IRQ_STATUS   0x14

Definition at line 56 of file tb0219.c.

#define tb0219_read (   offset)    readw(tb0219_base + (offset))

Definition at line 42 of file tb0219.c.

#define TB0219_RESET   0x0e

Definition at line 53 of file tb0219.c.

#define TB0219_SIZE   0x20UL

Definition at line 46 of file tb0219.c.

#define TB0219_START   0x0a000000UL

Definition at line 45 of file tb0219.c.

#define tb0219_write (   offset,
  value 
)    writew((value), tb0219_base + (offset))

Definition at line 43 of file tb0219.c.

Enumeration Type Documentation

Enumerator:
TYPE_LED 
TYPE_GPIO_OUTPUT 

Definition at line 58 of file tb0219.c.

Function Documentation

MODULE_AUTHOR ( "Yoichi Yuasa <[email protected]>"  )
MODULE_DESCRIPTION ( "TANBAC TB0219 base board driver )
module_exit ( tanbac_tb0219_exit  )
module_init ( tanbac_tb0219_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( major  ,
int  ,
 
)
MODULE_PARM_DESC ( major  ,
"Major device number  
)