For example let's assume that a PCIe end point requests 1 MB (MMIO) of memory which would be mapped into the systems memory map (memory address space) by BIOS during enumeration process.
So whenever the CPU accesses that memory region, it will be directed to the end point device. I am new to PCIe and this is my understanding about how PCIe device is targeted using MMIO (from systems memory map).
I have read somewhere that PCIe bus uses PCI address space. So where exactly the PCI address space plays its role into this process? Where does the PCI addresss space present?
Explanation with an example would be more helpful.