diff options
Diffstat (limited to 'c/src/lib/libbsp/powerpc/shared/include/bsp.h')
-rw-r--r-- | c/src/lib/libbsp/powerpc/shared/include/bsp.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/shared/include/bsp.h b/c/src/lib/libbsp/powerpc/shared/include/bsp.h new file mode 100644 index 0000000000..7672298231 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/shared/include/bsp.h @@ -0,0 +1,57 @@ +/* + * bsp.h -- contain BSP API definition. + * + * Copyright (C) 1999 Eric Valette. valette@crf.canon.fr + * + * The license and distribution terms for this file may be + * found in found in the file LICENSE in this distribution or at + * http://www.OARcorp.com/rtems/license.html. + * + * $Id$ + */ +#ifndef LIBBSP_POWERPC_MCP750_BSP_H +#define LIBBSP_POWERPC_MCP750_BSP_H + +#include <rtems.h> +#include <console.h> +#include <libcpu/io.h> +#include <clockdrv.h> +#include <bsp/vectors.h> + +#ifndef ASM +#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)) +/* + * Vital Board data Start using DATA RESIDUAL + */ +/* + * Total memory using RESIDUAL DATA + */ +unsigned int BSP_mem_size; +/* + * PCI Bus Frequency + */ +unsigned int BSP_bus_frequency; +/* + * processor clock frequency + */ +unsigned int BSP_processor_frequency; +/* + * Time base divisior (how many tick for 1 second). + */ +unsigned int BSP_time_base_divisor; + +extern rtems_configuration_table BSP_Configuration; +extern void BSP_panic(char *s); +extern void rtemsReboot(void); +extern int printk(const char *, ...) __attribute__((format(printf, 1, 2))); +extern int BSP_disconnect_clock_handler (void); +extern int BSP_connect_clock_handler (void); +#endif + +#endif |