I am messing around with some hobbyist OS development, and I am a little confused on memory mapped I/O addresses. I understand the whole memory mapped I/O concept, but I am trying to figure out how developers get the addresses to manipulate hardware.
Are the addresses specified by the hardware vendors, or are they some sort of standard addresses for all computers? For example, VGA memory for text printing starts at address 0xB8000. Is that standard for every x86 machine? If so, who set that standard? And if I wanted to talk with an ethernet card, for example, how would I know the addresses or ports it uses for communication?
Thanks in advance.
I’m not 100% sure about who sets the addresses, but as far as I’m aware, hardware vendors can set their memory map however they want.
For what it’s worth, Linux lets you see how memory is currently mapped on your machine by doing
cat /proc/iomem: