source: rtems/c/src/exec/sapi/include/rtems/config.h @ 97e2729d

4.104.114.84.95
Last change on this file since 97e2729d was 97e2729d, checked in by Joel Sherrill <joel.sherrill@…>, on 11/23/98 at 17:38:09

Added --disable-multiprocessing flag and modified a lot of files to make
it work.

  • Property mode set to 100644
File size: 3.2 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#if defined(RTEMS_MULTIPROCESSING)
47#include <rtems/score/mpci.h>
48#endif
49
50/*
51 *  The following records define the Multiprocessor Configuration
52 *  Table.  This table defines the multiprocessor system
53 *  characteristics which must be known by RTEMS in a multiprocessor
54 *  system.
55 */
56
57typedef struct {
58  unsigned32    node;                   /* local node number */
59  unsigned32    maximum_nodes;          /* maximum # nodes in system */
60  unsigned32    maximum_global_objects; /* maximum # global objects */
61  unsigned32    maximum_proxies;        /* maximum # proxies */
62#if defined(RTEMS_MULTIPROCESSING)
63  MPCI_Control *User_mpci_table;        /* pointer to MPCI table */
64#else
65  void         *User_mpci_table;        /* pointer to MPCI table */
66#endif
67} rtems_multiprocessing_table;
68
69/*
70 *  The following records define the Configuration Table.  The
71 *  information contained in this table is required in all
72 *  RTEMS systems, whether single or multiprocessor.  This
73 *  table primarily defines the following:
74 *
75 *     + location and size of the RTEMS Workspace
76 *     + microseconds per clock tick
77 *     + clock ticks per task timeslice
78 *     + required number of each object type for each API configured
79 */
80
81typedef struct {
82  void                             *work_space_start;
83  unsigned32                        work_space_size;
84  unsigned32                        maximum_extensions;
85  unsigned32                        microseconds_per_tick;
86  unsigned32                        ticks_per_timeslice;
87  unsigned32                        maximum_devices;
88  unsigned32                        number_of_device_drivers;
89  rtems_driver_address_table       *Device_driver_table;
90  unsigned32                        number_of_initial_extensions;
91  rtems_extensions_table           *User_extension_table;
92  rtems_multiprocessing_table      *User_multiprocessing_table;
93  rtems_api_configuration_table    *RTEMS_api_configuration;
94  posix_api_configuration_table    *POSIX_api_configuration;
95} rtems_configuration_table;
96
97/*
98 *  The following are provided strictly for the convenience of
99 *  the user.  They are not used in RTEMS itself.
100 */
101
102SAPI_EXTERN rtems_configuration_table    *_Configuration_Table;
103SAPI_EXTERN rtems_multiprocessing_table  *_Configuration_MP_table;
104
105#ifdef __cplusplus
106}
107#endif
108
109#endif
110/* end of include file */
Note: See TracBrowser for help on using the repository browser.