Dear Claudio Fiorini, > > > i preferer do something like a real device driver, otherwise i never > learn > > > how to do that! > > > Because if i use inb or outb i don't need to register nothing, those > > > functions i use in user-space. > > > > I mean the inb in the kernel space only. Check it out pls... > > Ok > > > > > Or u can straight away access those address using "read" kernel > > API's. There are 8 bit read, 16 bit read(readw), etc,... > > > > can you show me a small example pls? short int s; s = readw(your_par_port_addr); the definition for the readw for intel machine is given in include/asm-i386/io.h 142 #define readb(addr) (*(volatile unsigned char *) (addr)) 143 #define readw(addr) (*(volatile unsigned short *) (addr)) 144 #define readl(addr) (*(volatile unsigned int *) (addr)) Please correct me if I am wrong... > > > Or if its memory mapped just access like a pointer. :-) Regards, Shine Mohamed Jabbar -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/