ISO
git-svn-id: https://spexeah.com:8443/svn/Asuro@282 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
parent
44b2ad018b
commit
0ead7118cf
BIN
bin/kernel.bin
BIN
bin/kernel.bin
Binary file not shown.
Binary file not shown.
BIN
lib/kernel.ppu
BIN
lib/kernel.ppu
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
lib/libpsystem.a
BIN
lib/libpsystem.a
Binary file not shown.
@ -9,6 +9,31 @@ uses
|
|||||||
pmemorymanager,
|
pmemorymanager,
|
||||||
vmemorymanager;
|
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;
|
procedure init;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
@ -19,6 +44,7 @@ var
|
|||||||
count : uint32;
|
count : uint32;
|
||||||
i : uint32;
|
i : uint32;
|
||||||
block : uint32;
|
block : uint32;
|
||||||
|
MMR : POHCI_MMR;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
console.writestringln('USB: INIT BEGIN.');
|
console.writestringln('USB: INIT BEGIN.');
|
||||||
@ -57,6 +83,9 @@ begin
|
|||||||
block:= devices[i].address0 SHR 22;
|
block:= devices[i].address0 SHR 22;
|
||||||
force_alloc_block(block, 0);
|
force_alloc_block(block, 0);
|
||||||
map_page(block, block);
|
map_page(block, block);
|
||||||
|
MMR:= POHCI_MMR(devices[i].address0);
|
||||||
|
console.writestring('HcRevision? ');
|
||||||
|
console.writeintln(MMR^.HcRevision);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user