阅读:1212回复:5
那位在linux做过从普通并口读入状态信息或数据?
请帮忙提供点信息,多谢!!
|
|
沙发#
发布于:2002-12-03 11:45
I did it before, to read and write data or status data from printer port. If you have some question, post it.
First call ioperm to get io privilage. Then enssue your i/o staff. |
|
|
板凳#
发布于:2002-12-03 13:14
我也试过ioperm 还有 另外的open(/dev/port),lseek(0x378),read,write 都不行,(我在ewdhat 8.0下做的)
|
|
地板#
发布于:2002-12-03 15:28
我也试过ioperm 还有 另外的open(/dev/port),lseek(0x378),read,write 都不行,(我在ewdhat 8.0下做的) does ioperm success? use inb/oub or inw/ouw to do port io, don\'t use read/write. [编辑 - 12/3/02 by yftty] |
|
|
地下室#
发布于:2002-12-03 18:39
我记得应该有读写并口的函数的
|
|
5楼#
发布于:2002-12-05 15:57
用open(/dev/port) lseek(0x378),read 成功,write 不成功
|
|