The /proc/interrupts, ioports, dma, pci entryes are VERY useful for me
when I'm hacking my hardware, but monday I felt that /proc/memzones was
lacking. This entry should report the RAM used by the kernel, for general
storage as well as for memory mapped hardware. This would also avoid
conflicts between hardware that can choose their memory mapping address.
Well, here is my proposed patch. It is against kernel 2.0.29, but I
think this should be very easy to adapt to any newer version.
As an example of the modifications this involves on memory-mappign device
drivers, I've done the ibm token ring driver patch too.
The result looks like this :
0000-9ffff : ram
c0000-c7fff : rom
c8000-c87ff : rom
d1e00-d1fff : ibmtr mmio
d4000-d7fff : ibmtr shared RAM
266000-1ffffff : ram
It would be most useful if more drivers used this....
Comments, flames, remarks welcome....