mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Added fetch and better disk callback
This commit is contained in:
parent
b9c725c1db
commit
7d658a99e6
20
DAPI.hpp
20
DAPI.hpp
@ -92,6 +92,7 @@ enum CallbackReason
|
|||||||
SendReason,
|
SendReason,
|
||||||
ReceiveReason,
|
ReceiveReason,
|
||||||
ConfigurationReason,
|
ConfigurationReason,
|
||||||
|
FetchReason,
|
||||||
BindReason,
|
BindReason,
|
||||||
UnbindReason,
|
UnbindReason,
|
||||||
InterruptReason,
|
InterruptReason,
|
||||||
@ -114,11 +115,20 @@ struct KernelCallback
|
|||||||
/** @brief When the kernel wants to write to disk. */
|
/** @brief When the kernel wants to write to disk. */
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
unsigned long Sector;
|
struct
|
||||||
unsigned long SectorCount;
|
{
|
||||||
unsigned char Port;
|
unsigned long Sector;
|
||||||
unsigned char *Buffer;
|
unsigned long SectorCount;
|
||||||
bool Write;
|
unsigned char Port;
|
||||||
|
unsigned char *Buffer;
|
||||||
|
bool Write;
|
||||||
|
} RW;
|
||||||
|
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
unsigned char Ports;
|
||||||
|
int BytesPerSector;
|
||||||
|
} Fetch;
|
||||||
} DiskCallback;
|
} DiskCallback;
|
||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user