Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
rb.h File Reference
#include <linux/genhd.h>

Go to the source code of this file.

Data Structures

struct  dev_reg
 
struct  korina_device
 
struct  cf_device
 
struct  mpmc_device
 

Macros

#define REGBASE   0x18000000
 
#define IDT434_REG_BASE   ((volatile void *) KSEG1ADDR(REGBASE))
 
#define UART0BASE   0x58000
 
#define RST   (1 << 15)
 
#define DEV0BASE   0x010000
 
#define DEV0MASK   0x010004
 
#define DEV0C   0x010008
 
#define DEV0T   0x01000C
 
#define DEV1BASE   0x010010
 
#define DEV1MASK   0x010014
 
#define DEV1C   0x010018
 
#define DEV1TC   0x01001C
 
#define DEV2BASE   0x010020
 
#define DEV2MASK   0x010024
 
#define DEV2C   0x010028
 
#define DEV2TC   0x01002C
 
#define DEV3BASE   0x010030
 
#define DEV3MASK   0x010034
 
#define DEV3C   0x010038
 
#define DEV3TC   0x01003C
 
#define BTCS   0x010040
 
#define BTCOMPARE   0x010044
 
#define GPIOBASE   0x050000
 
#define GPIOFUNC   0x00
 
#define GPIOCFG   0x04
 
#define GPIOD   0x08
 
#define GPIOILEVEL   0x0C
 
#define GPIOISTAT   0x10
 
#define GPIONMIEN   0x14
 
#define IMASK6   0x38
 
#define LO_WPX   (1 << 0)
 
#define LO_ALE   (1 << 1)
 
#define LO_CLE   (1 << 2)
 
#define LO_CEX   (1 << 3)
 
#define LO_FOFF   (1 << 5)
 
#define LO_SPICS   (1 << 6)
 
#define LO_ULED   (1 << 7)
 
#define BIT_TO_MASK(x)   (1 << x)
 

Functions

void set_latch_u5 (unsigned char or_mask, unsigned char nand_mask)
 
unsigned char get_latch_u5 (void)
 

Macro Definition Documentation

#define BIT_TO_MASK (   x)    (1 << x)

Definition at line 59 of file rb.h.

#define BTCOMPARE   0x010044

Definition at line 41 of file rb.h.

#define BTCS   0x010040

Definition at line 40 of file rb.h.

#define DEV0BASE   0x010000

Definition at line 24 of file rb.h.

#define DEV0C   0x010008

Definition at line 26 of file rb.h.

#define DEV0MASK   0x010004

Definition at line 25 of file rb.h.

#define DEV0T   0x01000C

Definition at line 27 of file rb.h.

#define DEV1BASE   0x010010

Definition at line 28 of file rb.h.

#define DEV1C   0x010018

Definition at line 30 of file rb.h.

#define DEV1MASK   0x010014

Definition at line 29 of file rb.h.

#define DEV1TC   0x01001C

Definition at line 31 of file rb.h.

#define DEV2BASE   0x010020

Definition at line 32 of file rb.h.

#define DEV2C   0x010028

Definition at line 34 of file rb.h.

#define DEV2MASK   0x010024

Definition at line 33 of file rb.h.

#define DEV2TC   0x01002C

Definition at line 35 of file rb.h.

#define DEV3BASE   0x010030

Definition at line 36 of file rb.h.

#define DEV3C   0x010038

Definition at line 38 of file rb.h.

#define DEV3MASK   0x010034

Definition at line 37 of file rb.h.

#define DEV3TC   0x01003C

Definition at line 39 of file rb.h.

#define GPIOBASE   0x050000

Definition at line 42 of file rb.h.

#define GPIOCFG   0x04

Definition at line 45 of file rb.h.

#define GPIOD   0x08

Definition at line 46 of file rb.h.

#define GPIOFUNC   0x00

Definition at line 44 of file rb.h.

#define GPIOILEVEL   0x0C

Definition at line 47 of file rb.h.

#define GPIOISTAT   0x10

Definition at line 48 of file rb.h.

#define GPIONMIEN   0x14

Definition at line 49 of file rb.h.

#define IDT434_REG_BASE   ((volatile void *) KSEG1ADDR(REGBASE))

Definition at line 21 of file rb.h.

#define IMASK6   0x38

Definition at line 50 of file rb.h.

#define LO_ALE   (1 << 1)

Definition at line 52 of file rb.h.

#define LO_CEX   (1 << 3)

Definition at line 54 of file rb.h.

#define LO_CLE   (1 << 2)

Definition at line 53 of file rb.h.

#define LO_FOFF   (1 << 5)

Definition at line 55 of file rb.h.

#define LO_SPICS   (1 << 6)

Definition at line 56 of file rb.h.

#define LO_ULED   (1 << 7)

Definition at line 57 of file rb.h.

#define LO_WPX   (1 << 0)

Definition at line 51 of file rb.h.

#define REGBASE   0x18000000

Definition at line 20 of file rb.h.

#define RST   (1 << 15)

Definition at line 23 of file rb.h.

#define UART0BASE   0x58000

Definition at line 22 of file rb.h.

Function Documentation

unsigned char get_latch_u5 ( void  )

Definition at line 61 of file devices.c.

void set_latch_u5 ( unsigned char  or_mask,
unsigned char  nand_mask 
)

Definition at line 48 of file devices.c.