-
Notifications
You must be signed in to change notification settings - Fork 0
/
fs-ide.ads
50 lines (40 loc) · 2.47 KB
/
fs-ide.ads
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
-------------------------------------------------------------------------
-- --
-- RTEMS FILE-SYSTEM SUPPORT --
-- --
-- F S . I D E --
-- --
-- S p e c i f i c a t i o n --
-- --
-- $ Revision: 1.0 $ --
-- --
-- Alejandro Villanueva Uribarri (Universidad de Zaragoza) --
-- --
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-- This package provides the IDE_Driver. You can basically perform two --
-- operations with it: --
-- (*) IDE_Driver.Init will reset the driver. This function is called --
-- when the package is withed. --
-- (*) IDE_Driver.DEV_IO will read or write any sector into a variable --
-- of type Data_Block. --
-- --
-- Please note that only the Read operation is currently implemented. --
-- Writing operation is not needed, so I won't implement it. Anyhow it --
-- is simple to implement in case you need to. --
-- --
-- For this driver to work properly you should configure your disk in --
-- CHS mode in the BIOS parameter table. If configured in LBA mode it --
-- won't work. --
-------------------------------------------------------------------------
package fs.ide is
protected IDE_Driver is
entry Init;
entry Dev_IO (rw_flag: in Read_or_Write;
Pos: in DWord;
Data: out Data_Block);
private
Initialized: Boolean := False;
end IDE_Driver;
Disk_Error: exception;
end fs.ide;