Changeset 059a3714 in rtems for c/src/optman/sapi/no-io.c


Ignore:
Timestamp:
Oct 16, 2001, 7:05:29 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
8670008c
Parents:
8917506d
Message:

2001-10-16 Chris Johns <ccj@…>

  • include/confdefs.h, include/rtems/config.h, include/rtems/io.h, optman/no-io.c, src/exinit.c, src/io.c: Added a device driver register/unregister interface to allow device drivers to be installed and removed at runtime. This means you do not need devices present in the device table when you build.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/optman/sapi/no-io.c

    r8917506d r059a3714  
    2222void _IO_Manager_initialization(
    2323  rtems_driver_address_table *driver_table,
     24  unsigned32                  drivers_in_table,
    2425  unsigned32                  number_of_drivers,
    2526  unsigned32                  number_of_devices
     
    3233}
    3334
     35rtems_status_code rtems_io_register_driver(
     36    rtems_device_major_number   major,
     37    rtems_driver_address_table *driver_table,
     38    rtems_device_major_number  *registered_major
     39)
     40{
     41  _Internal_error_Occurred(
     42    INTERNAL_ERROR_RTEMS_API,
     43    FALSE,
     44    RTEMS_NOT_CONFIGURED
     45  );
     46  return RTEMS_NOT_CONFIGURED;
     47}
     48 
     49rtems_status_code rtems_io_unregister_driver(
     50    rtems_device_major_number major
     51)
     52{
     53  _Internal_error_Occurred(
     54    INTERNAL_ERROR_RTEMS_API,
     55    FALSE,
     56    RTEMS_NOT_CONFIGURED
     57  );
     58  return RTEMS_NOT_CONFIGURED;
     59}
     60 
    3461rtems_status_code rtems_io_register_name(
    3562    char *device_name,
Note: See TracChangeset for help on using the changeset viewer.