0582ca18f07cefd8a1f3819f00ac933108e5b9b7
[people/xl0/gpxe.git] / src / arch / i386 / drivers / disk / floppy.c
1 #include "console.h"
2 #include "disk.h"
3 #include "bios_disks.h"
4
5 static void fill_floppy_name ( char *buf, uint8_t drive ) {
6         sprintf ( buf, "fd%d", drive );
7 }
8
9 static struct disk_operations floppy_operations = {
10
11 };
12
13 static int floppy_probe ( struct disk *disk,
14                           struct bios_disk_device *bios_disk ) {
15         
16         return 1;
17 }
18
19 static void floppy_disable ( struct disk *disk,
20                              struct bios_disk_device *bios_disk ) {
21         
22 }
23
24 BIOS_DISK_DRIVER ( floppy_driver, fill_floppy_name, 0x00, 0x7f );
25
26 DRIVER ( "floppy", disk_driver, bios_disk_driver, floppy_driver,
27          floppy_probe, floppy_disable );