feat: rank drivers at compile time
This commit is contained in:
@@ -34,7 +34,6 @@ typedef uint8_t (*block_device_access)(const block_device *device, uint8_t direc
|
||||
|
||||
struct block_dev_driver {
|
||||
char name[16];
|
||||
uint16_t rank;
|
||||
struct {
|
||||
uint8_t root_only: 1;
|
||||
} flags;
|
||||
@@ -42,7 +41,7 @@ struct block_dev_driver {
|
||||
block_device_driver_free free_device;
|
||||
} __attribute__((__aligned__(STRUCT_ALIGNMENT)));
|
||||
|
||||
#define BLOCK_DEV_DRIVER(data...) GENERIC_DRIVER(block_dev_driver, data)
|
||||
#define BLOCK_DEV_DRIVER(order) GENERIC_DRIVER(block_dev_driver, order)
|
||||
|
||||
typedef struct block_device {
|
||||
struct {
|
||||
@@ -65,8 +64,6 @@ uint8_t block_dev_register(block_device *device);
|
||||
|
||||
void block_dev_free(block_device *device);
|
||||
|
||||
void block_dev_pre_init();
|
||||
|
||||
void block_dev_start_task();
|
||||
|
||||
void block_dev_print_info();
|
||||
|
||||
Reference in New Issue
Block a user