Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
tsi108.h File Reference
#include <asm/pci-bridge.h>

Go to the source code of this file.

Data Structures

struct  hw_info
 

Macros

#define TSI108_REG_SIZE   (0x10000)
 
#define TSI108_HLP_SIZE   0x1000
 
#define TSI108_PCI_SIZE   0x1000
 
#define TSI108_CLK_SIZE   0x1000
 
#define TSI108_PB_SIZE   0x1000
 
#define TSI108_SD_SIZE   0x1000
 
#define TSI108_DMA_SIZE   0x1000
 
#define TSI108_ETH_SIZE   0x1000
 
#define TSI108_I2C_SIZE   0x400
 
#define TSI108_MPIC_SIZE   0x400
 
#define TSI108_UART0_SIZE   0x200
 
#define TSI108_GPIO_SIZE   0x200
 
#define TSI108_UART1_SIZE   0x200
 
#define TSI108_HLP_OFFSET   0x0000
 
#define TSI108_PCI_OFFSET   0x1000
 
#define TSI108_CLK_OFFSET   0x2000
 
#define TSI108_PB_OFFSET   0x3000
 
#define TSI108_SD_OFFSET   0x4000
 
#define TSI108_DMA_OFFSET   0x5000
 
#define TSI108_ETH_OFFSET   0x6000
 
#define TSI108_I2C_OFFSET   0x7000
 
#define TSI108_MPIC_OFFSET   0x7400
 
#define TSI108_UART0_OFFSET   0x7800
 
#define TSI108_GPIO_OFFSET   0x7A00
 
#define TSI108_UART1_OFFSET   0x7C00
 
#define TSI108_PCI_CSR   (0x004)
 
#define TSI108_PCI_IRP_CFG_CTL   (0x180)
 
#define TSI108_PCI_IRP_STAT   (0x184)
 
#define TSI108_PCI_IRP_ENABLE   (0x188)
 
#define TSI108_PCI_IRP_INTAD   (0x18C)
 
#define TSI108_PCI_IRP_STAT_P_INT   (0x00400000)
 
#define TSI108_PCI_IRP_ENABLE_P_INT   (0x00400000)
 
#define TSI108_CG_PWRUP_STATUS   (0x234)
 
#define TSI108_PB_ISR   (0x00C)
 
#define TSI108_PB_ERRCS   (0x404)
 
#define TSI108_PB_AERR   (0x408)
 
#define TSI108_PB_ERRCS_ES   (1 << 1)
 
#define TSI108_PB_ISR_PBS_RD_ERR   (1 << 8)
 
#define TSI108_PCI_CFG_SIZE   (0x01000000)
 
#define TSI108_PHY_MV88E   0 /* Marvel 88Exxxx PHY */
 
#define TSI108_PHY_BCM54XX   1 /* Broardcom BCM54xx PHY */
 

Functions

int tsi108_bridge_init (struct pci_controller *hose, uint phys_csr_base)
 
unsigned long tsi108_get_mem_size (void)
 
unsigned long tsi108_get_cpu_clk (void)
 
unsigned long tsi108_get_sdc_clk (void)
 
int tsi108_direct_write_config (struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 val)
 
int tsi108_direct_read_config (struct pci_bus *bus, unsigned int devfn, int offset, int len, u32 *val)
 
void tsi108_clear_pci_error (u32 pci_cfg_base)
 
phys_addr_t get_csrbase (void)
 
u32 get_vir_csrbase (void)
 

Variables

u32 tsi108_pci_cfg_base
 
u32 tsi108_csr_vir_base
 

Macro Definition Documentation

#define TSI108_CG_PWRUP_STATUS   (0x234)

Definition at line 62 of file tsi108.h.

#define TSI108_CLK_OFFSET   0x2000

Definition at line 41 of file tsi108.h.

#define TSI108_CLK_SIZE   0x1000

Definition at line 27 of file tsi108.h.

#define TSI108_DMA_OFFSET   0x5000

Definition at line 44 of file tsi108.h.

#define TSI108_DMA_SIZE   0x1000

Definition at line 30 of file tsi108.h.

#define TSI108_ETH_OFFSET   0x6000

Definition at line 45 of file tsi108.h.

#define TSI108_ETH_SIZE   0x1000

Definition at line 31 of file tsi108.h.

#define TSI108_GPIO_OFFSET   0x7A00

Definition at line 49 of file tsi108.h.

#define TSI108_GPIO_SIZE   0x200

Definition at line 35 of file tsi108.h.

#define TSI108_HLP_OFFSET   0x0000

