diff options
author | Alexis211 <alexis211@gmail.com> | 2009-11-29 12:30:07 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-11-29 12:30:07 +0100 |
commit | 74dea7d492d6d352bfacb147b1c08ad0cf0a8b29 (patch) | |
tree | f613c8395b75a68e51d69c24eb3acdb0816ad509 /Source/Kernel/Devices/Floppy/FloppyController.class.h | |
parent | d3e4ef59cbb45f02e07fe17fb7c58cba3c737900 (diff) | |
parent | a913d4c2cb4daf10c0eac4d548fccb26b2a9f099 (diff) | |
download | Melon-74dea7d492d6d352bfacb147b1c08ad0cf0a8b29.tar.gz Melon-74dea7d492d6d352bfacb147b1c08ad0cf0a8b29.zip |
Merge branch 'mountpoints' of github.com:Alexis211/Melon into mountpoints
Diffstat (limited to 'Source/Kernel/Devices/Floppy/FloppyController.class.h')
-rw-r--r-- | Source/Kernel/Devices/Floppy/FloppyController.class.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Kernel/Devices/Floppy/FloppyController.class.h b/Source/Kernel/Devices/Floppy/FloppyController.class.h index a27d853..f0a7c10 100644 --- a/Source/Kernel/Devices/Floppy/FloppyController.class.h +++ b/Source/Kernel/Devices/Floppy/FloppyController.class.h @@ -60,6 +60,8 @@ class FloppyController : public Device { bool m_first; + bool m_irqHappened; + FloppyDrive* m_drives[2]; void checkInterrupt(int *st0, int *cyl); @@ -69,6 +71,10 @@ class FloppyController : public Device { bool writeCmd(u8int cmd); //Sends command to controller u8int readData(); //Reads a byte from controller bool reset(); + + void handleIRQ(registers_t regs, int irq); + void resetIrq() { m_irqHappened = false; } + void waitIrq(); public: static void detect(); |