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
10
DAPI.hpp
10
DAPI.hpp
@ -92,6 +92,7 @@ enum CallbackReason
|
||||
SendReason,
|
||||
ReceiveReason,
|
||||
ConfigurationReason,
|
||||
FetchReason,
|
||||
BindReason,
|
||||
UnbindReason,
|
||||
InterruptReason,
|
||||
@ -112,6 +113,8 @@ struct KernelCallback
|
||||
} NetworkCallback;
|
||||
|
||||
/** @brief When the kernel wants to write to disk. */
|
||||
struct
|
||||
{
|
||||
struct
|
||||
{
|
||||
unsigned long Sector;
|
||||
@ -119,6 +122,13 @@ struct KernelCallback
|
||||
unsigned char Port;
|
||||
unsigned char *Buffer;
|
||||
bool Write;
|
||||
} RW;
|
||||
|
||||
struct
|
||||
{
|
||||
unsigned char Ports;
|
||||
int BytesPerSector;
|
||||
} Fetch;
|
||||
} DiskCallback;
|
||||
} __attribute__((packed));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user