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

Go to the source code of this file.

Macros

#define GPIO_IN   0
 
#define GPIO_OUT   1
 
#define GPIO_LOW   0
 
#define GPIO_HIGH   1
 
#define IOP3XX_GPIO_LINE(x)   (x)
 
#define IOP3XX_PERIPHERAL_PHYS_BASE   0xffffe000
 
#define IOP3XX_PERIPHERAL_VIRT_BASE   0xfeffe000
 
#define IOP3XX_PERIPHERAL_SIZE   0x00002000
 
#define IOP3XX_PERIPHERAL_UPPER_PA
 
#define IOP3XX_PERIPHERAL_UPPER_VA
 
#define IOP3XX_PMMR_PHYS_TO_VIRT(addr)
 
#define IOP3XX_REG_ADDR(reg)   (IOP3XX_PERIPHERAL_VIRT_BASE + (reg))
 
#define IOP3XX_ATUVID   (volatile u16 *)IOP3XX_REG_ADDR(0x0100)
 
#define IOP3XX_ATUDID   (volatile u16 *)IOP3XX_REG_ADDR(0x0102)
 
#define IOP3XX_ATUCMD   (volatile u16 *)IOP3XX_REG_ADDR(0x0104)
 
#define IOP3XX_ATUSR   (volatile u16 *)IOP3XX_REG_ADDR(0x0106)
 
#define IOP3XX_ATURID   (volatile u8 *)IOP3XX_REG_ADDR(0x0108)
 
#define IOP3XX_ATUCCR   (volatile u32 *)IOP3XX_REG_ADDR(0x0109)
 
#define IOP3XX_ATUCLSR   (volatile u8 *)IOP3XX_REG_ADDR(0x010c)
 
#define IOP3XX_ATULT   (volatile u8 *)IOP3XX_REG_ADDR(0x010d)
 
#define IOP3XX_ATUHTR   (volatile u8 *)IOP3XX_REG_ADDR(0x010e)
 
#define IOP3XX_ATUBIST   (volatile u8 *)IOP3XX_REG_ADDR(0x010f)
 
#define IOP3XX_IABAR0   (volatile u32 *)IOP3XX_REG_ADDR(0x0110)
 
#define IOP3XX_IAUBAR0   (volatile u32 *)IOP3XX_REG_ADDR(0x0114)
 
#define IOP3XX_IABAR1   (volatile u32 *)IOP3XX_REG_ADDR(0x0118)
 
#define IOP3XX_IAUBAR1   (volatile u32 *)IOP3XX_REG_ADDR(0x011c)
 
#define IOP3XX_IABAR2   (volatile u32 *)IOP3XX_REG_ADDR(0x0120)
 
#define IOP3XX_IAUBAR2   (volatile u32 *)IOP3XX_REG_ADDR(0x0124)
 
#define IOP3XX_ASVIR   (volatile u16 *)IOP3XX_REG_ADDR(0x012c)
 
#define IOP3XX_ASIR   (volatile u16 *)IOP3XX_REG_ADDR(0x012e)
 
#define IOP3XX_ERBAR   (volatile u32 *)IOP3XX_REG_ADDR(0x0130)
 
#define IOP3XX_ATUILR   (volatile u8 *)IOP3XX_REG_ADDR(0x013c)
 
#define IOP3XX_ATUIPR   (volatile u8 *)IOP3XX_REG_ADDR(0x013d)
 
#define IOP3XX_ATUMGNT   (volatile u8 *)IOP3XX_REG_ADDR(0x013e)
 
#define IOP3XX_ATUMLAT   (volatile u8 *)IOP3XX_REG_ADDR(0x013f)
 
#define IOP3XX_IALR0   (volatile u32 *)IOP3XX_REG_ADDR(0x0140)
 
#define IOP3XX_IATVR0   (volatile u32 *)IOP3XX_REG_ADDR(0x0144)
 
#define IOP3XX_ERLR   (volatile u32 *)IOP3XX_REG_ADDR(0x0148)
 
#define IOP3XX_ERTVR   (volatile u32 *)IOP3XX_REG_ADDR(0x014c)
 
#define IOP3XX_IALR1   (volatile u32 *)IOP3XX_REG_ADDR(0x0150)
 
#define IOP3XX_IALR2   (volatile u32 *)IOP3XX_REG_ADDR(0x0154)
 
#define IOP3XX_IATVR2   (volatile u32 *)IOP3XX_REG_ADDR(0x0158)
 
#define IOP3XX_OIOWTVR   (volatile u32 *)IOP3XX_REG_ADDR(0x015c)
 
#define IOP3XX_OMWTVR0   (volatile u32 *)IOP3XX_REG_ADDR(0x0160)
 
#define IOP3XX_OUMWTVR0   (volatile u32 *)IOP3XX_REG_ADDR(0x0164)
 
#define IOP3XX_OMWTVR1   (volatile u32 *)IOP3XX_REG_ADDR(0x0168)
 
#define IOP3XX_OUMWTVR1   (volatile u32 *)IOP3XX_REG_ADDR(0x016c)
 
#define IOP3XX_OUDWTVR   (volatile u32 *)IOP3XX_REG_ADDR(0x0178)
 
#define IOP3XX_ATUCR   (volatile u32 *)IOP3XX_REG_ADDR(0x0180)
 
#define IOP3XX_PCSR   (volatile u32 *)IOP3XX_REG_ADDR(0x0184)
 
