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

Go to the source code of this file.

Macros

#define LUBBOCK_ETH_PHYS   PXA_CS3_PHYS
 
#define LUBBOCK_FPGA_PHYS   PXA_CS2_PHYS
 
#define LUBBOCK_FPGA_VIRT   (0xf0000000)
 
#define LUB_P2V(x)   ((x) - LUBBOCK_FPGA_PHYS + LUBBOCK_FPGA_VIRT)
 
#define LUB_V2P(x)   ((x) - LUBBOCK_FPGA_VIRT + LUBBOCK_FPGA_PHYS)
 
#define __LUB_REG(x)   (*((volatile unsigned long *)LUB_P2V(x)))
 
#define LUB_WHOAMI   __LUB_REG(LUBBOCK_FPGA_PHYS + 0x000)
 
#define LUB_DISC_BLNK_LED   __LUB_REG(LUBBOCK_FPGA_PHYS + 0x040)
 
#define LUB_CONF_SWITCHES   __LUB_REG(LUBBOCK_FPGA_PHYS + 0x050)
 
#define LUB_USER_SWITCHES   __LUB_REG(LUBBOCK_FPGA_PHYS + 0x060)
 
#define LUB_MISC_WR   __LUB_REG(LUBBOCK_FPGA_PHYS + 0x080)
 
#define LUB_MISC_RD   __LUB_REG(LUBBOCK_FPGA_PHYS + 0x090)
 
#define LUB_IRQ_MASK_EN   __LUB_REG(LUBBOCK_FPGA_PHYS + 0x0c0)
 
#define LUB_IRQ_SET_CLR   __LUB_REG(LUBBOCK_FPGA_PHYS + 0x0d0)
 
#define LUB_GP   __LUB_REG(LUBBOCK_FPGA_PHYS + 0x100)
 
#define LUBBOCK_IRQ(x)   (IRQ_BOARD_START + (x))
 
#define LUBBOCK_SD_IRQ   LUBBOCK_IRQ(0)
 
#define LUBBOCK_SA1111_IRQ   LUBBOCK_IRQ(1)
 
#define LUBBOCK_USB_IRQ   LUBBOCK_IRQ(2) /* usb connect */
 
#define LUBBOCK_ETH_IRQ   LUBBOCK_IRQ(3)
 
#define LUBBOCK_UCB1400_IRQ   LUBBOCK_IRQ(4)
 
#define LUBBOCK_BB_IRQ   LUBBOCK_IRQ(5)
 
#define LUBBOCK_USB_DISC_IRQ   LUBBOCK_IRQ(6) /* usb disconnect */
 
#define LUBBOCK_LAST_IRQ   LUBBOCK_IRQ(6)
 
#define LUBBOCK_SA1111_IRQ_BASE   (IRQ_BOARD_START + 16)
 
#define LUBBOCK_NR_IRQS   (IRQ_BOARD_START + 16 + 55)
 

Functions

void lubbock_set_misc_wr (unsigned int mask, unsigned int set)
 

Macro Definition Documentation

#define __LUB_REG (   x)    (*((volatile unsigned long *)LUB_P2V(x)))

Definition at line 21 of file lubbock.h.

#define LUB_CONF_SWITCHES   __LUB_REG(LUBBOCK_FPGA_PHYS + 0x050)

Definition at line 29 of file lubbock.h.

#define LUB_DISC_BLNK_LED   __LUB_REG(LUBBOCK_FPGA_PHYS + 0x040)

Definition at line 28 of file lubbock.h.

#define LUB_GP   __LUB_REG(LUBBOCK_FPGA_PHYS + 0x100)

Definition at line 35 of file lubbock.h.

#define LUB_IRQ_MASK_EN   __LUB_REG(LUBBOCK_FPGA_PHYS + 0x0c0)

Definition at line 33 of file lubbock.h.

#define LUB_IRQ_SET_CLR   __LUB_REG(LUBBOCK_FPGA_PHYS + 0x0d0)

Definition at line 34 of file lubbock.h.

#define LUB_MISC_RD   __LUB_REG(LUBBOCK_FPGA_PHYS + 0x090)

Definition at line 32 of file lubbock.h.

#define LUB_MISC_WR   __LUB_REG(LUBBOCK_FPGA_PHYS + 0x080)

Definition at line 31 of file lubbock.h.

#define LUB_P2V (   x)    ((x) - LUBBOCK_FPGA_PHYS + LUBBOCK_FPGA_VIRT)

Definition at line 17 of file lubbock.h.

#define LUB_USER_SWITCHES   __LUB_REG(LUBBOCK_FPGA_PHYS + 0x060)

Definition at line 30 of file lubbock.h.

#define LUB_V2P (   x)    ((x) - LUBBOCK_FPGA_VIRT + LUBBOCK_FPGA_PHYS)

Definition at line 18 of file lubbock.h.

#define LUB_WHOAMI   __LUB_REG(LUBBOCK_FPGA_PHYS + 0x000)

Definition at line 27 of file lubbock.h.

#define LUBBOCK_BB_IRQ   LUBBOCK_IRQ(5)

Definition at line 44 of file lubbock.h.

#define LUBBOCK_ETH_IRQ   LUBBOCK_IRQ(3)

Definition at line 42 of file lubbock.h.

#define LUBBOCK_ETH_PHYS   PXA_CS3_PHYS

Definition at line 13 of file lubbock.h.

#define LUBBOCK_FPGA_PHYS   PXA_CS2_PHYS

Definition at line 15 of file lubbock.h.

#define LUBBOCK_FPGA_VIRT   (0xf0000000)

Definition at line 16 of file lubbock.h.

#define LUBBOCK_IRQ (   x)    (IRQ_BOARD_START + (x))

Definition at line 38 of file lubbock.h.

#define LUBBOCK_LAST_IRQ   LUBBOCK_IRQ(6)

Definition at line 46 of file lubbock.h.

#define LUBBOCK_NR_IRQS   (IRQ_BOARD_START + 16 + 55)

Definition at line 49 of file lubbock.h.

#define LUBBOCK_SA1111_IRQ   LUBBOCK_IRQ(1)

Definition at line 40 of file lubbock.h.

#define LUBBOCK_SA1111_IRQ_BASE   (IRQ_BOARD_START + 16)

Definition at line 48 of file lubbock.h.

#define LUBBOCK_SD_IRQ   LUBBOCK_IRQ(0)

Definition at line 39 of file lubbock.h.

#define LUBBOCK_UCB1400_IRQ   LUBBOCK_IRQ(4)

Definition at line 43 of file lubbock.h.

#define LUBBOCK_USB_DISC_IRQ   LUBBOCK_IRQ(6) /* usb disconnect */

Definition at line 45 of file lubbock.h.

#define LUBBOCK_USB_IRQ   LUBBOCK_IRQ(2) /* usb connect */

Definition at line 41 of file lubbock.h.

Function Documentation

void lubbock_set_misc_wr ( unsigned int  mask,
unsigned int  set 
)

Definition at line 116 of file lubbock.c.