25 #ifndef LIBBSP_BEATNIK_BSP_H 26 #define LIBBSP_BEATNIK_BSP_H 44 #include <libcpu/io.h> 58 BSP_BoardType BSP_getBoardType(
void);
75 DiscoveryVersion BSP_getDiscoveryVersion(
int assertion);
81 #define BSP_INTERRUPT_STACK_SIZE (16 * 1024) 86 #define BSP_MV64x60_BASE (0xf1000000) 87 #define BSP_MV64x60_DEV1_BASE (0xf1100000) 88 #define BSP_UART_IOBASE_COM1 ((BSP_MV64x60_DEV1_BASE)+0x20000) 89 #define BSP_UART_IOBASE_COM2 ((BSP_MV64x60_DEV1_BASE)+0x21000) 90 #define BSP_UART_USE_SHARED_IRQS 92 #define BSP_NVRAM_BASE_ADDR (0xf1110000) 93 #define BSP_NVRAM_END_ADDR (0xf1117fff) 94 #define BSP_NVRAM_RTC_START (0xf1117ff8) 96 #define BSP_NVRAM_BOOTPARMS_START (0xf1111000) 97 #define BSP_NVRAM_BOOTPARMS_END (0xf1111fff) 106 #define PCI_CONFIG_ADDR (BSP_MV64x60_BASE + 0xcf8) 107 #define PCI_CONFIG_DATA (BSP_MV64x60_BASE + 0xcfc) 113 #define _IO_BASE 0x00000000 117 #define PCI_MEM_BASE 0 118 #define PCI_MEM_BASE_ADJUSTMENT 0 119 #define PCI_DRAM_OFFSET 0 121 extern void BSP_motload_pci_fixup(
void);
128 #define BSP_PCI2LOCAL_ADDR(a) ((uint32_t)(a)) 129 #define BSP_LOCAL2PCI_ADDR(a) ((uint32_t)(a)) 131 #define BSP_CONFIG_NUM_PCI_CACHE_SLOTS 32 133 #define BSP_CONSOLE_PORT BSP_UART_COM1 134 #define BSP_UART_BAUD_BASE 115200 140 #define BSP_VPD_I2C_ADDR (0xA8>>1) 141 #define BSP_USR_I2C_ADDR (0xAA>>1) 142 #define BSP_THM_I2C_ADDR (0x90>>1) 144 #define BSP_I2C_BUS_DESCRIPTOR gt64260_i2c_bus_descriptor 146 #define BSP_I2C_BUS0_NAME "/dev/i2c0" 148 #define BSP_I2C_VPD_EEPROM_NAME "vpd-eeprom" 149 #define BSP_I2C_USR_EEPROM_NAME "usr-eeprom" 150 #define BSP_I2C_DS1621_NAME "ds1621" 151 #define BSP_I2C_THM_NAME BSP_I2C_DS1621_NAME 152 #define BSP_I2C_DS1621_RAW_NAME "ds1621-raw" 154 #define BSP_I2C_VPD_EEPROM_DEV_NAME (BSP_I2C_BUS0_NAME ", " BSP_I2C_VPD_EEPROM_NAME) 155 #define BSP_I2C_USR_EEPROM_DEV_NAME (BSP_I2C_BUS0_NAME ", " BSP_I2C_USR_EEPROM_NAME) 156 #define BSP_I2C_DS1621_DEV_NAME (BSP_I2C_BUS0_NAME ", " BSP_I2C_DS1621_NAME) 157 #define BSP_I2C_THM_DEV_NAME BSP_I2C_DS1621_DEV_NAME 158 #define BSP_I2C_DS1621_RAW_DEV_NAME (BSP_I2C_BUS0_NAME ", " BSP_I2C_DS1621_RAW_NAME) 173 int BSP_i2c_initialize(
void);
176 #if defined(RTEMS_NETWORKING) 177 #include <bsp/bsp_bsdnet_attach.h> 178 int rtems_em_attach(
struct rtems_bsdnet_ifconfig *,
int);
179 int rtems_dec21140_driver_attach(
struct rtems_bsdnet_ifconfig *,
int);
180 int rtems_dc_driver_attach(
struct rtems_bsdnet_ifconfig *,
int);
184 #define BSP_PCI_HOSE0_MEM_BASE 0x80000000 185 #define BSP_PCI_HOSE0_MEM_SIZE 0x20000000 187 #define BSP_PCI_HOSE1_MEM_BASE 0xe0000000 189 #define BSP_DEV_AND_PCI_IO_BASE 0xf0000000 190 #define BSP_DEV_AND_PCI_IO_SIZE 0x10000000 195 #define BSP_RW_PAGE_ATTRIBUTES TRIV121_ATTR_M 197 extern unsigned BSP_pci_hose1_bus_base;
199 void BSP_pci_initialize(
void);
206 #define BSP_EXCEPTION_NOTEPAD 14 210 #define outport_byte(port,value) outb(value,port) 211 #define outport_word(port,value) outw(value,port) 212 #define outport_long(port,value) outl(value,port) 214 #define inport_byte(port,value) (value = inb(port)) 215 #define inport_word(port,value) (value = inw(port)) 216 #define inport_long(port,value) (value = inl(port)) 223 extern unsigned int BSP_mem_size;
227 extern unsigned int BSP_heap_start;
231 extern unsigned int BSP_bus_frequency;
235 extern unsigned int BSP_processor_frequency;
239 extern unsigned int BSP_time_base_divisor;
241 extern char BSP_productIdent[20];
242 extern char BSP_serialNumber[20];
244 extern char BSP_enetAddr0[7];
245 extern char BSP_enetAddr1[7];
250 extern char *BSP_commandline_string;
253 #define BSP_Convert_decrementer( _value ) \ 254 ((unsigned long long) ((((unsigned long long)BSP_time_base_divisor) * 1000000ULL) /((unsigned long long) BSP_bus_frequency)) * ((unsigned long long) (_value))) 256 extern void bsp_reset(
void);
257 extern int BSP_disconnect_clock_handler (
void);
274 extern unsigned long _BSP_clear_hostbridge_errors(
int enableMCP,
int quiet);
284 extern unsigned short (*_BSP_clear_vmebridge_errors)(int);
289 void discovery_pic_set_debug_irq(
int on);
290 void discovery_pic_install_debug_irq(
void);
295 char *save_boot_params(
307 uint32_t probeMemoryEnd(
void);
DEFAULT_INITIAL_EXTENSION Support.
int BSP_connect_clock_handler(void)
Clock Tick Device Driver.
Definition: p_clock.c:37