git-svn-id: https://spexeah.com:8443/svn/Asuro@510 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
1 parent
bb59910fa2
commit
40d2184e48
9 files changed
+6
-7
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -16,7 +16,8 @@ uses
|
|||||||
terminal,
|
terminal,
|
||||||
net,
|
net,
|
||||||
nettypes,
|
nettypes,
|
||||||
netutils;
|
netutils,
|
||||||
|
isrmanager;
|
||||||
|
|
||||||
const
|
const
|
||||||
INTEL_VEND = $8086;
|
INTEL_VEND = $8086;
|
||||||
@@ -403,12 +404,13 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure fire(); interrupt;
|
procedure fire();
|
||||||
var
|
var
|
||||||
status : uint32;
|
status : uint32;
|
||||||
data : uint32;
|
data : uint32;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
console.writestringln('E1000');
|
||||||
push_trace('E1000.fire');
|
push_trace('E1000.fire');
|
||||||
//console.outputln('E1000 Driver', 'FIRED.');
|
//console.outputln('E1000 Driver', 'FIRED.');
|
||||||
|
|
||||||
@@ -429,11 +431,7 @@ begin
|
|||||||
writeCommand(REG_IMASK, 1);
|
writeCommand(REG_IMASK, 1);
|
||||||
|
|
||||||
//Clear INT on PIC and Cascade
|
//Clear INT on PIC and Cascade
|
||||||
outb($A0, $20);
|
|
||||||
outb($20, $20);
|
|
||||||
|
|
||||||
//CLI (Not 100% Nessisary as this is done on IRET)
|
|
||||||
CLI;
|
|
||||||
pop_trace;
|
pop_trace;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@@ -525,7 +523,8 @@ begin
|
|||||||
|
|
||||||
net.registerNetworkCard(@sendPacket, getMACAddress());
|
net.registerNetworkCard(@sendPacket, getMACAddress());
|
||||||
|
|
||||||
IDT.set_gate(32 + PCI_Info^.interrupt_line, uint32(@fire), $08, ISR_RING_0);
|
isrmanager.registerISR(32 + PCI_Info^.interrupt_line, @fire);
|
||||||
|
//IDT.set_gate(32 + PCI_Info^.interrupt_line, uint32(@fire), $08, ISR_RING_0);
|
||||||
enableInturrupt();
|
enableInturrupt();
|
||||||
|
|
||||||
rxinit();
|
rxinit();
|
||||||
|
|||||||
Reference in new issue
Block a user