u64_t end_lba;
u32_t blk_size;
struct block_dev_ops ops;
+ struct devclass* class;
};
// Lunaix Partition Table
typedef u32_t bdev_t;
typedef void (*devfs_exporter)(struct block_dev* bdev, void* fsnode);
+static inline struct block_dev*
+block_dev(struct device* dev)
+{
+ return (struct block_dev*)dev->underlay;
+}
+
void
block_init();