OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [libcsupport/] [src/] [termiosreserveresources.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
2
 *  Reserve enough resources to open every physical device once.
3
 *
4
 * termiosreserveresources.c,v 1.3 2001/01/08 18:26:44 joel Exp
5
 */
6
 
7
#if HAVE_CONFIG_H
8
#include "config.h"
9
#endif
10
 
11
#include <rtems.h>
12
 
13
#if 0
14
static int first_time;   /* assumed to be zeroed by BSS initialization */
15
#endif
16
 
17
void rtems_termios_reserve_resources (
18
  rtems_configuration_table *configuration,
19
  rtems_unsigned32           number_of_devices
20
)
21
{
22
#if 0
23
        rtems_api_configuration_table *rtems_config;
24
 
25
 
26
        if (!configuration)
27
                rtems_fatal_error_occurred (0xFFF0F001);
28
        rtems_config = configuration->RTEMS_api_configuration;
29
        if (!rtems_config)
30
                rtems_fatal_error_occurred (0xFFF0F002);
31
        if (!first_time)
32
                rtems_config->maximum_semaphores += 1;
33
        first_time = 1;
34
        rtems_config->maximum_semaphores += (4 * number_of_devices);
35
#endif
36
}
37
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.