Information

PCI Express Interface Controller
MPC8308 PowerQUICC II Pro Processor Reference Manual, Rev. 1
Freescale Semiconductor 14-125
a memory read from the mailbox data register and read the message. The following steps are required in
order to use the outbound mailbox mechanism.
1. The RC should set the MSIE bit of the PCI Express MSI message control register (address 0x72 of
the configuration space) to enable the generation of MSI.
2. The EP local host should set the OMBIE bit of the PCI Express host interrupt enable register
(PEX_HIER) to enable interrupt generation to the PCI Express (MSI) at the event of setting the
READY bit of the PCI Express outbound mailbox control register (PEX_OMBCR).
3. The EP local host should program the IVEC field of the PCI Express host miscellaneous interrupt
vector register (PEX_HMIVR) with an appropriate vector value. This value, along with the value
programmed in the EP’s PCI Express MSI message control registers MME field determines the
MSI message data sent to the RC. For example, if the MME field has a value of N, then the lower
N bits of the MSI message data are replaced with the lower N bits of the PEX_HMIVR register.
4. The EP local host should program the MBD field of the PCI Express outbound mailbox data
register (PEX_OMBDR) with the message to be read by the PCI Express remote device (user
defined).
5. The EP local host should set the READY bit of the PCI Express outbound mailbox control register
(PEX_OMBCR). This will generate an interrupt (MSI) to the PCI Express root complex.
6. The PCI Express RC, after receiving the MSI will perform a memory read to the EP’s PCI Express
outbound mailbox data register (PEX_OMBDR) and get the message content.
7. The PCI Express RC should perform a memory write to clear the READY bit of the EP’s PCI
Express outbound mailbox control register (PEX_OMBCR).
8. The EP can repeat steps 3–5 with an appropriate MSI and message data after verifying that the
PEX_OMBCR[READY] is cleared.
14.6.3.2 Inbound Mailbox
The remote PCI Express RC device uses the inbound mailbox messages to signal the EP local host across
the PCI Express link. The RC performs a memory write and stores the required message in the PCI Express
inbound mailbox data register (PEX_IMBDR) and then initiates an interrupt to the local host by
performing a memory write and setting the READY bit of the PCI Express inbound mailbox control
register (PEX_IMBCR). When the local host detects the interrupt, it can read the message from the
mailbox data register. The following steps are required in order to use the outbound mailbox mechanism.
1. The EP local host should enable PCI Express interrupts by programming the integrated
programmable interrupt controller (IPIC).
2. The EP local host should set the IMBIE bit of the CSB system miscellaneous interrupt enable
register (PEX_CSMIER), to allow interrupt at the event of mailbox ready.
3. The PCI Express RC should perform a memory write and store the required message in the EP’s
PCI Express Inbound Mailbox Data Register (PEX_IMBDR).
4. The PCI Express RC should perform a memory write and set the READY bit of the EP’s
PCI Express inbound mailbox control register (PEX_IMBCR). This will issue an interrupt to the
local host.