X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/99182958d6e499bf78e5c496db45a7bfffba4504..c25f3f39d2a544a91a8a96ea90bda1dc1d77b76a:/net/net.c?ds=sidebyside diff --git a/net/net.c b/net/net.c index 13c16f2..01b4521 100644 --- a/net/net.c +++ b/net/net.c @@ -19,7 +19,7 @@ void eth_poll() _nic->poll(_nic, 0); - if ((c++) % 60) + if ((c++) % 30) return; for (i = 0; i < 1024; i++) @@ -33,9 +33,7 @@ void eth_poll() case 4: test[i] = 'L'; break; } } - outputf("eth_poll: Attempting to tx"); _nic->transmit("\x00\x03\x93\x87\x84\x8C", 0x1337, 1024, test); - outputf("eth_poll: tx complete"); } int eth_register(struct nic *nic) @@ -48,6 +46,7 @@ int eth_register(struct nic *nic) void eth_init() { - if (pci_probe_driver(a3c90x_driver)) - outputf("found 3c90x, hopefully!"); + /* Required for DMA to work. :( */ + smram_tseg_set_state(SMRAM_TSEG_OPEN); + pci_probe_driver(a3c90x_driver); }