source: rtems/c/src/exec/sapi/include/rtems/config.h @ 60b791ad

4.104.114.84.95
Last change on this file since 60b791ad was 60b791ad, checked in by Joel Sherrill <joel.sherrill@…>, on 02/17/98 at 23:46:28

updated copyright to 1998

  • Property mode set to 100644
File size: 3.0 KB
Line 
1/*  config.h
2 *
3 *  This include file contains the table of user defined configuration
4 *  parameters.
5 *
6 *  COPYRIGHT (c) 1989-1998.
7 *  On-Line Applications Research Corporation (OAR).
8 *  Copyright assigned to U.S. Government, 1994.
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.OARcorp.com/rtems/license.html.
13 *
14 *  $Id$
15 */
16
17#ifndef __RTEMS_CONFIGURATION_h
18#define __RTEMS_CONFIGURATION_h
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24/*
25 *  This is kind of kludgy but it allows targets to totally ignore the
26 *  POSIX API safely.
27 */
28
29#ifdef RTEMS_POSIX_API
30#include <rtems/posix/config.h>
31#else
32
33typedef void *posix_api_configuration_table;
34#endif
35
36#include <rtems/rtems/config.h>
37
38/*  XXX <rtems/rtems/config.h> should cover these
39#include <rtems/rtems/status.h>
40#include <rtems/rtems/types.h>
41#include <rtems/rtems/tasks.h>
42*/
43
44#include <rtems/extension.h>
45#include <rtems/io.h>
46#include <rtems/score/mpci.h>
47
48/*
49 *  The following records define the Multiprocessor Configuration
50 *  Table.  This table defines the multiprocessor system
51 *  characteristics which must be known by RTEMS in a multiprocessor
52 *  system.
53 */
54
55typedef struct {
56  unsigned32    node;                   /* local node number */
57  unsigned32    maximum_nodes;          /* maximum # nodes in system */
58  unsigned32    maximum_global_objects; /* maximum # global objects */
59  unsigned32    maximum_proxies;        /* maximum # proxies */
60  MPCI_Control *User_mpci_table;        /* pointer to MPCI table */
61} rtems_multiprocessing_table;
62
63/*
64 *  The following records define the Configuration Table.  The
65 *  information contained in this table is required in all
66 *  RTEMS systems, whether single or multiprocessor.  This
67 *  table primarily defines the following:
68 *
69 *     + location and size of the RTEMS Workspace
70 *     + microseconds per clock tick
71 *     + clock ticks per task timeslice
72 *     + required number of each object type for each API configured
73 */
74
75typedef struct {
76  void                             *work_space_start;
77  unsigned32                        work_space_size;
78  unsigned32                        maximum_extensions;
79  unsigned32                        microseconds_per_tick;
80  unsigned32                        ticks_per_timeslice;
81  unsigned32                        maximum_devices;
82  unsigned32                        number_of_device_drivers;
83  rtems_driver_address_table       *Device_driver_table;
84  rtems_extensions_table           *User_extension_table;
85  rtems_multiprocessing_table      *User_multiprocessing_table;
86  rtems_api_configuration_table    *RTEMS_api_configuration;
87  posix_api_configuration_table    *POSIX_api_configuration;
88} rtems_configuration_table;
89
90/*
91 *  The following are provided strictly for the convenience of
92 *  the user.  They are not used in RTEMS itself.
93 */
94
95SAPI_EXTERN rtems_configuration_table    *_Configuration_Table;
96SAPI_EXTERN rtems_multiprocessing_table  *_Configuration_MP_table;
97
98#ifdef __cplusplus
99}
100#endif
101
102#endif
103/* end of include file */
Note: See TracBrowser for help on using the repository browser.