端口映射的I / O(并行端口)


1

我正在阅读linux设备驱动程序,并从并行端口进行读写。我读了一些有关

ioperm(from, num, turn_on) , where:

from is the first port number to give access to
num the number of consecutive ports to give access to
turn_on is a boolean value.

Example: ioperm(0x300, 5, 1) would give access to ports 0x300 through 0x304 (a total of 5 ports). The last argument is a Boolean value specifying whether to give access to the program to the ports (true (1)) or to remove access (false (0)). You can call ioperm() multiple times to enable multiple non-consecutive ports.
ioperm() can only give access to ports 0x000 through 0x3ff;

对于上一段的最后一行,我对PC中的哪些端口映射到0x000或0x300感到困惑。据我了解,LPT1映射到0x378,LPT2映射到0X278。

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.