Difference between revisions of "IO ports in Linux"
From Organic Design wiki
(may not need mircrocontroller for media center) |
m (Caretaker: categories) |
||
Line 1: | Line 1: | ||
− | [[Category: | + | [[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> | *#include <asm/io.h> |
Revision as of 17:23, 16 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()