Browse Source

Stripped references to variables in C code.

tags/v0.9.3
Michael Brown 19 years ago
parent
commit
0dc98309b2
1 changed files with 1 additions and 7 deletions
  1. 1
    7
      src/drivers/net/3c509.h

+ 1
- 7
src/drivers/net/3c509.h View File

53
 #define EP_ID_PORT	0x100
53
 #define EP_ID_PORT	0x100
54
 #endif
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
  * Commands to read/write EEPROM trough EEPROM command register (Window 0,
57
  * Commands to read/write EEPROM trough EEPROM command register (Window 0,
64
  * Offset 0xa)
58
  * Offset 0xa)
75
  * Some short functions, worth to let them be a macro
69
  * Some short functions, worth to let them be a macro
76
  */
70
  */
77
 #define is_eeprom_busy(b) (inw((b)+EP_W0_EEPROM_COMMAND)&EEPROM_BUSY)
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
  *

Loading…
Cancel
Save