mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
Revert "Kernel: Implement an asynchronous device request stack"
This reverts commit 2fd5ce1eb0
.
This broke booting without SMP. (PR was #3921)
This commit is contained in:
parent
70eaadc1cd
commit
501cef2bd7
17 changed files with 245 additions and 803 deletions
|
@ -54,10 +54,13 @@ public:
|
|||
static NonnullRefPtr<PATADiskDevice> create(PATAChannel&, DriveType, int major, int minor);
|
||||
virtual ~PATADiskDevice() override;
|
||||
|
||||
// ^DiskDevice
|
||||
virtual bool read_blocks(unsigned index, u16 count, UserOrKernelBuffer&) override;
|
||||
virtual bool write_blocks(unsigned index, u16 count, const UserOrKernelBuffer&) override;
|
||||
|
||||
void set_drive_geometry(u16, u16, u16);
|
||||
|
||||
// ^BlockDevice
|
||||
virtual void start_request(AsyncBlockDeviceRequest&) override;
|
||||
virtual KResultOr<size_t> read(FileDescription&, size_t, UserOrKernelBuffer&, size_t) override;
|
||||
virtual bool can_read(const FileDescription&, size_t) const override;
|
||||
virtual KResultOr<size_t> write(FileDescription&, size_t, const UserOrKernelBuffer&, size_t) override;
|
||||
|
@ -70,6 +73,11 @@ private:
|
|||
// ^DiskDevice
|
||||
virtual const char* class_name() const override;
|
||||
|
||||
bool wait_for_irq();
|
||||
bool read_sectors_with_dma(u32 lba, u16 count, UserOrKernelBuffer&);
|
||||
bool write_sectors_with_dma(u32 lba, u16 count, const UserOrKernelBuffer&);
|
||||
bool read_sectors(u32 lba, u16 count, UserOrKernelBuffer& buffer);
|
||||
bool write_sectors(u32 lba, u16 count, const UserOrKernelBuffer& data);
|
||||
bool is_slave() const;
|
||||
|
||||
Lock m_lock { "IDEDiskDevice" };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue