Applicability of using the functions in linux/ioport.h , asm/io.h in device drivers
Hi,
While writing device drivers to access memory regions in peripherals there are some functions declared in <asm/io.h> , <linux/ioport.h>. But those are not applicable to all peripherals as there are many peripherals which are all not of same type of memory access. So those functions should be of some having generic type of memory access i guess correct me if not. If I am right, then how to decide that those functions can be applied for any peripheral?
Please help!
|