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)