git-svn-id: https://spexeah.com:8443/svn/Asuro@723 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c

This commit is contained in:
kieron 2018-05-12 09:34:00 +00:00
parent 5dee385248
commit 59a2c7567f
14 changed files with 28 additions and 9 deletions

BIN
Asuro.iso

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.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -108,18 +108,12 @@ begin
pop_trace; pop_trace;
end; end;
procedure terminal_command_e1000status(Params : PParamList);
begin
console.writeHexLnWND(e1000.readStatus, getTerminalHWND);
end;
procedure init; procedure init;
begin begin
push_trace('net.init'); push_trace('net.init');
eth2.register; eth2.register;
arp.register; arp.register;
ipv4.register; ipv4.register;
terminal.registerCommand('e1000status', @terminal_command_e1000status, 'e1000 status');
pop_trace; pop_trace;
end; end;

View File

@ -484,6 +484,31 @@ begin
pop_trace; pop_trace;
end; end;
procedure terminal_command_e1000status(Params : PParamList);
begin
console.writestringWND('Status: ', getTerminalHWND);
console.writeHexLnWND(readStatus, getTerminalHWND);
console.writestringWND('CTRL: ', getTerminalHWND);
console.writehexlnWND(readCommand(REG_CTRL), getTerminalHWND);
console.writestringWND('TX Curr: ', getTerminalHWND);
console.writeintWND(tx_curr, getTerminalHWND);
console.writestringWND('/', getTerminalHWND);
console.writeintlnWND(E1000_NUM_TX_DESC, getTerminalHWND);
console.writestringWND('RX Curr: ', getTerminalHWND);
console.writeintWND(rx_curr, getTerminalHWND);
console.writestringWND('/', getTerminalHWND);
console.writeintlnWND(E1000_NUM_RX_DESC, getTerminalHWND);
console.writestringWND('RX MEM: ', getTerminalHWND);
console.writeHexLnWND(uint32(@rx_descs[0]), getTerminalHWND);
console.writestringWND('TX MEM: ', getTerminalHWND);
console.writeHexLnWND(uint32(@tx_descs[0]), getTerminalHWND);
end;
function load(ptr : void) : boolean; function load(ptr : void) : boolean;
var var
PCI_Info : PPCI_Device; PCI_Info : PPCI_Device;
@ -539,7 +564,7 @@ begin
load:= true; load:= true;
if load then registercommandEx('E1000', @console_command_sendtest, 'Test sending a ARP Request.', true); if load then registercommandEx('E1000', @terminal_command_e1000status, 'E1000 Information.', true);
if load then registercommand('MAC', @console_command_mac, 'Print MAC Address.'); if load then registercommand('MAC', @console_command_mac, 'Print MAC Address.');
end; end;

View File

@ -9,14 +9,14 @@ const
VERSION_SUB = '1'; VERSION_SUB = '1';
REVISION = '677'; REVISION = '677';
RELEASE = 'ia'; RELEASE = 'ia';
LINE_COUNT = 28096; LINE_COUNT = 28115;
FILE_COUNT = 90; FILE_COUNT = 90;
DRIVER_COUNT = 32; DRIVER_COUNT = 32;
FPC_VERSION = '2.6.4'; FPC_VERSION = '2.6.4';
NASM_VERSION = '2.10.09'; NASM_VERSION = '2.10.09';
MAKE_VERSION = '3.81'; MAKE_VERSION = '3.81';
COMPILE_DATE = '12/05/18'; COMPILE_DATE = '12/05/18';
COMPILE_TIME = '10:20:16'; COMPILE_TIME = '10:33:59';
implementation implementation