mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:47:34 +00:00
Kernel: Tidy up IDEDiskDevice a bit.
The main cleanup here is putting the I/O address base in a member variable.
This commit is contained in:
parent
36d8b9e89b
commit
ebf645d72a
4 changed files with 80 additions and 103 deletions
|
@ -25,6 +25,7 @@ public:
|
|||
virtual bool read_block(unsigned index, byte*) const override;
|
||||
virtual bool write_block(unsigned index, const byte*) override;
|
||||
virtual bool read_blocks(unsigned index, word count, byte*) override;
|
||||
virtual bool write_blocks(unsigned index, word count, const byte*) override;
|
||||
|
||||
protected:
|
||||
IDEDiskDevice();
|
||||
|
@ -46,6 +47,7 @@ private:
|
|||
word m_cylinders { 0 };
|
||||
word m_heads { 0 };
|
||||
word m_sectors_per_track { 0 };
|
||||
word m_io_base { 0 };
|
||||
volatile bool m_interrupted { false };
|
||||
volatile byte m_device_error { 0 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue