RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Files | Macros | Functions | Variables

Motorola Board Support Package. More...

Files

file  bsp.h
 Global BSP definitions.
 

Macros

#define _IO_BASE   PREP_ISA_IO_BASE
 
#define _ISA_MEM_BASE   PREP_ISA_MEM_BASE
 
#define PCI_DRAM_OFFSET   PREP_PCI_DRAM_OFFSET
 
#define PCI_MEM_BASE   PREP_ISA_MEM_BASE
 
#define PCI_MEM_WIN0   0
 
#define BSP_HAS_PC_PCI
 
#define RTEMS_BSP_PCI_IO_REGION_BASE   0
 
#define RTEMS_BSP_PCI_MEM_REGION_BASE   PCI_DRAM_OFFSET
 
#define RTEMS_BSP_ADDR_PTR(_type)   uint ## _type ## _t __volatile*
 
#define RTEMS_BSP_ADDR_CPTR(_type)   const RTEMS_BSP_ADDR_PTR(_type)
 
#define RTEMS_BSP_ADDRESS_READ(_addr, _type)    *((RTEMS_BSP_ADDR_CPTR(_type)) (((RTEMS_BSP_ADDR_CPTR(8)) _addr) + PCI_DRAM_OFFSET))
 
#define RTEMS_BSP_ADDRESS_WRITE(_addr, _val, _type)    *((RTEMS_BSP_ADDR_PTR(_type)) (((RTEMS_BSP_ADDR_PTR(8)) _addr) + PCI_DRAM_OFFSET)) = (_val)
 
#define RTEMS_BSP_READ_1(_addr)   RTEMS_BSP_ADDRESS_READ(_addr, 8)
 
#define RTEMS_BSP_READ_2(_addr)   RTEMS_BSP_ADDRESS_READ(_addr, 16)
 
#define RTEMS_BSP_READ_4(_addr)   RTEMS_BSP_ADDRESS_READ(_addr, 32)
 
#define RTEMS_BSP_READ_8(_addr)   RTEMS_BSP_ADDRESS_READ(_addr, 64)
 
#define RTEMS_BSP_WRITE_1(_addr, _val)   RTEMS_BSP_ADDRESS_WRITE(_addr, _val, 8)
 
#define RTEMS_BSP_WRITE_2(_addr, _val)   RTEMS_BSP_ADDRESS_WRITE(_addr, _val, 16)
 
#define RTEMS_BSP_WRITE_4(_addr, _val)   RTEMS_BSP_ADDRESS_WRITE(_addr, _val, 32)
 
#define RTEMS_BSP_WRITE_8(_addr, _val)   RTEMS_BSP_ADDRESS_WRITE(_addr, _val, 64)
 
#define BSP_UART_IOBASE_COM1   ((_IO_BASE)+0x3f8)
 
#define BSP_UART_IOBASE_COM2   ((_IO_BASE)+0x2f8)
 
#define BSP_KBD_IOBASE   ((_IO_BASE)+0x60)
 
#define BSP_VGA_IOBASE   ((_IO_BASE)+0x3c0)
 
#define BSP_CONSOLE_PORT   BSP_UART_COM1
 
#define BSP_UART_BAUD_BASE   115200
 
#define BSP_PIC_DO_EOI   openpic_eoi(0)
 
#define outport_byte(port, value)   outb(value,port)
 
#define outport_word(port, value)   outw(value,port)
 
#define outport_long(port, value)   outl(value,port)
 
#define inport_byte(port, value)   (value = inb(port))
 
#define inport_word(port, value)   (value = inw(port))
 
#define inport_long(port, value)   (value = inl(port))
 
#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)))
 

Functions

int BSP_disconnect_clock_handler (void)
 
int BSP_connect_clock_handler (void)
 
unsigned long _BSP_clear_hostbridge_errors (int enableMCP, int quiet)
 
char * save_boot_params (void *r3, void *r4, void *r5, char *cmdline_start, char *cmdline_end)
 
void zero_bss (void)
 
void VIA_isa_bridge_interrupts_setup (void)
 

Variables

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

Detailed Description

Motorola Board Support Package.