Difference between revisions of "IO ports in Linux"
From Organic Design wiki
m (Caretaker: categories) |
m |
||
Line 1: | Line 1: | ||
[[Category:Hardware]][[Category:Media Center]] | [[Category:Hardware]][[Category:Media Center]] | ||
From linux you need to be ''setuid()'' to get to the pins of an IO port. This is not problem because we run as root anyway. The function prototypes to look at are: | From linux you need to be ''setuid()'' to get to the pins of an IO port. This is not problem because we run as root anyway. The function prototypes to look at are: | ||
− | * | + | *include <asm/io.h> |
*ioperm() | *ioperm() | ||
*inw() | *inw() |
Revision as of 21:20, 21 March 2007
From linux you need to be setuid() to get to the pins of an IO port. This is not problem because we run as root anyway. The function prototypes to look at are:
- include <asm/io.h>
- ioperm()
- inw()
- outw()