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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libc/] [termiosreserveresources.c] - Blame information for rev 30

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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