mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-17 12:46:38 +08:00
nexus: Add table based Nexus device initialization
This commit is contained in:
@@ -46,6 +46,28 @@ extern "C" {
|
||||
|
||||
#include <rtems.h>
|
||||
|
||||
typedef enum {
|
||||
RTEMS_BSD_RES_IRQ = 1,
|
||||
RTEMS_BSD_RES_MEMORY = 3
|
||||
} rtems_bsd_device_resource_type;
|
||||
|
||||
typedef struct {
|
||||
rtems_bsd_device_resource_type type;
|
||||
unsigned long start_request;
|
||||
unsigned long start_actual;
|
||||
} rtems_bsd_device_resource;
|
||||
|
||||
typedef struct {
|
||||
const char *name;
|
||||
int unit;
|
||||
size_t resource_count;
|
||||
const rtems_bsd_device_resource *resources;
|
||||
} rtems_bsd_device;
|
||||
|
||||
extern const rtems_bsd_device rtems_bsd_nexus_devices[];
|
||||
|
||||
extern const size_t rtems_bsd_nexus_device_count;
|
||||
|
||||
rtems_status_code rtems_bsd_initialize(void);
|
||||
|
||||
rtems_status_code rtems_bsd_initialize_with_interrupt_server(void);
|
||||
|
Reference in New Issue
Block a user