summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/termiosreserveresources.c
blob: 766763494fa7c1d7ba7b5559b7ab0affab5a9a15 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 *  Reserve enough resources to open every physical device once.
 *
 * $Id$
 */

#if HAVE_CONFIG_H
#include "config.h"
#endif

#include <rtems.h>

#if 0
static int first_time;   /* assumed to be zeroed by BSS initialization */
#endif

void rtems_termios_reserve_resources (
  rtems_configuration_table *configuration,
  uint32_t             number_of_devices
)
{
#if 0
        rtems_api_configuration_table *rtems_config;


        if (!configuration)
                rtems_fatal_error_occurred (0xFFF0F001);
        rtems_config = configuration->RTEMS_api_configuration;
        if (!rtems_config)
                rtems_fatal_error_occurred (0xFFF0F002);
        if (!first_time)
                rtems_config->maximum_semaphores += 1;
        first_time = 1;
        rtems_config->maximum_semaphores += (4 * number_of_devices);
#endif
}