Add EXT2 stub
diff --git a/src/kernel/dri/ide/ide.c b/src/kernel/dri/ide/ide.c
index b42873d..21f2651 100644
--- a/src/kernel/dri/ide/ide.c
+++ b/src/kernel/dri/ide/ide.c
@@ -14,9 +14,25 @@
return dev->class == 1 && dev->subclass == 1;
}
+void ide_print_device(struct ide_device *dev)
+{
+ kprintf("<ide-device dma=%b>", dev->supports_dma);
+}
+
void ide_thread(struct ide_thread_data *data)
{
kprintf("IDE driver thread starting: device=0x%x\n", data->dev.device_id);
+
+ struct ide_device dev;
+
+ uchar p = data->dev.prog_if;
+ dev.channel_mode[0] = p & 1;
+ dev.channel_mode_modifiable[0] = p & (1 << 1);
+ dev.channel_mode[1] = p & (1 << 2);
+ dev.channel_mode_modifiable[1] = p & (1 << 3);
+ dev.supports_dma = p & (1 << 7);
+
+ ide_print_device(&dev);
}
void ide_init(struct pci_device dev, uchar bus, uchar slot, uchar func)