RTEMS  5.0.0
Modules | Files | Macros | Functions | Variables

MVME3100 Board Support Package. More...

Modules

 BSP_VME_INSTALL_IRQ_MGR Support
 BSP_VME_INSTALL_IRQ_MGR Support Package.
 
 Definitions
 rtems_irq_number Definitions
 
 Low-level Driver API
 This API provides driver access to applications that want to use e.g., the second ethernet interface independently from the BSD TCP/IP stack. E.g., for raw ethernet packet communication...
 

Files

file  bsp.h
 Global BSP definitions.
 

Macros

#define BSP_INTERRUPT_STACK_SIZE   (16 * 1024)
 
#define _IO_BASE   0xe0000000 /* Motload's PCI IO base */
 
#define _ISA_MEM_BASE   CHRP_ISA_MEM_BASE
 
#define PCI_DRAM_OFFSET   CHRP_PCI_DRAM_OFFSET
 
#define PCI_MEM_BASE   0
 
#define PCI_MEM_WIN0   0x80000000
 
#define BSP_OPEN_PIC_BASE_OFFSET   0x40000
 
#define BSP_OPEN_PIC_BIG_ENDIAN
 
#define BSP_8540_CCSR_BASE   (0xe1000000)
 
#define BSP_UART_IOBASE_COM1   (BSP_8540_CCSR_BASE+0x4500)
 
#define BSP_UART_IOBASE_COM2   (BSP_8540_CCSR_BASE+0x4600)
 
#define PCI_CONFIG_ADDR   (BSP_8540_CCSR_BASE+0x8000)
 
#define PCI_CONFIG_DATA   (BSP_8540_CCSR_BASE+0x8004)
 
#define PCI_CONFIG_WR_ADDR(addr, val)   out_be32((uint32_t*)(addr), (val))
 
#define BSP_CONSOLE_PORT   BSP_UART_COM1
 
#define BSP_UART_BAUD_BASE   (-9600) /* use existing divisor to determine clock rate */
 
#define BSP_UART_USE_SHARED_IRQS
 
#define BSP_MVME3100_IRQ_DETECT_REG   ((volatile uint8_t *)0xe2000007)
 
#define BSP_MVME3100_IRQ_DETECT_REG   ((volatile uint8_t *)0xe2000007)
 
#define BSP_VPD_I2C_ADDR   (0xA8>>1) /* the VPD EEPROM */
 
#define BSP_USR0_I2C_ADDR   (0xA4>>1) /* the 1st user EEPROM */
 
#define BSP_USR1_I2C_ADDR   (0xA6>>1) /* the 2nd user EEPROM */
 
#define BSP_THM_I2C_ADDR   (0x90>>1) /* the DS1621 temperature sensor & thermostat */
 
#define BSP_RTC_I2C_ADDR   (0xD0>>1) /* the DS1375 wall-clock */
 
#define BSP_I2C_BUS_DESCRIPTOR   mpc8540_i2c_bus_descriptor
 
#define BSP_I2C_BUS0_NAME   "/dev/i2c0"
 
#define BSP_I2C_VPD_EEPROM_NAME   "vpd-eeprom"
 
#define BSP_I2C_USR_EEPROM_NAME   "usr-eeprom"
 
#define BSP_I2C_USR1_EEPROM_NAME   "usr1-eeprom"
 
#define BSP_I2C_DS1621_NAME   "ds1621"
 
#define BSP_I2C_THM_NAME   BSP_I2C_DS1621_NAME
 
#define BSP_I2C_DS1621_RAW_NAME   "ds1621-raw"
 
#define BSP_I2C_DS1375_RAW_NAME   "ds1375-raw"
 
#define BSP_I2C_RTC_RAW_NAME   BSP_I2C_DS1375_RAW_NAME
 
#define BSP_I2C_VPD_EEPROM_DEV_NAME   (BSP_I2C_BUS0_NAME "." BSP_I2C_VPD_EEPROM_NAME)
 
#define BSP_I2C_USR_EEPROM_DEV_NAME   (BSP_I2C_BUS0_NAME "." BSP_I2C_USR_EEPROM_NAME)
 
#define BSP_I2C_USR1_EEPROM_DEV_NAME   (BSP_I2C_BUS0_NAME "." BSP_I2C_USR1_EEPROM_NAME)
 
