Forum Discussion
Altera_Forum
Honored Contributor
21 years agooutb()
Hello, Can anyone help me with this simple issue? how to compile such simple test: # include <sys/io.h> int main(void) { ioperm(0x340,0x342,1); outb(0x340,0x0); ...
Altera_Forum
Honored Contributor
21 years agoIt is indeed possible to use outb() and similar in userspace by including <asm/io.h>, or at least it should be.
As far as I remember all the code in asm/io.h is inside# ifdef __KERNEL__, so you have to do some adjustments to this file to be able to access the IO-functions from userspace (refer to f.ex i386).