15 #ifndef LIBBSP_POWERPC_MOTOROLA_POWERPC_BSP_H 16 #define LIBBSP_POWERPC_MOTOROLA_POWERPC_BSP_H 32 #include <libcpu/io.h> 93 #define _IO_BASE CHRP_ISA_IO_BASE 94 #define _ISA_MEM_BASE CHRP_ISA_MEM_BASE 96 #define PCI_DRAM_OFFSET CHRP_PCI_DRAM_OFFSET 98 #define PCI_MEM_BASE 0 100 #define PCI_MEM_WIN0 0x80000000 103 #define _IO_BASE PREP_ISA_IO_BASE 104 #define _ISA_MEM_BASE PREP_ISA_MEM_BASE 107 #define PCI_DRAM_OFFSET PREP_PCI_DRAM_OFFSET 109 #define PCI_MEM_BASE PREP_ISA_MEM_BASE 110 #define PCI_MEM_WIN0 0 112 #define PCI_DRAM_OFFSET 0 113 #define PCI_MEM_BASE 0 114 #define PCI_MEM_WIN0 PREP_ISA_MEM_BASE 127 #if defined(mvme2100) 128 #define BSP_UART_IOBASE_COM1 ((_IO_BASE)+0x01e10000) 130 #define BSP_OPEN_PIC_BASE_OFFSET 0x40000 132 #define MVME_HAS_DEC21140 134 #define BSP_UART_IOBASE_COM1 ((_IO_BASE)+0x3f8) 135 #define BSP_UART_IOBASE_COM2 ((_IO_BASE)+0x2f8) 138 #define BSP_KBD_IOBASE ((_IO_BASE)+0x60) 139 #define BSP_VGA_IOBASE ((_IO_BASE)+0x3c0) 142 #if defined(mvme2300) 143 #define MVME_HAS_DEC21140 147 #define BSP_CONSOLE_PORT BSP_UART_COM1 148 #define BSP_UART_BAUD_BASE 115200 150 struct rtems_bsdnet_ifconfig;
152 #if defined(MVME_HAS_DEC21140) 153 #define RTEMS_BSP_NETWORK_DRIVER_NAME "dc1" 154 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_dec21140_driver_attach 155 extern int rtems_dec21140_driver_attach(
struct rtems_bsdnet_ifconfig *,
int);
159 #define RTEMS_BSP_NETWORK_DRIVER_NAME "ne1" 160 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_ne_driver_attach 161 extern int rtems_ne_driver_attach(
struct rtems_bsdnet_ifconfig *,
int);
170 #define BSP_IDLE_TASK_BODY bsp_ppc_idle_task_body 171 extern void *bsp_ppc_idle_task_body(uintptr_t arg);
174 #include <bsp/openpic.h> 189 #define BSP_PIC_DO_EOI openpic_eoi(0) 192 #define outport_byte(port,value) outb(value,port) 193 #define outport_word(port,value) outw(value,port) 194 #define outport_long(port,value) outl(value,port) 196 #define inport_byte(port,value) (value = inb(port)) 197 #define inport_word(port,value) (value = inw(port)) 198 #define inport_long(port,value) (value = inl(port)) 207 extern unsigned int BSP_mem_size;
211 extern unsigned int BSP_heap_start;
215 extern unsigned int BSP_bus_frequency;
219 extern unsigned int BSP_processor_frequency;
223 extern unsigned int BSP_time_base_divisor;
228 extern char *BSP_commandline_string;
230 #define BSP_Convert_decrementer( _value ) \ 231 ((unsigned long long) ((((unsigned long long)BSP_time_base_divisor) * 1000000ULL) /((unsigned long long) BSP_bus_frequency)) * ((unsigned long long) (_value))) 234 extern int BSP_disconnect_clock_handler (
void);
247 extern unsigned long _BSP_clear_hostbridge_errors(
int enableMCP,
int quiet);
252 char *save_boot_params(
264 void VIA_isa_bridge_interrupts_setup(
void);
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:65
DEFAULT_INITIAL_EXTENSION Support.
const char * rtems_bsp_cmdline_get_param_raw(const char *name)
Obtain Pointer to the Entire Matching Argument.
Definition: bspcmdline_getparamraw.c:27
int BSP_connect_clock_handler(void)
Clock Tick Device Driver.
Definition: p_clock.c:37