#define BSP_I2C_DS1621_DEV_NAME   (BSP_I2C_BUS0_NAME "." BSP_I2C_DS1621_NAME)
 
#define BSP_I2C_THM_DEV_NAME   BSP_I2C_DS1621_DEV_NAME
 
#define BSP_I2C_DS1621_RAW_DEV_NAME   (BSP_I2C_BUS0_NAME "." BSP_I2C_DS1621_RAW_NAME)
 
#define BSP_I2C_DS1375_RAW_DEV_NAME   (BSP_I2C_BUS0_NAME "." BSP_I2C_DS1375_RAW_NAME)
 
#define BSP_EEPROM_BOOTPARMS_NAME   BSP_I2C_USR1_EEPROM_DEV_NAME
 
#define BSP_EEPROM_BOOTPARMS_SIZE   1024
 
#define BSP_EEPROM_BOOTPARMS_OFFSET   0
 
#define BSP_BOOTPARMS_WRITE_ENABLE()   do { BSP_eeprom_write_enable(); } while (0)
 
#define BSP_BOOTPARMS_WRITE_DISABLE()   do { BSP_eeprom_write_protect();} while (0)
 
#define BSP_MVME3100_SYS_CR   ((volatile uint8_t *)0xe2000001)
 
#define BSP_MVME3100_SYS_CR_RESET_MSK   (7<<5)
 
#define BSP_MVME3100_SYS_CR_RESET   (5<<5)
 
#define BSP_MVME3100_SYS_CR_EEPROM_WP   (1<<1)
 
#define BSP_MVME3100_SYS_CR_TSTAT_MSK   (1<<0)
 
#define BSP_MVME3100_SYS_IND_REG   ((volatile uint8_t *)0xe2000002)
 
#define BSP_LED_BRD_FAIL   (1<<0)
 
#define BSP_LED_USR1   (1<<1)
 
#define BSP_LED_USR2   (1<<2)
 
#define BSP_LED_USR3   (1<<3)
 
#define BSP_MVME3100_FLASH_CSR   ((volatile uint8_t *)0xe2000003)
 
#define BSP_MVME3100_FLASH_CSR_FLASH_RDY   (1<<0)
 
#define BSP_MVME3100_FLASH_CSR_FBT_BLK_SEL   (1<<1)
 
#define BSP_MVME3100_FLASH_CSR_F_WP_HW   (1<<2)
 
#define BSP_MVME3100_FLASH_CSR_F_WP_SW   (1<<3)
 
#define BSP_MVME3100_FLASH_CSR_MAP_SEL   (1<<4)
 
#define BSP_Convert_decrementer(_value)   ((unsigned long long) ((((unsigned long long)BSP_time_base_divisor) * 1000000ULL) /((unsigned long long) BSP_bus_frequency)) * ((unsigned long long) (_value)))
 
#define RTEMS_BSP_NETWORK_DRIVER_NAME   "tse1"
 
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH   rtems_tsec_attach
 

Functions

int BSP_i2c_initialize (void)
 
uint8_t BSP_setSysReg (volatile uint8_t *r, uint8_t mask)
 
uint8_t BSP_clrSysReg (volatile uint8_t *r, uint8_t mask)
 
uint8_t BSP_eeprom_write_protect (void)
 
uint8_t BSP_eeprom_write_enable (void)
 
uint8_t BSP_setLEDs (uint8_t mask)
 
uint8_t BSP_clrLEDs (uint8_t mask)
 
int BSP_disconnect_clock_handler (void)
 
int BSP_connect_clock_handler (void)
 
unsigned long _BSP_clear_hostbridge_errors (int enableMCP, int quiet)
 
void BSP_motload_pci_fixup (void)
 
int rtems_tsec_attach (struct rtems_bsdnet_ifconfig *ifcfg, int attaching)
 
char * save_boot_params (void *r3, void *r4, void *r5, char *cmdline_start, char *cmdline_end)
 
void zero_bss (void)
 
void BSP_vme_config (void)
 
void BSP_pciConfigDump_early (void)
 

Variables

unsigned int BSP_mem_size
 
unsigned int BSP_bus_frequency
 
unsigned int BSP_processor_frequency
 
unsigned int BSP_time_base_divisor
 
char * BSP_commandline_string
 

Detailed Description

MVME3100 Board Support Package.