blob: 591f321e43629e5d618faa105dc9bcd23aa62735 [file] [log] [blame]
Thomas Heijligend1e04572023-11-27 14:28:55 +00001package body FS.FILO is
2
3 procedure Read
Thomas Heijligen62268ee2023-11-27 15:10:41 +00004 (Buffer : in out Buffer_Type;
5 Offset : in Natural;
6 Success : out Boolean)
Thomas Heijligend1e04572023-11-27 14:28:55 +00007 is
Thomas Heijligen62268ee2023-11-27 15:10:41 +00008 --Sector_Size : constant Natural := 512;
9 --Sector : constant Interfaces.C.unsigned_long := Offset / Sector_Size;
10 --Byte_Offset : constant Interfaces.C.unsigned_long := Offset rem Sector_Size;
11 --Byte_Len : constant Interfaces.C.unsigned_long := Buffer'Length;
12 --function To_Bool(Item : Interfaces.C.int) return Bool is
13 -- (if Item = 0 then False else True);
Thomas Heijligend1e04572023-11-27 14:28:55 +000014 begin
Thomas Heijligen62268ee2023-11-27 15:10:41 +000015 null;
16 --Success := To_Bool (C_devread (Sector, Byte_Offset, Byte_Len, Buffer'Address));
Thomas Heijligend1e04572023-11-27 14:28:55 +000017 end Read;
18
19end FS.FILO;
20