blob: f07bb288e904950f1cb3fc3a251ea1b3b2dc684f [file] [log] [blame]
Nico Huberc6bd3d32023-11-27 17:13:37 +01001package body FS.FILO.Dev is
Thomas Heijligend1e04572023-11-27 14:28:55 +00002
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
Nico Huberc6bd3d32023-11-27 17:13:37 +010019end FS.FILO.Dev;