420 const char *device_name,
rtems_status_code rtems_device_driver
This type shall be used in device driver entry declarations and definitions.
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.
uint32_t rtems_device_major_number
This integer type represents the major number of devices.
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 spe...
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...
This header file defines the status codes and support functions of the Classic API.
This structure contains the device driver entries.
rtems_device_driver(* rtems_device_driver_entry)(rtems_device_major_number, rtems_device_minor_number, void *)
Device driver entries shall have this type.
rtems_device_driver_entry initialization_entry
This member is the device driver initialization entry.
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 ...
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
rtems_device_driver_entry close_entry
This member is the device driver close entry.
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_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_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_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_control(rtems_device_major_number major, rtems_device_minor_number minor, void *argument)
Controls the device specified by the device major and minor numbers.
rtems_device_driver_entry open_entry
This member is the device driver open entry.
rtems_device_driver_entry control_entry
This member is the device driver control entry.
rtems_device_driver_entry write_entry
This member is the device driver write entry.
rtems_device_driver_entry read_entry
This member is the device driver read entry.
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.