mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 05:40:40 +08:00
Add ordered Nexus devices
Add support for ordering the initialization of Nexus devices. This can be used to make sure a device is initialized before a dependant device.
This commit is contained in:

committed by
Sebastian Huber

parent
2c4840fba0
commit
ea395a736d
6
rtemsbsd/include/rtems/bsd/bsd.h
Normal file → Executable file
6
rtemsbsd/include/rtems/bsd/bsd.h
Normal file → Executable file
@@ -83,6 +83,12 @@ typedef struct {
|
||||
{ #name, unit, (resource_count), (resources), \
|
||||
&SYSINIT_ENTRY_NAME(name##_nexusmodule) }
|
||||
|
||||
#define RTEMS_BSD_DEFINE_NEXUS_DEVICE_ORDERED(name, unit, order, resource_count, resources) \
|
||||
extern struct sysinit SYSINIT_ENTRY_NAME(name##_nexusmodule); \
|
||||
RTEMS_BSD_DEFINE_SET_ITEM_ORDERED(nexus, name##unit, order, rtems_bsd_device) = \
|
||||
{ #name, unit, (resource_count), (resources), \
|
||||
&SYSINIT_ENTRY_NAME(name##_nexusmodule) }
|
||||
|
||||
rtems_status_code rtems_bsd_initialize(void);
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user