git-svn-id: https://spexeah.com:8443/svn/Asuro@252 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
parent
79b7b90d2a
commit
a4cf43061b
@ -14,7 +14,8 @@ uses
|
|||||||
util,
|
util,
|
||||||
drivertypes,
|
drivertypes,
|
||||||
console,
|
console,
|
||||||
terminal;
|
terminal,
|
||||||
|
isr76;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
@ -29,16 +30,16 @@ type
|
|||||||
|
|
||||||
Physical_Region_Descriptor = bitpacked record
|
Physical_Region_Descriptor = bitpacked record
|
||||||
empty0 : 0..1;
|
empty0 : 0..1;
|
||||||
MRPB_Address : 1..32;
|
MRPB_Address : 1..32; // memory address
|
||||||
Byte_Count : 32..47;
|
Byte_Count : 32..47; // size in bytes (0 is 64K)
|
||||||
empty1 : 47..63;
|
empty1 : 47..63;
|
||||||
EOT : 63..64;
|
EOT : 63..64; // end of table
|
||||||
empty2 : 64..65;
|
empty2 : 64..65;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
ATA_Command_Buffer bitpacked record
|
ATA_Command_Buffer bitpacked record
|
||||||
start_stop_bit : 0..1;
|
start_stop_bit : 0..1; // 0 stopped
|
||||||
read_write_bit : 3..4;
|
read_write_bit : 3..4; // 0 read
|
||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
@ -47,6 +48,8 @@ var
|
|||||||
controller : TPCI_device;
|
controller : TPCI_device;
|
||||||
|
|
||||||
procedure init(_controller : TPCI_device);
|
procedure init(_controller : TPCI_device);
|
||||||
|
procedure read(address : uint32);
|
||||||
|
procedure write(address : uint32);
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user