#define IOP3XX_ATUISR   (volatile u32 *)IOP3XX_REG_ADDR(0x0188)
 
#define IOP3XX_ATUIMR   (volatile u32 *)IOP3XX_REG_ADDR(0x018c)
 
#define IOP3XX_IABAR3   (volatile u32 *)IOP3XX_REG_ADDR(0x0190)
 
#define IOP3XX_IAUBAR3   (volatile u32 *)IOP3XX_REG_ADDR(0x0194)
 
#define IOP3XX_IALR3   (volatile u32 *)IOP3XX_REG_ADDR(0x0198)
 
#define IOP3XX_IATVR3   (volatile u32 *)IOP3XX_REG_ADDR(0x019c)
 
#define IOP3XX_OCCAR   (volatile u32 *)IOP3XX_REG_ADDR(0x01a4)
 
#define IOP3XX_OCCDR   (volatile u32 *)IOP3XX_REG_ADDR(0x01ac)
 
#define IOP3XX_PDSCR   (volatile u32 *)IOP3XX_REG_ADDR(0x01bc)
 
#define IOP3XX_PMCAPID   (volatile u8 *)IOP3XX_REG_ADDR(0x01c0)
 
#define IOP3XX_PMNEXT   (volatile u8 *)IOP3XX_REG_ADDR(0x01c1)
 
#define IOP3XX_APMCR   (volatile u16 *)IOP3XX_REG_ADDR(0x01c2)
 
#define IOP3XX_APMCSR   (volatile u16 *)IOP3XX_REG_ADDR(0x01c4)
 
#define IOP3XX_PCIXCAPID   (volatile u8 *)IOP3XX_REG_ADDR(0x01e0)
 
#define IOP3XX_PCIXNEXT   (volatile u8 *)IOP3XX_REG_ADDR(0x01e1)
 
#define IOP3XX_PCIXCMD   (volatile u16 *)IOP3XX_REG_ADDR(0x01e2)
 
#define IOP3XX_PCIXSR   (volatile u32 *)IOP3XX_REG_ADDR(0x01e4)
 
#define IOP3XX_PCIIRSR   (volatile u32 *)IOP3XX_REG_ADDR(0x01ec)
 
#define IOP3XX_PCSR_OUT_Q_BUSY   (1 << 15)
 
#define IOP3XX_PCSR_IN_Q_BUSY   (1 << 14)
 
#define IOP3XX_ATUCR_OUT_EN   (1 << 1)
 
#define IOP3XX_INIT_ATU_DEFAULT   0
 
#define IOP3XX_INIT_ATU_DISABLE   -1
 
#define IOP3XX_INIT_ATU_ENABLE   1
 
#define IOP3XX_IMR0   (volatile u32 *)IOP3XX_REG_ADDR(0x0310)
 
#define IOP3XX_IMR1   (volatile u32 *)IOP3XX_REG_ADDR(0x0314)
 
#define IOP3XX_OMR0   (volatile u32 *)IOP3XX_REG_ADDR(0x0318)
 
#define IOP3XX_OMR1   (volatile u32 *)IOP3XX_REG_ADDR(0x031c)
 
#define IOP3XX_IDR   (volatile u32 *)IOP3XX_REG_ADDR(0x0320)
 
#define IOP3XX_IISR   (volatile u32 *)IOP3XX_REG_ADDR(0x0324)
 
#define IOP3XX_IIMR   (volatile u32 *)IOP3XX_REG_ADDR(0x0328)
 
#define IOP3XX_ODR   (volatile u32 *)IOP3XX_REG_ADDR(0x032c)
 
#define IOP3XX_OISR   (volatile u32 *)IOP3XX_REG_ADDR(0x0330)
 
#define IOP3XX_OIMR   (volatile u32 *)IOP3XX_REG_ADDR(0x0334)
 
#define IOP3XX_MUCR   (volatile u32 *)IOP3XX_REG_ADDR(0x0350)
 
#define IOP3XX_QBAR   (volatile u32 *)IOP3XX_REG_ADDR(0x0354)
 
#define IOP3XX_IFHPR   (volatile u32 *)IOP3XX_REG_ADDR(0x0360)
 
#define IOP3XX_IFTPR   (volatile u32 *)IOP3XX_REG_ADDR(0x0364)
 
#define IOP3XX_IPHPR   (volatile u32 *)IOP3XX_REG_ADDR(0x0368)
 
#define IOP3XX_IPTPR   (volatile u32 *)IOP3XX_REG_ADDR(0x036c)
 
#define IOP3XX_OFHPR   (volatile u32 *)IOP3XX_REG_ADDR(0x0370)
 
#define IOP3XX_OFTPR   (volatile u32 *)IOP3XX_REG_ADDR(0x0374)
 
#define IOP3XX_OPHPR   (volatile u32 *)IOP3XX_REG_ADDR(0x0378)
 
#define IOP3XX_OPTPR   (volatile u32 *)IOP3XX_REG_ADDR(0x037c)
 
#define IOP3XX_IAR   (volatile u32 *)IOP3XX_REG_ADDR(0x0380)
 
#define IOP3XX_DMA_PHYS_BASE(chan)
 
#define IOP3XX_DMA_UPPER_PA(chan)   (IOP3XX_DMA_PHYS_BASE(chan) + 0x27)
 
