|
@@ -53,12 +53,6 @@
|
53
|
53
|
#define EP_ID_PORT 0x100
|
54
|
54
|
#endif
|
55
|
55
|
|
56
|
|
-/*
|
57
|
|
- * some macros to acces long named fields
|
58
|
|
- */
|
59
|
|
-#define IS_BASE (eth_nic_base)
|
60
|
|
-#define BASE (eth_nic_base)
|
61
|
|
-
|
62
|
56
|
/*
|
63
|
57
|
* Commands to read/write EEPROM trough EEPROM command register (Window 0,
|
64
|
58
|
* Offset 0xa)
|
|
@@ -75,7 +69,7 @@
|
75
|
69
|
* Some short functions, worth to let them be a macro
|
76
|
70
|
*/
|
77
|
71
|
#define is_eeprom_busy(b) (inw((b)+EP_W0_EEPROM_COMMAND)&EEPROM_BUSY)
|
78
|
|
-#define GO_WINDOW(x) outw(WINDOW_SELECT|(x), BASE+EP_COMMAND)
|
|
72
|
+#define GO_WINDOW(b,x) outw(WINDOW_SELECT|(x), (b)+EP_COMMAND)
|
79
|
73
|
|
80
|
74
|
/**************************************************************************
|
81
|
75
|
*
|