Changeset 3a4ae6c in rtems for cpukit/sapi/include/rtems/io.h


Ignore:
Timestamp:
Sep 11, 1995, 7:35:39 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ced11f99
Parents:
5072b07
Message:

The word "RTEMS" almost completely removed from the core.

Configuration Table Template file added and all tests
modified to use this. All gvar.h and conftbl.h files
removed from test directories.

Configuration parameter maximum_devices added.

Core semaphore and mutex handlers added and RTEMS API Semaphore
Manager updated to reflect this.

Initialization sequence changed to invoke API specific initialization
routines. Initialization tasks table now owned by RTEMS Tasks Manager.

Added user extension for post-switch.

Utilized user extensions to implement API specific functionality
like signal dispatching.

Added extensions to the System Initialization Thread so that an
API can register a function to be invoked while the system
is being initialized. These are largely equivalent to the
pre-driver and post-driver hooks.

Added the Modules file oar-go32_p5, modified oar-go32, and modified
the file make/custom/go32.cfg to look at an environment varable which
determines what CPU model is being used.

All BSPs updated to reflect named devices and clock driver's IOCTL
used by the Shared Memory Driver. Also merged clock isr into
main file and removed ckisr.c where possible.

Updated spsize to reflect new and moved variables.

Makefiles for the executive source and include files updated to show
break down of files into Core, RTEMS API, and Neither.

Header and inline files installed into subdirectory based on whether
logically in the Core or a part of the RTEMS API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/rtems/io.h

    r5072b07 r3a4ae6c  
    3333#endif
    3434
    35 #include <rtems/config.h>
    36 
    37 /*
    38  *  The following declare the data required to manage the Device Driver
    39  *  Address Table.
    40  */
    41 
    42 EXTERN unsigned32                  _IO_Number_of_drivers;
    43 EXTERN rtems_driver_address_table *_IO_Driver_address_table;
    44 
     35#include <rtems/rtems/status.h>
     36
     37/*
     38 *
     39 *  The following defines the types for:
     40 *
     41 *    + major and minor numbers
     42 *    + the return type of a device driver entry
     43 *    + a pointer to a device driver entry
     44 *    + an entry in the the Device Driver Address Table.  Each entry in this
     45 *      table corresponds to an application provided device driver and
     46 *      defines the entry points for that device driver.
     47 */
     48 
     49typedef unsigned32 rtems_device_major_number;
     50typedef unsigned32 rtems_device_minor_number;
     51 
     52typedef rtems_status_code rtems_device_driver;
     53 
     54typedef rtems_device_driver ( *rtems_device_driver_entry )(
     55                 rtems_device_major_number,
     56                 rtems_device_minor_number,
     57                 void *
     58             );
     59
     60typedef struct {
     61  rtems_device_driver_entry initialization; /* initialization procedure */
     62  rtems_device_driver_entry open;           /* open request procedure */
     63  rtems_device_driver_entry close;          /* close request procedure */
     64  rtems_device_driver_entry read;           /* read request procedure */
     65  rtems_device_driver_entry write;          /* write request procedure */
     66  rtems_device_driver_entry control;        /* special functions procedure */
     67}   rtems_driver_address_table;
     68 
    4569/*
    4670 * Table for the io device names
     
    5478} rtems_driver_name_t;
    5579
    56 /*XXX this really should be allocated some better way... */
    57 /*XXX it should probably be a chain and use a 'maximum' drivers field
    58  * in config table */
    59 #define RTEMS_MAX_DRIVER_NAMES 20
    60 EXTERN rtems_driver_name_t rtems_driver_name_table[RTEMS_MAX_DRIVER_NAMES];
    61 
     80/*
     81 *  This is the table of device names.
     82 */
     83
     84/*
     85 *  The following declare the data required to manage the Driver
     86 *  Address Table and Device Name Table.
     87 */
     88
     89EXTERN unsigned32                  _IO_Number_of_drivers;
     90EXTERN rtems_driver_address_table *_IO_Driver_address_table;
     91EXTERN unsigned32                  _IO_Number_of_devices;
     92EXTERN rtems_driver_name_t        *_IO_Driver_name_table;
    6293
    6394/*
     
    71102STATIC INLINE void _IO_Manager_initialization(
    72103  rtems_driver_address_table *driver_table,
    73   unsigned32                          number_of_drivers
     104  unsigned32                  number_of_drivers,
     105  unsigned32                  number_of_devices
    74106);
    75107
Note: See TracChangeset for help on using the changeset viewer.