#define IOP3XX_PBCR   (volatile u32 *)IOP3XX_REG_ADDR(0x0680)
 
#define IOP3XX_PBISR   (volatile u32 *)IOP3XX_REG_ADDR(0x0684)
 
#define IOP3XX_PBBAR0   (volatile u32 *)IOP3XX_REG_ADDR(0x0688)
 
#define IOP3XX_PBLR0   (volatile u32 *)IOP3XX_REG_ADDR(0x068c)
 
#define IOP3XX_PBBAR1   (volatile u32 *)IOP3XX_REG_ADDR(0x0690)
 
#define IOP3XX_PBLR1   (volatile u32 *)IOP3XX_REG_ADDR(0x0694)
 
#define IOP3XX_PBBAR2   (volatile u32 *)IOP3XX_REG_ADDR(0x0698)
 
#define IOP3XX_PBLR2   (volatile u32 *)IOP3XX_REG_ADDR(0x069c)
 
#define IOP3XX_PBBAR3   (volatile u32 *)IOP3XX_REG_ADDR(0x06a0)
 
#define IOP3XX_PBLR3   (volatile u32 *)IOP3XX_REG_ADDR(0x06a4)
 
#define IOP3XX_PBBAR4   (volatile u32 *)IOP3XX_REG_ADDR(0x06a8)
 
#define IOP3XX_PBLR4   (volatile u32 *)IOP3XX_REG_ADDR(0x06ac)
 
#define IOP3XX_PBBAR5   (volatile u32 *)IOP3XX_REG_ADDR(0x06b0)
 
#define IOP3XX_PBLR5   (volatile u32 *)IOP3XX_REG_ADDR(0x06b4)
 
#define IOP3XX_PMBR0   (volatile u32 *)IOP3XX_REG_ADDR(0x06c0)
 
#define IOP3XX_PMBR1   (volatile u32 *)IOP3XX_REG_ADDR(0x06e0)
 
#define IOP3XX_PMBR2   (volatile u32 *)IOP3XX_REG_ADDR(0x06e4)
 
#define IOP3XX_GTMR   (volatile u32 *)IOP3XX_REG_ADDR(0x0700)
 
#define IOP3XX_ESR   (volatile u32 *)IOP3XX_REG_ADDR(0x0704)
 
#define IOP3XX_EMISR   (volatile u32 *)IOP3XX_REG_ADDR(0x0708)
 
#define IOP3XX_GTSR   (volatile u32 *)IOP3XX_REG_ADDR(0x0710)
 
#define IOP3XX_PERCR0   (volatile u32 *)IOP3XX_REG_ADDR(0x0710)
 
#define IOP3XX_GPOE   (volatile u32 *)IOP3XX_GPIO_REG(0x0000)
 
#define IOP3XX_GPID   (volatile u32 *)IOP3XX_GPIO_REG(0x0004)
 
#define IOP3XX_GPOD   (volatile u32 *)IOP3XX_GPIO_REG(0x0008)
 
#define IOP3XX_TU_TMR0   (volatile u32 *)IOP3XX_TIMER_REG(0x0000)
 
#define IOP3XX_TU_TMR1   (volatile u32 *)IOP3XX_TIMER_REG(0x0004)
 
#define IOP3XX_TU_TCR0   (volatile u32 *)IOP3XX_TIMER_REG(0x0008)
 
#define IOP3XX_TU_TCR1   (volatile u32 *)IOP3XX_TIMER_REG(0x000c)
 
#define IOP3XX_TU_TRR0   (volatile u32 *)IOP3XX_TIMER_REG(0x0010)
 
#define IOP3XX_TU_TRR1   (volatile u32 *)IOP3XX_TIMER_REG(0x0014)
 
#define IOP3XX_TU_TISR   (volatile u32 *)IOP3XX_TIMER_REG(0x0018)
 
#define IOP3XX_TU_WDTCR   (volatile u32 *)IOP3XX_TIMER_REG(0x001c)
 
#define IOP_TMR_EN   0x02
 
#define IOP_TMR_RELOAD   0x04
 
#define IOP_TMR_PRIVILEGED   0x08
 
#define IOP_TMR_RATIO_1_1   0x00
 
#define IOP_WDTCR_EN_ARM   0x1e1e1e1e
 
#define IOP_WDTCR_EN   0xe1e1e1e1
 
#define IOP_WDTCR_DIS_ARM   (IOP_WDTCR_EN_ARM)
 
#define IOP_WDTCR_DIS   (IOP_WDTCR_EN)
 
#define IOP3XX_AAU_PHYS_BASE   (IOP3XX_PERIPHERAL_PHYS_BASE + 0x800)
 
#define IOP3XX_AAU_UPPER_PA   (IOP3XX_AAU_PHYS_BASE + 0xa7)
 
#define IOP3XX_ICR0   (volatile u32 *)IOP3XX_REG_ADDR(0x1680)
 
#define IOP3XX_ISR0   (volatile u32 *)IOP3XX_REG_ADDR(0x1684)
 
#define IOP3XX_ISAR0   (volatile u32 *)IOP3XX_REG_ADDR(0x1688)
 
#define IOP3XX_IDBR0   (volatile u32 *)IOP3XX_REG_ADDR(0x168c)
 
#define IOP3XX_IBMR0   (volatile u32 *)IOP3XX_REG_ADDR(0x1694)
 
