RTEMS 6.1-rc2
|
This header file defines the IO Manager API. More...
Go to the source code of this file.
Data Structures | |
struct | rtems_driver_address_table |
This structure contains the device driver entries. More... | |
Typedefs | |
typedef rtems_status_code | rtems_device_driver |
This type shall be used in device driver entry declarations and definitions. | |
typedef uint32_t | rtems_device_major_number |
This integer type represents the major number of devices. | |
typedef uint32_t | rtems_device_minor_number |
This integer type represents the minor number of devices. | |
typedef rtems_device_driver(* | rtems_device_driver_entry) (rtems_device_major_number, rtems_device_minor_number, void *) |
Device driver entries shall have this type. | |
Functions | |
rtems_status_code | rtems_io_register_driver (rtems_device_major_number major, const rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major) |
Registers and initializes the device with the specified device driver address table and device major number in the Device Driver Table. | |
rtems_status_code | rtems_io_unregister_driver (rtems_device_major_number major) |
Removes a device driver specified by the device major number from the Device Driver Table. | |
rtems_status_code | rtems_io_initialize (rtems_device_major_number major, rtems_device_minor_number minor, void *argument) |
Initializes the device specified by the device major and minor numbers. | |
rtems_status_code | rtems_io_register_name (const char *device_name, rtems_device_major_number major, rtems_device_minor_number minor) |
Registers the device specified by the device major and minor numbers in the file system under the specified name. | |
rtems_status_code | rtems_io_open (rtems_device_major_number major, rtems_device_minor_number minor, void *argument) |
Opens the device specified by the device major and minor numbers. | |
rtems_status_code | rtems_io_close (rtems_device_major_number major, rtems_device_minor_number minor, void *argument) |
Closes the device specified by the device major and minor numbers. | |
rtems_status_code | rtems_io_read (rtems_device_major_number major, rtems_device_minor_number minor, void *argument) |
Reads from the device specified by the device major and minor numbers. | |
rtems_status_code | rtems_io_write (rtems_device_major_number major, rtems_device_minor_number minor, void *argument) |
Writes to the device specified by the device major and minor numbers. | |
rtems_status_code | rtems_io_control (rtems_device_major_number major, rtems_device_minor_number minor, void *argument) |
Controls the device specified by the device major and minor numbers. | |
This header file defines the IO Manager API.