15static int device_count = 0;
20 gop_printf(0xFFFFFF00,
"Registering block #%d at %llx\n", device_count, (
unsigned long long)(uintptr_t)dev);
23 devices[device_count++] = dev;
33 if (index < 0 || index >= device_count) {
return NULL; }
34 return devices[index];
void register_block_device(BLOCK_DEVICE *dev)
BLOCK_DEVICE * get_block_device(int index)
struct _BLOCK_DEVICE BLOCK_DEVICE
NORETURN void MeBugCheck(IN enum _BUGCHECK_CODES BugCheckCode)
struct _GOP_PARAMS GOP_PARAMS
void gop_printf(uint32_t color, const char *fmt,...)
@ BLOCK_DEVICE_LIMIT_REACHED