#define IOP3XX_ICR1   (volatile u32 *)IOP3XX_REG_ADDR(0x16a0)
 
#define IOP3XX_ISR1   (volatile u32 *)IOP3XX_REG_ADDR(0x16a4)
 
#define IOP3XX_ISAR1   (volatile u32 *)IOP3XX_REG_ADDR(0x16a8)
 
#define IOP3XX_IDBR1   (volatile u32 *)IOP3XX_REG_ADDR(0x16ac)
 
#define IOP3XX_IBMR1   (volatile u32 *)IOP3XX_REG_ADDR(0x16b4)
 
#define IOP3XX_PCI_LOWER_MEM_PA   0x80000000
 
#define IOP3XX_PCI_MEM_WINDOW_SIZE   0x08000000
 
#define IOP3XX_PCI_LOWER_IO_PA   0x90000000
 
#define IOP3XX_PCI_LOWER_IO_BA   0x00000000
 
#define IOP_RCSR_WDT   (0)
 

Functions

void gpio_line_config (int line, int direction)
 
int gpio_line_get (int line)
 
void gpio_line_set (int line, int value)
 
int iop3xx_get_init_atu (void)
 
void iop3xx_map_io (void)
 
void iop_init_cp6_handler (void)
 
void iop_init_time (unsigned long tickrate)
 
void iop3xx_restart (char, const char *)
 
unsigned long get_iop_tick_rate (void)
 

Variables

int init_atu
 
struct platform_device iop3xx_dma_0_channel
 
struct platform_device iop3xx_dma_1_channel
 
struct platform_device iop3xx_aau_channel
 
struct platform_device iop3xx_i2c0_device
 
struct platform_device iop3xx_i2c1_device
 

Macro Definition Documentation

#define GPIO_HIGH   1

Definition at line 24 of file iop3xx.h.

#define GPIO_IN   0

Definition at line 21 of file iop3xx.h.

#define GPIO_LOW   0

Definition at line 23 of file iop3xx.h.

#define GPIO_OUT   1

Definition at line 22 of file iop3xx.h.

#define IOP3XX_AAU_PHYS_BASE   (IOP3XX_PERIPHERAL_PHYS_BASE + 0x800)

Definition at line 198 of file iop3xx.h.

#define IOP3XX_AAU_UPPER_PA   (IOP3XX_AAU_PHYS_BASE + 0xa7)

Definition at line 199 of file iop3xx.h.

#define IOP3XX_APMCR   (volatile u16 *)IOP3XX_REG_ADDR(0x01c2)

Definition at line 101 of file iop3xx.h.

#define IOP3XX_APMCSR   (volatile u16 *)IOP3XX_REG_ADDR(0x01c4)

Definition at line 102 of file iop3xx.h.

#define IOP3XX_ASIR   (volatile u16 *)IOP3XX_REG_ADDR(0x012e)

Definition at line 69 of file iop3xx.h.

#define IOP3XX_ASVIR   (volatile u16 *)IOP3XX_REG_ADDR(0x012c)

Definition at line 68 of file iop3xx.h.

#define IOP3XX_ATUBIST   (volatile u8 *)IOP3XX_REG_ADDR(0x010f)

Definition at line 61 of file iop3xx.h.

#define IOP3XX_ATUCCR   (volatile u32 *)IOP3XX_REG_ADDR(0x0109)

Definition at line 57 of file iop3xx.h.

#define IOP3XX_ATUCLSR   (volatile u8 *)IOP3XX_REG_ADDR(0x010c)

Definition at line 58 of file iop3xx.h.

#define IOP3XX_ATUCMD   (volatile u16 *)IOP3XX_REG_ADDR(0x0104)

Definition at line 54 of file iop3xx.h.

#define IOP3XX_ATUCR   (volatile u32 *)IOP3XX_REG_ADDR(0x0180)

Definition at line 88 of file iop3xx.h.

#define IOP3XX_ATUCR_OUT_EN   (1 << 1)

Definition at line 110 of file iop3xx.h.

#define IOP3XX_ATUDID   (volatile u16 *)IOP3XX_REG_ADDR(0x0102)

Definition at line 53 of file iop3xx.h.

#define IOP3XX_ATUHTR   (volatile u8 *)IOP3XX_REG_ADDR(0x010e)

Definition at line 60 of file iop3xx.h.

#define IOP3XX_ATUILR   (volatile u8 *)IOP3XX_REG_ADDR(0x013c)

Definition at line 71 of file iop3xx.h.

#define IOP3XX_ATUIMR   (volatile u32 *)IOP3XX_REG_ADDR(0x018c)

Definition at line 91 of file iop3xx.h.

#define IOP3XX_ATUIPR   (volatile u8 *)IOP3XX_REG_ADDR(0x013d)

Definition at line 72 of file iop3xx.h.

#define IOP3XX_ATUISR   (volatile u32 *)IOP3XX_REG_ADDR(0x0188)

Definition at line 90 of file iop3xx.h.

#define IOP3XX_ATULT   (volatile u8 *)IOP3XX_REG_ADDR(0x010d)

Definition at line 59 of file iop3xx.h.

#define IOP3XX_ATUMGNT   (volatile u8 *)IOP3XX_REG_ADDR(0x013e)

Definition at line 73 of file iop3xx.h.

#define IOP3XX_ATUMLAT   (volatile u8 *)IOP3XX_REG_ADDR(0x013f)

