[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Help with some low level access


I'm was trying to "debug" a problem with a driver and my PowerPC board, and I wrote this simple program which works fine on an x86 Debian Woody box (and does not use x86 dependent functions as far as I can tell):

#include <stdio.h>
#include <sys/io.h>

int main() {
        ioperm(0x00, 0xff, 1);
        printf ("Status register: %x\n", inb(0x08));
        return 0;

It seems that sys/io does not exist (using Debian Woody/PowerPC).
I've searched around, but I can't find ioperm here, or inb even (except in the kernel), Probably this is a really dumb question, I'm a newbie to this - can anyone tell me what I'm doing wrong, or if I'm doing something really dumb.. (Is it possible even to use something like that on PowerPC? It works on the x86)..




Reply to: