source: rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/include/bsp.h @ 6693a68

4.104.114.84.95
Last change on this file since 6693a68 was 93180ea2, checked in by Joel Sherrill <joel.sherrill@…>, on 07/09/99 at 17:16:10

Patch from Eric Valette <valette@…>:

  • The same bug fix that was done on pc386 to prevent interrupt from occuring (never experienced it but who knows as I have 8259 emulation :()
  • Removed every compiler warning (except wrong ones and ones I can't do anything).
  • Removed any libc available code in code linked with mcp750 rtems executbale. Unfortunately using newlib functions for linking the bootloader does not work as the compilation options in bootloader (-mrelocatable -fixed-r13) are not compatible with newlib options. => I have put any libc external reference in one single new file (lib.c) that is linked only with the boot loader. Removing the file from ${OBJ} and using -lc crash the bootloader. Added big warning...
  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*
2 *  bsp.h  -- contain BSP API definition.
3 *
4 *  Copyright (C) 1999 Eric Valette. valette@crf.canon.fr
5 *
6 *  The license and distribution terms for this file may be
7 *  found in found in the file LICENSE in this distribution or at
8 *  http://www.OARcorp.com/rtems/license.html.
9 *
10 * $Id$
11 */
12#ifndef LIBBSP_POWERPC_MCP750_BSP_H
13#define LIBBSP_POWERPC_MCP750_BSP_H
14
15#include <rtems.h>
16#include <console.h>
17#include <libcpu/io.h>
18#include <clockdrv.h>
19
20#ifndef ASM
21#define outport_byte(port,value) outb(value,port)
22#define outport_word(port,value) outw(value,port)
23#define outport_long(port,value) outl(value,port)
24
25#define inport_byte(port,value) (value = inb(port))
26#define inport_word(port,value) (value = inw(port))
27#define inport_long(port,value) (value = inl(port))
28/*
29 * Vital Board data Start using DATA RESIDUAL
30 */
31/*
32 * Total memory using RESIDUAL DATA
33 */
34unsigned int BSP_mem_size;
35/*
36 * PCI Bus Frequency
37 */
38unsigned int BSP_bus_frequency;
39/*
40 * processor clock frequency
41 */
42unsigned int BSP_processor_frequency;
43/*
44 * Time base divisior (how many tick for 1 second).
45 */
46unsigned int BSP_time_base_divisor;
47
48extern rtems_configuration_table  BSP_Configuration;
49extern void BSP_panic(char *s);
50extern void rtemsReboot(void);
51extern int printk(const char *, ...) __attribute__((format(printf, 1, 2)));
52#endif
53
54#endif
Note: See TracBrowser for help on using the repository browser.