Definition at line 74 of file iop3xx.h.

#define IOP3XX_ATURID   (volatile u8 *)IOP3XX_REG_ADDR(0x0108)

Definition at line 56 of file iop3xx.h.

#define IOP3XX_ATUSR   (volatile u16 *)IOP3XX_REG_ADDR(0x0106)

Definition at line 55 of file iop3xx.h.

#define IOP3XX_ATUVID   (volatile u16 *)IOP3XX_REG_ADDR(0x0100)

Definition at line 52 of file iop3xx.h.

#define IOP3XX_DMA_PHYS_BASE (   chan)
Value:
(0x400 + (chan << 6)))

Definition at line 140 of file iop3xx.h.

#define IOP3XX_DMA_UPPER_PA (   chan)    (IOP3XX_DMA_PHYS_BASE(chan) + 0x27)

Definition at line 142 of file iop3xx.h.

#define IOP3XX_EMISR   (volatile u32 *)IOP3XX_REG_ADDR(0x0708)

Definition at line 166 of file iop3xx.h.

#define IOP3XX_ERBAR   (volatile u32 *)IOP3XX_REG_ADDR(0x0130)

Definition at line 70 of file iop3xx.h.

#define IOP3XX_ERLR   (volatile u32 *)IOP3XX_REG_ADDR(0x0148)

Definition at line 77 of file iop3xx.h.

#define IOP3XX_ERTVR   (volatile u32 *)IOP3XX_REG_ADDR(0x014c)

Definition at line 78 of file iop3xx.h.

#define IOP3XX_ESR   (volatile u32 *)IOP3XX_REG_ADDR(0x0704)

Definition at line 165 of file iop3xx.h.

#define IOP3XX_GPID   (volatile u32 *)IOP3XX_GPIO_REG(0x0004)

Definition at line 173 of file iop3xx.h.

#define IOP3XX_GPIO_LINE (   x)    (x)

Definition at line 25 of file iop3xx.h.

#define IOP3XX_GPOD   (volatile u32 *)IOP3XX_GPIO_REG(0x0008)

Definition at line 174 of file iop3xx.h.

#define IOP3XX_GPOE   (volatile u32 *)IOP3XX_GPIO_REG(0x0000)

Definition at line 172 of file iop3xx.h.

#define IOP3XX_GTMR   (volatile u32 *)IOP3XX_REG_ADDR(0x0700)

Definition at line 164 of file iop3xx.h.

#define IOP3XX_GTSR   (volatile u32 *)IOP3XX_REG_ADDR(0x0710)

Definition at line 167 of file iop3xx.h.

#define IOP3XX_IABAR0   (volatile u32 *)IOP3XX_REG_ADDR(0x0110)

Definition at line 62 of file iop3xx.h.

#define IOP3XX_IABAR1   (volatile u32 *)IOP3XX_REG_ADDR(0x0118)

Definition at line 64 of file iop3xx.h.

#define IOP3XX_IABAR2   (volatile u32 *)IOP3XX_REG_ADDR(0x0120)

Definition at line 66 of file iop3xx.h.

#define IOP3XX_IABAR3   (volatile u32 *)IOP3XX_REG_ADDR(0x0190)

Definition at line 92 of file iop3xx.h.

#define IOP3XX_IALR0   (volatile u32 *)IOP3XX_REG_ADDR(0x0140)

Definition at line 75 of file iop3xx.h.

#define IOP3XX_IALR1   (volatile u32 *)IOP3XX_REG_ADDR(0x0150)

Definition at line 79 of file iop3xx.h.

#define IOP3XX_IALR2   (volatile u32 *)IOP3XX_REG_ADDR(0x0154)

Definition at line 80 of file iop3xx.h.

#define IOP3XX_IALR3   (volatile u32 *)IOP3XX_REG_ADDR(0x0198)

Definition at line 94 of file iop3xx.h.

#define IOP3XX_IAR   (volatile u32 *)IOP3XX_REG_ADDR(0x0380)

Definition at line 137 of file iop3xx.h.

#define IOP3XX_IATVR0   (volatile u32 *)IOP3XX_REG_ADDR(0x0144)

Definition at line 76 of file iop3xx.h.

#define IOP3XX_IATVR2   (volatile u32 *)IOP3XX_REG_ADDR(0x0158)

Definition at line 81 of file iop3xx.h.

#define IOP3XX_IATVR3   (volatile u32 *)IOP3XX_REG_ADDR(0x019c)

Definition at line 95 of file iop3xx.h.

#define IOP3XX_IAUBAR0   (volatile u32 *)IOP3XX_REG_ADDR(0x0114)

Definition at line 63 of file iop3xx.h.

#define IOP3XX_IAUBAR1   (volatile u32 *)IOP3XX_REG_ADDR(0x011c)

Definition at line 65 of file iop3xx.h.

#define IOP3XX_IAUBAR2   (volatile u32 *)IOP3XX_REG_ADDR(0x0124)

Definition at line 67 of file iop3xx.h.

#define IOP3XX_IAUBAR3   (volatile u32 *)IOP3XX_REG_ADDR(0x0194)

Definition at line 93 of file iop3xx.h.

#define IOP3XX_IBMR0   (volatile u32 *)IOP3XX_REG_ADDR(0x1694)

Definition at line 206 of file iop3xx.h.

#define IOP3XX_IBMR1   (volatile u32 *)IOP3XX_REG_ADDR(0x16b4)

