瀏覽代碼

Stripped references to variables in C code.

tags/v0.9.3
Michael Brown 19 年之前
父節點
當前提交
0dc98309b2
共有 1 個檔案被更改,包括 1 行新增7 行删除
  1. 1
    7
      src/drivers/net/3c509.h

+ 1
- 7
src/drivers/net/3c509.h 查看文件

@@ -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
  *

Loading…
取消
儲存