blob: 12132e33e763151d93931896f1a26a46183c22c9 [file] [log] [blame]
Thomas Heijligend1e04572023-11-27 14:28:55 +00001with Interfaces.C;
Thomas Heijligen62268ee2023-11-27 15:10:41 +00002with System;
Thomas Heijligend1e04572023-11-27 14:28:55 +00003
4package FS.FILO is
5
6 Procedure Read
7 (Buffer : in out Buffer_Type;
8 Offset : in Natural;
9 Success : out Boolean);
10
11private
12
13 function C_devread
14 (sector : Interfaces.C.unsigned_long;
15 byte_offset : Interfaces.C.unsigned_long;
16 byte_len : Interfaces.C.unsigned_long;
Thomas Heijligen62268ee2023-11-27 15:10:41 +000017 buf : System.Address)
Thomas Heijligend1e04572023-11-27 14:28:55 +000018 return Interfaces.C.int
19 with
20 SPARK_Mode => Off,
21 Import => True,
Thomas Heijligen62268ee2023-11-27 15:10:41 +000022 Convention => C,
23 External_Name => "devopen";
Thomas Heijligend1e04572023-11-27 14:28:55 +000024
25
26end FS.FILO;
27
28
29
30-- int mount (void)
31-- int read (char* buf, int len)
32-- int dir (char *dirname)
33-- void close (void) // not implemented