Definition at line 211 of file iop3xx.h.

#define IOP3XX_ICR0   (volatile u32 *)IOP3XX_REG_ADDR(0x1680)

Definition at line 202 of file iop3xx.h.

#define IOP3XX_ICR1   (volatile u32 *)IOP3XX_REG_ADDR(0x16a0)

Definition at line 207 of file iop3xx.h.

#define IOP3XX_IDBR0   (volatile u32 *)IOP3XX_REG_ADDR(0x168c)

Definition at line 205 of file iop3xx.h.

#define IOP3XX_IDBR1   (volatile u32 *)IOP3XX_REG_ADDR(0x16ac)

Definition at line 210 of file iop3xx.h.

#define IOP3XX_IDR   (volatile u32 *)IOP3XX_REG_ADDR(0x0320)

Definition at line 121 of file iop3xx.h.

#define IOP3XX_IFHPR   (volatile u32 *)IOP3XX_REG_ADDR(0x0360)

Definition at line 129 of file iop3xx.h.

#define IOP3XX_IFTPR   (volatile u32 *)IOP3XX_REG_ADDR(0x0364)

Definition at line 130 of file iop3xx.h.

#define IOP3XX_IIMR   (volatile u32 *)IOP3XX_REG_ADDR(0x0328)

Definition at line 123 of file iop3xx.h.

#define IOP3XX_IISR   (volatile u32 *)IOP3XX_REG_ADDR(0x0324)

Definition at line 122 of file iop3xx.h.

#define IOP3XX_IMR0   (volatile u32 *)IOP3XX_REG_ADDR(0x0310)

Definition at line 117 of file iop3xx.h.

#define IOP3XX_IMR1   (volatile u32 *)IOP3XX_REG_ADDR(0x0314)

Definition at line 118 of file iop3xx.h.

#define IOP3XX_INIT_ATU_DEFAULT   0

Definition at line 112 of file iop3xx.h.

#define IOP3XX_INIT_ATU_DISABLE   -1

Definition at line 113 of file iop3xx.h.

#define IOP3XX_INIT_ATU_ENABLE   1

Definition at line 114 of file iop3xx.h.

#define IOP3XX_IPHPR   (volatile u32 *)IOP3XX_REG_ADDR(0x0368)

Definition at line 131 of file iop3xx.h.

#define IOP3XX_IPTPR   (volatile u32 *)IOP3XX_REG_ADDR(0x036c)

Definition at line 132 of file iop3xx.h.

#define IOP3XX_ISAR0   (volatile u32 *)IOP3XX_REG_ADDR(0x1688)

Definition at line 204 of file iop3xx.h.

#define IOP3XX_ISAR1   (volatile u32 *)IOP3XX_REG_ADDR(0x16a8)

Definition at line 209 of file iop3xx.h.

#define IOP3XX_ISR0   (volatile u32 *)IOP3XX_REG_ADDR(0x1684)

Definition at line 203 of file iop3xx.h.

#define IOP3XX_ISR1   (volatile u32 *)IOP3XX_REG_ADDR(0x16a4)

Definition at line 208 of file iop3xx.h.

#define IOP3XX_MUCR   (volatile u32 *)IOP3XX_REG_ADDR(0x0350)

Definition at line 127 of file iop3xx.h.

#define IOP3XX_OCCAR   (volatile u32 *)IOP3XX_REG_ADDR(0x01a4)

Definition at line 96 of file iop3xx.h.

#define IOP3XX_OCCDR   (volatile u32 *)IOP3XX_REG_ADDR(0x01ac)

Definition at line 97 of file iop3xx.h.

#define IOP3XX_ODR   (volatile u32 *)IOP3XX_REG_ADDR(0x032c)

Definition at line 124 of file iop3xx.h.

#define IOP3XX_OFHPR   (volatile u32 *)IOP3XX_REG_ADDR(0x0370)

Definition at line 133 of file iop3xx.h.

#define IOP3XX_OFTPR   (volatile u32 *)IOP3XX_REG_ADDR(0x0374)

Definition at line 134 of file iop3xx.h.

#define IOP3XX_OIMR   (volatile u32 *)IOP3XX_REG_ADDR(0x0334)

Definition at line 126 of file iop3xx.h.

#define IOP3XX_OIOWTVR   (volatile u32 *)IOP3XX_REG_ADDR(0x015c)

Definition at line 82 of file iop3xx.h.

#define IOP3XX_OISR   (volatile u32 *)IOP3XX_REG_ADDR(0x0330)

Definition at line 125 of file iop3xx.h.

#define IOP3XX_OMR0   (volatile u32 *)IOP3XX_REG_ADDR(0x0318)

Definition at line 119 of file iop3xx.h.

#define IOP3XX_OMR1   (volatile u32 *)IOP3XX_REG_ADDR(0x031c)

Definition at line 120 of file iop3xx.h.

#define IOP3XX_OMWTVR0   (volatile u32 *)IOP3XX_REG_ADDR(0x0160)

Definition at line 83 of file iop3xx.h.

#define IOP3XX_OMWTVR1   (volatile u32 *)IOP3XX_REG_ADDR(0x0168)

Definition at line 85 of file iop3xx.h.

#define IOP3XX_OPHPR   (volatile u32 *)IOP3XX_REG_ADDR(0x0378)

Definition at line 135 of file iop3xx.h.