Definition at line 39 of file tsi108.h.

#define TSI108_HLP_SIZE   0x1000

Definition at line 25 of file tsi108.h.

#define TSI108_I2C_OFFSET   0x7000

Definition at line 46 of file tsi108.h.

#define TSI108_I2C_SIZE   0x400

Definition at line 32 of file tsi108.h.

#define TSI108_MPIC_OFFSET   0x7400

Definition at line 47 of file tsi108.h.

#define TSI108_MPIC_SIZE   0x400

Definition at line 33 of file tsi108.h.

#define TSI108_PB_AERR   (0x408)

Definition at line 66 of file tsi108.h.

#define TSI108_PB_ERRCS   (0x404)

Definition at line 65 of file tsi108.h.

#define TSI108_PB_ERRCS_ES   (1 << 1)

Definition at line 68 of file tsi108.h.

#define TSI108_PB_ISR   (0x00C)

Definition at line 64 of file tsi108.h.

#define TSI108_PB_ISR_PBS_RD_ERR   (1 << 8)

Definition at line 69 of file tsi108.h.

#define TSI108_PB_OFFSET   0x3000

Definition at line 42 of file tsi108.h.

#define TSI108_PB_SIZE   0x1000

Definition at line 28 of file tsi108.h.

#define TSI108_PCI_CFG_SIZE   (0x01000000)

Definition at line 71 of file tsi108.h.

#define TSI108_PCI_CSR   (0x004)

Definition at line 53 of file tsi108.h.

#define TSI108_PCI_IRP_CFG_CTL   (0x180)

Definition at line 54 of file tsi108.h.

#define TSI108_PCI_IRP_ENABLE   (0x188)

Definition at line 56 of file tsi108.h.

#define TSI108_PCI_IRP_ENABLE_P_INT   (0x00400000)

Definition at line 60 of file tsi108.h.

#define TSI108_PCI_IRP_INTAD   (0x18C)

Definition at line 57 of file tsi108.h.

#define TSI108_PCI_IRP_STAT   (0x184)

Definition at line 55 of file tsi108.h.

#define TSI108_PCI_IRP_STAT_P_INT   (0x00400000)

Definition at line 59 of file tsi108.h.

#define TSI108_PCI_OFFSET   0x1000

Definition at line 40 of file tsi108.h.

#define TSI108_PCI_SIZE   0x1000

Definition at line 26 of file tsi108.h.

#define TSI108_PHY_BCM54XX   1 /* Broardcom BCM54xx PHY */

Definition at line 80 of file tsi108.h.

#define TSI108_PHY_MV88E   0 /* Marvel 88Exxxx PHY */

Definition at line 79 of file tsi108.h.

#define TSI108_REG_SIZE   (0x10000)

Definition at line 22 of file tsi108.h.

#define TSI108_SD_OFFSET   0x4000

Definition at line 43 of file tsi108.h.

#define TSI108_SD_SIZE   0x1000

Definition at line 29 of file tsi108.h.

#define TSI108_UART0_OFFSET   0x7800

Definition at line 48 of file tsi108.h.

#define TSI108_UART0_SIZE   0x200

Definition at line 34 of file tsi108.h.

#define TSI108_UART1_OFFSET   0x7C00

Definition at line 50 of file tsi108.h.

#define TSI108_UART1_SIZE   0x200

Definition at line 36 of file tsi108.h.

Function Documentation

phys_addr_t get_csrbase ( void  )

Definition at line 41 of file tsi108_dev.c.

u32 get_vir_csrbase ( void  )

Definition at line 58 of file tsi108_dev.c.

int tsi108_bridge_init ( struct pci_controller hose,
uint  phys_csr_base 
)
void tsi108_clear_pci_error ( u32  pci_cfg_base)

Definition at line 97 of file tsi108_pci.c.

int tsi108_direct_read_config ( struct pci_bus bus,
unsigned int  devfn,
int  offset,
int  len,
u32 val 
)

Definition at line 147 of file tsi108_pci.c.

int tsi108_direct_write_config ( struct pci_bus bus,
unsigned int  devfn,
int  offset,
int  len,
u32  val 
)

Definition at line 61 of file tsi108_pci.c.

unsigned long tsi108_get_cpu_clk ( void  )
unsigned long tsi108_get_mem_size ( void  )
unsigned long tsi108_get_sdc_clk ( void  )

Variable Documentation

u32 tsi108_csr_vir_base

Definition at line 53 of file tsi108_pci.c.

u32 tsi108_pci_cfg_base

Definition at line 51 of file tsi108_pci.c.