Device driver initialization sequence

Ярослав Лещинский midniwalker at gmail.com
Fri Nov 9 10:25:49 UTC 2018


Hello,

I read the documentation about I/O Manager, found different source codes
where mentioning not only rtems_io_* functionality but also drvmgr*,
rtems_libio* and another mechanisms which are referred to device driver
topic and I have a feeling that I'm missing something.

Could you please correct me if I'm wrong in the following steps of
initialization of device driver:

1. define *CONFIGURE_MAXIMUM_DRIVERS* macro
1. Create *rtems_driver_address_table *and register it via
*register_io_register_driver*
2. Write all necessary functions for *rtems_io_initialize, rtems_io_open,
etc*
3. Associate name with major:minor pair using *rtems_register_name*

As I understood there are can be a lot of different device drivers tables
and I should somehow get the right major:minor driver from the right table.
How I can do this?

-- 
--
Kind regards,
*Yaroslav Leshchinsky*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20181109/2f7b11a5/attachment.html>


More information about the users mailing list