#define IOP3XX_OPTPR   (volatile u32 *)IOP3XX_REG_ADDR(0x037c)

Definition at line 136 of file iop3xx.h.

#define IOP3XX_OUDWTVR   (volatile u32 *)IOP3XX_REG_ADDR(0x0178)

Definition at line 87 of file iop3xx.h.

#define IOP3XX_OUMWTVR0   (volatile u32 *)IOP3XX_REG_ADDR(0x0164)

Definition at line 84 of file iop3xx.h.

#define IOP3XX_OUMWTVR1   (volatile u32 *)IOP3XX_REG_ADDR(0x016c)

Definition at line 86 of file iop3xx.h.

#define IOP3XX_PBBAR0   (volatile u32 *)IOP3XX_REG_ADDR(0x0688)

Definition at line 147 of file iop3xx.h.

#define IOP3XX_PBBAR1   (volatile u32 *)IOP3XX_REG_ADDR(0x0690)

Definition at line 149 of file iop3xx.h.

#define IOP3XX_PBBAR2   (volatile u32 *)IOP3XX_REG_ADDR(0x0698)

Definition at line 151 of file iop3xx.h.

#define IOP3XX_PBBAR3   (volatile u32 *)IOP3XX_REG_ADDR(0x06a0)

Definition at line 153 of file iop3xx.h.

#define IOP3XX_PBBAR4   (volatile u32 *)IOP3XX_REG_ADDR(0x06a8)

Definition at line 155 of file iop3xx.h.

#define IOP3XX_PBBAR5   (volatile u32 *)IOP3XX_REG_ADDR(0x06b0)

Definition at line 157 of file iop3xx.h.

#define IOP3XX_PBCR   (volatile u32 *)IOP3XX_REG_ADDR(0x0680)

Definition at line 145 of file iop3xx.h.

#define IOP3XX_PBISR   (volatile u32 *)IOP3XX_REG_ADDR(0x0684)

Definition at line 146 of file iop3xx.h.

#define IOP3XX_PBLR0   (volatile u32 *)IOP3XX_REG_ADDR(0x068c)

Definition at line 148 of file iop3xx.h.

#define IOP3XX_PBLR1   (volatile u32 *)IOP3XX_REG_ADDR(0x0694)

Definition at line 150 of file iop3xx.h.

#define IOP3XX_PBLR2   (volatile u32 *)IOP3XX_REG_ADDR(0x069c)

Definition at line 152 of file iop3xx.h.

#define IOP3XX_PBLR3   (volatile u32 *)IOP3XX_REG_ADDR(0x06a4)

Definition at line 154 of file iop3xx.h.

#define IOP3XX_PBLR4   (volatile u32 *)IOP3XX_REG_ADDR(0x06ac)

Definition at line 156 of file iop3xx.h.

#define IOP3XX_PBLR5   (volatile u32 *)IOP3XX_REG_ADDR(0x06b4)

Definition at line 158 of file iop3xx.h.

#define IOP3XX_PCI_LOWER_IO_BA   0x00000000

Definition at line 221 of file iop3xx.h.

#define IOP3XX_PCI_LOWER_IO_PA   0x90000000

Definition at line 220 of file iop3xx.h.

#define IOP3XX_PCI_LOWER_MEM_PA   0x80000000

Definition at line 217 of file iop3xx.h.

#define IOP3XX_PCI_MEM_WINDOW_SIZE   0x08000000

Definition at line 218 of file iop3xx.h.

#define IOP3XX_PCIIRSR   (volatile u32 *)IOP3XX_REG_ADDR(0x01ec)

Definition at line 107 of file iop3xx.h.

#define IOP3XX_PCIXCAPID   (volatile u8 *)IOP3XX_REG_ADDR(0x01e0)

Definition at line 103 of file iop3xx.h.

#define IOP3XX_PCIXCMD   (volatile u16 *)IOP3XX_REG_ADDR(0x01e2)

Definition at line 105 of file iop3xx.h.

#define IOP3XX_PCIXNEXT   (volatile u8 *)IOP3XX_REG_ADDR(0x01e1)

Definition at line 104 of file iop3xx.h.

#define IOP3XX_PCIXSR   (volatile u32 *)IOP3XX_REG_ADDR(0x01e4)

Definition at line 106 of file iop3xx.h.

#define IOP3XX_PCSR   (volatile u32 *)IOP3XX_REG_ADDR(0x0184)

Definition at line 89 of file iop3xx.h.

#define IOP3XX_PCSR_IN_Q_BUSY   (1 << 14)

Definition at line 109 of file iop3xx.h.

#define IOP3XX_PCSR_OUT_Q_BUSY   (1 << 15)

Definition at line 108 of file iop3xx.h.

#define IOP3XX_PDSCR   (volatile u32 *)IOP3XX_REG_ADDR(0x01bc)

Definition at line 98 of file iop3xx.h.

#define IOP3XX_PERCR0   (volatile u32 *)IOP3XX_REG_ADDR(0x0710)

Definition at line 169 of file iop3xx.h.

#define IOP3XX_PERIPHERAL_PHYS_BASE   0xffffe000

Definition at line 39 of file iop3xx.h.

#define IOP3XX_PERIPHERAL_SIZE   0x00002000

Definition at line 41 of file iop3xx.h.

#define IOP3XX_PERIPHERAL_UPPER_PA
Value:
IOP3XX_PERIPHERAL_SIZE - 1)

