source: rtems/cpukit/sapi/include/rtems/config.h @ 2eba45d

4.104.114.84.95
Last change on this file since 2eba45d was 2eba45d, checked in by Joel Sherrill <joel.sherrill@…>, on 05/28/96 at 14:16:45

made posix configuration information conditional so configurations wanting
only the rtems api don't have to include it.

  • Property mode set to 100644
File size: 3.1 KB
Line 
1/*  config.h
2 *
3 *  This include file contains the table of user defined configuration
4 *  parameters.
5 *
6 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
7 *  On-Line Applications Research Corporation (OAR).
8 *  All rights assigned to U.S. Government, 1994.
9 *
10 *  This material may be reproduced by or for the U.S. Government pursuant
11 *  to the copyright license under the clause at DFARS 252.227-7013.  This
12 *  notice must appear in all copies of this file and its derivatives.
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
95EXTERN rtems_configuration_table    *_Configuration_Table;
96EXTERN 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.