Contents
Paragraph
Number
Title
Page
Number
MOTOROLA
Contents
ix
Appendix E
MPC8240 Drivers
E.1
E.1.1
E.1.2
E.1.3
E.1.4
E.1.5
E.1.5.1
E.1.6
E.2
E.2.1
E.2.2
E.2.3
E.2.3.1
E.2.3.2
E.2.4
E.2.4.1
E.2.5
E.2.5.1
E.2.6
E.3
E.3.1
E.3.1.1
E.3.1.2
E.3.1.3
E.3.1.4
E.3.1.4.1
E.3.1.4.2
E.3.1.4.3
E.3.2
E.3.2.1
E.3.2.2
E.3.2.3
E.3.2.3.1
E.3.2.3.2
E.3.2.4
E.3.2.4.1
E.3.2.4.2
E.3.2.4.3
E.4
MPC8240 DMA Memory Controller ..................................................................E-1
Background......................................................................................................E-1
Overview..........................................................................................................E-2
DMA Application Program Interface (API)....................................................E-3
API Example Usage.........................................................................................E-4
DMA Driver Library Internals (DLI)..............................................................E-6
Common Data Structures and Values..........................................................E-6
Function Descriptions of DMA Driver Library Internals..............................E-10
MPC8240 I2C Driver Library............................................................................E-12
Background....................................................................................................E-12
Overview........................................................................................................E-13
I2C Application Program Interface (API) .....................................................E-13
API Functions Description ........................................................................E-13
API Example Usage...................................................................................E-15
I2C Driver Library Internals (DLI)................................................................E-17
Common Data Structures and Values........................................................E-17
Kahlua I2C Driver Library Internals Function Descriptions.........................E-18
DLI Functions Written but Not Used and Not Tested ...............................E-24
I2C Support Functions...................................................................................E-25
MPC8240 I2O Doorbell Driver.........................................................................E-26
I2O Description of Doorbell Communication Between Agent and Host......E-26
System Startup and Memory Map Initialization........................................E-26
Interrupt Service Routines: I2O_ISR_host() and I2O_ISR_agent()..........E-27
Enable Doorbell Interrupts ........................................................................E-28
Writing and Reading Doorbell Registers...................................................E-29
Host Rings an Agent via Agent’s Inbound Doorbell.............................E-29
Agent Rings a Host via Agent’s Outbound Doorbell............................E-29
Descriptions of the I2O Library Functions............................................E-32
I2C Driver Library.........................................................................................E-34
Background................................................................................................E-34
Overview....................................................................................................E-34
I2C Application Program Interface (API) .................................................E-35
API Functions Description ....................................................................E-35
API Example Usage...............................................................................E-36
I2C Driver Library Internals (DLI)............................................................E-38
Common Data Structures and Values....................................................E-39
Kahlua I2C Driver Library Internals Function Descriptions.................E-40
I2C Support Functions...........................................................................E-46
MPC8240 EPIC Interrupt Driver.......................................................................E-47
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.