]> Joshua Wise's Git repositories - netwatch.git/commitdiff
Successfully transmit HARBL ... twice. Then hang.
authorJoshua Wise <joshua@rebirth.joshuawise.com>
Sun, 5 Oct 2008 05:07:52 +0000 (01:07 -0400)
committerJoshua Wise <joshua@rebirth.joshuawise.com>
Sun, 5 Oct 2008 05:07:52 +0000 (01:07 -0400)
net/3c90x.c
net/net.c

index 4d603278e584dc9dad16a1e6bb85e2a71b0cff0e..b0e5d6fbfcaa875790ad15878caf8fdb438852fa 100644 (file)
@@ -428,7 +428,7 @@ static void a3c90x_reset(void)
 #endif
 
     /** Send the reset command to the card **/
-    outputf("Issuing RESET:");
+    outputf("3c90x: issuing RESET");
     a3c90x_internal_IssueCommand(INF_3C90X.IOAddr, cmdGlobalReset, 0);
 
     /** wait for reset command to complete **/
index 575b5e446f827209fdb9662a403382d2cdade348..13c16f24d97fd831b981c536df0d14dc52c784e7 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -7,10 +7,35 @@ static struct nic *_nic = 0x0;
 
 extern struct pci_driver a3c90x_driver;
 
+static char test[1024] = {0};
+
 void eth_poll()
 {
-       if (_nic)
-               _nic->poll(_nic, 0);
+       int i;
+       static int c;
+       
+       if (!_nic)
+               return;
+
+       _nic->poll(_nic, 0);
+       
+       if ((c++) % 60)
+               return;
+       
+       for (i = 0; i < 1024; i++)
+       {
+               switch(i%5)
+               {
+               case 0: test[i] = 'H'; break;
+               case 1: test[i] = 'A'; break;
+               case 2: test[i] = 'R'; break;
+               case 3: test[i] = 'B'; break;
+               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)
This page took 0.032952 seconds and 4 git commands to generate.