nexus: Add table based Nexus device initialization

This commit is contained in:
Sebastian Huber
2013-11-13 12:51:17 +01:00
parent b41556e22f
commit 369e2c4473
5 changed files with 254 additions and 315 deletions

View File

@@ -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);