Definition at line 42 of file iop3xx.h.

#define IOP3XX_PERIPHERAL_UPPER_VA
Value:
IOP3XX_PERIPHERAL_SIZE - 1)

Definition at line 44 of file iop3xx.h.

#define IOP3XX_PERIPHERAL_VIRT_BASE   0xfeffe000

Definition at line 40 of file iop3xx.h.

#define IOP3XX_PMBR0   (volatile u32 *)IOP3XX_REG_ADDR(0x06c0)

Definition at line 159 of file iop3xx.h.

#define IOP3XX_PMBR1   (volatile u32 *)IOP3XX_REG_ADDR(0x06e0)

Definition at line 160 of file iop3xx.h.

#define IOP3XX_PMBR2   (volatile u32 *)IOP3XX_REG_ADDR(0x06e4)

Definition at line 161 of file iop3xx.h.

#define IOP3XX_PMCAPID   (volatile u8 *)IOP3XX_REG_ADDR(0x01c0)

Definition at line 99 of file iop3xx.h.

#define IOP3XX_PMMR_PHYS_TO_VIRT (   addr)
Value:

Definition at line 46 of file iop3xx.h.

#define IOP3XX_PMNEXT   (volatile u8 *)IOP3XX_REG_ADDR(0x01c1)

Definition at line 100 of file iop3xx.h.

#define IOP3XX_QBAR   (volatile u32 *)IOP3XX_REG_ADDR(0x0354)

Definition at line 128 of file iop3xx.h.

#define IOP3XX_REG_ADDR (   reg)    (IOP3XX_PERIPHERAL_VIRT_BASE + (reg))

Definition at line 49 of file iop3xx.h.

#define IOP3XX_TU_TCR0   (volatile u32 *)IOP3XX_TIMER_REG(0x0008)

Definition at line 179 of file iop3xx.h.

#define IOP3XX_TU_TCR1   (volatile u32 *)IOP3XX_TIMER_REG(0x000c)

Definition at line 180 of file iop3xx.h.

#define IOP3XX_TU_TISR   (volatile u32 *)IOP3XX_TIMER_REG(0x0018)

Definition at line 183 of file iop3xx.h.

#define IOP3XX_TU_TMR0   (volatile u32 *)IOP3XX_TIMER_REG(0x0000)

Definition at line 177 of file iop3xx.h.

#define IOP3XX_TU_TMR1   (volatile u32 *)IOP3XX_TIMER_REG(0x0004)

Definition at line 178 of file iop3xx.h.

#define IOP3XX_TU_TRR0   (volatile u32 *)IOP3XX_TIMER_REG(0x0010)

Definition at line 181 of file iop3xx.h.

#define IOP3XX_TU_TRR1   (volatile u32 *)IOP3XX_TIMER_REG(0x0014)

Definition at line 182 of file iop3xx.h.

#define IOP3XX_TU_WDTCR   (volatile u32 *)IOP3XX_TIMER_REG(0x001c)

Definition at line 184 of file iop3xx.h.

#define IOP_RCSR_WDT   (0)

Definition at line 304 of file iop3xx.h.

#define IOP_TMR_EN   0x02

Definition at line 185 of file iop3xx.h.

#define IOP_TMR_PRIVILEGED   0x08

Definition at line 187 of file iop3xx.h.

#define IOP_TMR_RATIO_1_1   0x00

Definition at line 188 of file iop3xx.h.

#define IOP_TMR_RELOAD   0x04

Definition at line 186 of file iop3xx.h.

#define IOP_WDTCR_DIS   (IOP_WDTCR_EN)

Definition at line 195 of file iop3xx.h.

#define IOP_WDTCR_DIS_ARM   (IOP_WDTCR_EN_ARM)

Definition at line 194 of file iop3xx.h.

#define IOP_WDTCR_EN   0xe1e1e1e1

Definition at line 192 of file iop3xx.h.

#define IOP_WDTCR_EN_ARM   0x1e1e1e1e

Definition at line 191 of file iop3xx.h.

Function Documentation

unsigned long get_iop_tick_rate ( void  )

Definition at line 135 of file time.c.

void gpio_line_config ( int  line,
int  direction 
)

Definition at line 21 of file gpio.c.

int gpio_line_get ( int  line)

Definition at line 35 of file gpio.c.

void gpio_line_set ( int  line,
int  value 
)

Definition at line 41 of file gpio.c.

int iop3xx_get_init_atu ( void  )

Definition at line 316 of file pci.c.

void iop3xx_map_io ( void  )

Definition at line 31 of file setup.c.

void iop3xx_restart ( char  ,
const char  
)

Definition at line 14 of file restart.c.

void iop_init_cp6_handler ( void  )

Definition at line 48 of file cp6.c.

void iop_init_time ( unsigned long  tickrate)

Definition at line 141 of file time.c.

Variable Documentation

int init_atu

Definition at line 49 of file pci.c.

struct platform_device iop3xx_aau_channel

Definition at line 163 of file adma.c.

struct platform_device iop3xx_dma_0_channel

Definition at line 139 of file adma.c.

struct platform_device iop3xx_dma_1_channel

Definition at line 151 of file adma.c.

struct platform_device iop3xx_i2c0_device

Definition at line 53 of file i2c.c.

struct platform_device iop3xx_i2c1_device

Definition at line 74 of file i2c.c.