瀏覽代碼

Optimise ISAPNP_READ_PORT_STEP

tags/v0.9.3
Michael Brown 20 年之前
父節點
當前提交
57070797e3
共有 1 個檔案被更改,包括 7 行新增1 行删除
  1. 7
    1
      src/include/isapnp.h

+ 7
- 1
src/include/isapnp.h 查看文件

53
 					 * comment.  0x203 probably
53
 					 * comment.  0x203 probably
54
 					 * clashes with something. */
54
 					 * clashes with something. */
55
 #define ISAPNP_READ_PORT_MAX	0x3ff
55
 #define ISAPNP_READ_PORT_MAX	0x3ff
56
-#define ISAPNP_READ_PORT_STEP	0x08	/* Can be any multiple of 4 */
56
+#define ISAPNP_READ_PORT_STEP	0x10	/* Can be any multiple of 4
57
+					 * according to the spec, but
58
+					 * since ISA I/O addresses are
59
+					 * allocated in blocks of 16,
60
+					 * it makes no sense to use
61
+					 * any value less than 16.
62
+					 */
57
 
63
 
58
 /* Registers */
64
 /* Registers */
59
 #define ISAPNP_READPORT			0x00
65
 #define ISAPNP_READPORT			0x00

Loading…
取消
儲存