From 7d658a99e6a983b740562f31823bc4761c82ce2f Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 2 Nov 2022 04:13:17 +0200 Subject: [PATCH] Added fetch and better disk callback --- DAPI.hpp | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/DAPI.hpp b/DAPI.hpp index bcafd39..95def18 100644 --- a/DAPI.hpp +++ b/DAPI.hpp @@ -92,6 +92,7 @@ enum CallbackReason SendReason, ReceiveReason, ConfigurationReason, + FetchReason, BindReason, UnbindReason, InterruptReason, @@ -114,11 +115,20 @@ struct KernelCallback /** @brief When the kernel wants to write to disk. */ struct { - unsigned long Sector; - unsigned long SectorCount; - unsigned char Port; - unsigned char *Buffer; - bool Write; + struct + { + unsigned long Sector; + unsigned long SectorCount; + unsigned char Port; + unsigned char *Buffer; + bool Write; + } RW; + + struct + { + unsigned char Ports; + int BytesPerSector; + } Fetch; } DiskCallback; } __attribute__((packed));