Hello

I want to write a driver to write directly to some specific physical address in the system memory. I am new to driver programming and I used a simple parallel port driver to learn driver writing. This driver uses inb() ant outb() functions to write to the address of parallel port. But these functions do not write to some address in physical ram. Kindly somebody tell me how I can write to a specific physical address in ram. Is there any way I can tell my kernel that the address on which I want to write belongs to i/o ports? so that I could be able to use inb() and outb() to write to that address successfully? because when I deference that specific address, segmentation fault occurs

Regards,
Atif Shabir