Changes between Version 2 and Version 3 of NewDriverClass


Ignore:
Timestamp:
Oct 8, 2009, 6:50:30 AM (15 years ago)
Author:
Nicolas Pouillon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NewDriverClass

    v2 v3  
    2929= Adding a header describing the class =
    3030
    31 Create a file in `driver/include/device/foobar.h`. It may contain
     31Create a file in `drivers/include/device/foobar.h`. It may contain
    3232
    3333 * Callback definitions,
     
    3535 * Global utility functions.
    3636
    37 See [source:trunk/mutekh/driver/include/device/char.h] for sample file.
     37See [source:trunk/mutekh/drivers/include/device/char.h] for sample file.
    3838
    3939The `struct dev_class_foobar_s` is a structure holding all the class-specific request functions.
    4040You may ensure this structure holds less pointers than the `DRV_MAX_FUNC_COUNT`
    41 constant defined in [source:trunk/mutekh/driver/include/device/driver.h].
     41constant defined in [source:trunk/mutekh/drivers/include/device/driver.h].
    4242
    4343Don't forget to protect the new header against circular inclusions with the lines:
     
    5252= Adding a reference to the class in the driver structure =
    5353
    54 Edit [source:trunk/mutekh/driver/include/device/driver.h] and add an entry in the `f` union of the `struct driver_s`.
     54Edit [source:trunk/mutekh/drivers/include/device/driver.h] and add an entry in the `f` union of the `struct driver_s`.
    5555
    5656You must protect it with the macros defined in the header of the class, in case the class is not included in legacy code.