git-svn-id: https://spexeah.com:8443/svn/Asuro@282 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
kieron committed 2017-10-27 08:33:39 +00:00
1 parent 44b2ad018b
commit 0ead7118cf
8 files changed
+29

No files matched your search

BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
+29
View File
@@ -9,6 +9,31 @@ uses
pmemorymanager,
vmemorymanager;
type
POHCI_MMR = ^TOHCI_MMR;
TOHCI_MMR = packed record
HcRevision : uint32;
HcControl : uint32;
HcCommandStatus : uint32;
HcIntStatus : uint32;
HcIntEnable : uint32;
HcIntDisable : uint32;
HcHCCA : uint32;
HcPeriodCurrentED : uint32;
HcControlHeadED : uint32;
HcControlCurrentED : uint32;
HcBulkHeadED : uint32;
HcBulkCurrentED : uint32;
HcDoneHead : uint32;
HcFmRemaining : uint32;
HcFmNumber : uint32;
HcPeriodicStart : uint32;
HcLSThreshold : uint32;
HcRhDescriptorA : uint32;
HcRhDescriptorB : uint32;
HcRhStatus : uint32;
end;
procedure init;
implementation
@@ -19,6 +44,7 @@ var
count : uint32;
i : uint32;
block : uint32;
MMR : POHCI_MMR;
begin
console.writestringln('USB: INIT BEGIN.');
@@ -57,6 +83,9 @@ begin
block:= devices[i].address0 SHR 22;
force_alloc_block(block, 0);
map_page(block, block);
MMR:= POHCI_MMR(devices[i].address0);
console.writestring('HcRevision? ');
console.writeintln(MMR^.HcRevision);
end;
end;