Download "user manual"
Transcript
MPC8240 I2O Doorbell Driver • Returns:Contents of agent's inbound (if loc = LOCAL) or outbound (if loc REMOTE) doorbell register. Description: Returns content of specified doorbell register and clears the doorbell register. void I2ODBPost( LOCATION loc,unsigned int base,unsigned int msg ) • loc = LOCAL or REMOTE: Use LOCAL if called from agent, REMOTE ifcalled from host. This controls the use of the base parameter as PCSR (ifREMOTE) or EUMB (if LOCAL) and selection of outbound (if REMOTE) or inbound(if LOCAL) doorbell registers. • base is the base address of PCSR or EUMB • msg is the 32 bit value written to the specified doorbell register Description: The 32 bit value is written to the specified doorbell register. I2OSTATUS I2OInMsgStatGet(unsigned int eumbbarI2OIMSTAT *val) • eumbbar is the base address of the agent's EUMB • *val receives the agent's inbound message interrupt statusregister • Returns: I2OSUCCESS Description: The agent's Inbound Message Interrupt Status Register (IMISR)content is masked by the agent's Inbound Message Interrupt Mask Register(IMIMR) and placed in the address given in the val parameter. The IMISRregister is cleared. I2OSTATUS I2OOutMsgStatGet(unsigned int pcsrbar,I2OOMSTAT *val) • pcsrbar is the base address of the agent's PCSR • *val receives the agent's outbound message interrupt statusregister • Returns: I2OSUCCESS Description: The agent's Outbound Message Interrupt Status Register (OMISR)content is masked by the agent's Outbound Message Interrupt Mask Register(OMIMR) and placed in the address given in the val parameter. The OMISRregister is cleared. K.2 I2C Driver Library This section provides information about the generic Application Program Interface (API) to the I2C Driver Library as well as information about the implementation of the Kahlua-specific I2C Driver Library Internals (DLI). Appendix K. MPC8240 I2O Doorbell Driver 10K-143