The AFCPUPXA270 class definition. More...
#include <AFCPUPXA270.h>
Public Member Functions | |
| AFCPUHardware (AFCore *inCore) | |
| Constructor for the AFCPUPXA270. | |
| virtual AF_STATUS | Init () |
| Initializes the CPU. | |
| virtual BOOL | Deinit () |
| Deinitializes the CPU. | |
| virtual VOID | OutputDMAISR () |
| Clears the output interrupt pending bit. | |
| virtual VOID | InputDMAISR () |
| Clears the input interrupt pending bit. | |
| virtual BOOL | InitInputDMA () |
| Initializes input DMA. | |
| virtual BOOL | InitOutputDMA () |
| Initializes output DMA. | |
| virtual VOID | StartInputDMA () |
| Starts the input DMA transfer (CPU <= codec). | |
| virtual VOID | StartOutputDMA () |
| Starts the output DMA transfer (CPU => codec). | |
| virtual VOID | StopInputDMA () |
| Stops the input DMA transfer. | |
| virtual VOID | StopOutputDMA () |
| Stops the output DMA transfer. | |
| virtual DWORD | GetAudioDMAPageSize () |
| Retrieve the DMA page size. | |
| virtual DWORD | GetAudioDMABufferSize () |
| Retrieve the DMA buffer size. | |
| virtual PBYTE * | GetOutputDMABufferVirtual () |
| Method to get a pointer to a virtual output DMA buffer. | |
| virtual PBYTE * | GetInputDMABufferVirtual () |
| Method to get a pointer to a virtual input DMA buffer. | |
| virtual VOID | OutputDMAThreadInterruptDoneCallback (DWORD outputTransferred, DWORD outputDMAStatus) |
| Output DMA transfer done callback. | |
| virtual VOID | InputDMAThreadInterruptDoneCallback (DWORD inputTransferred, DWORD inputDMAStatus) |
| Input DMA transfer done callback. | |
| virtual AF_STATUS | InitI2SBus (AFI2SBusCap *cap) |
| Initializes the I2S bus. | |
| virtual VOID | StartOutputI2S () |
| Starts the output I2S transfer. | |
| virtual VOID | StopOutputI2S () |
| Stops the output I2S transfer. | |
| virtual VOID | StartInputI2S () |
| Starts the input I2S transfer. | |
| virtual VOID | StopInputI2S () |
| Stops the input I2S transfer. | |
| virtual BOOL | PowerUp () |
| S3C6400 CPU power up routine. | |
| virtual BOOL | PowerDown () |
| S3C6400 CPU power down routine. | |
| VOID | DMAThread () |
The AFCPUPXA270 class definition.
Definition at line 104 of file AFCPUPXA270.h.
| AFCPUHardware::AFCPUHardware | ( | AFCore * | inCore | ) | [inline] |
Constructor for the AFCPUPXA270.
In this method the capabilities of the CPU are advertised.
| inCore | A pointer to the core (AFCore type). |
Definition at line 118 of file AFCPUPXA270.h.
| BOOL AFCPUHardware::Deinit | ( | ) | [virtual] |
Deinitializes the CPU.
Actions performed include: unmapping the registers, releasing DMA channels, etc.
| TRUE | Deinitialization succeeded. | |
| FALSE | Deinitialization failed. |
Implements AFCPU.
Definition at line 520 of file AFCPUPXA270.cpp.
| VOID AFCPUHardware::DMAThread | ( | ) |
Definition at line 327 of file AFCPUPXA270.cpp.
| virtual DWORD AFCPUHardware::GetAudioDMABufferSize | ( | ) | [inline, virtual] |
Retrieve the DMA buffer size.
Implements AFCPU.
Definition at line 261 of file AFCPUPXA270.h.
| virtual DWORD AFCPUHardware::GetAudioDMAPageSize | ( | ) | [inline, virtual] |
Retrieve the DMA page size.
Implements AFCPU.
Definition at line 247 of file AFCPUPXA270.h.
| virtual PBYTE* AFCPUHardware::GetInputDMABufferVirtual | ( | ) | [inline, virtual] |
Method to get a pointer to a virtual input DMA buffer.
Implements AFCPU.
Definition at line 289 of file AFCPUPXA270.h.
| virtual PBYTE* AFCPUHardware::GetOutputDMABufferVirtual | ( | ) | [inline, virtual] |
Method to get a pointer to a virtual output DMA buffer.
Implements AFCPU.
Definition at line 275 of file AFCPUPXA270.h.
| AF_STATUS AFCPUHardware::Init | ( | ) | [virtual] |
Initializes the CPU.
Actions performed include: mapping the registers, DMA buffers, etc.
Implements AFCPU.
Definition at line 647 of file AFCPUPXA270.cpp.
| AF_STATUS AFCPUHardware::InitI2SBus | ( | AFI2SBusCap * | cap | ) | [virtual] |
Initializes the I2S bus.
| cap | Pointer to the particular I2S configuration (AFI2SBusCap) to be initialized. |
Implements AFCPU.
Definition at line 585 of file AFCPUPXA270.cpp.
| BOOL AFCPUHardware::InitInputDMA | ( | ) | [virtual] |
Initializes input DMA.
| TRUE | Initialization succeeded. | |
| FALSE | Intialization failed. |
Implements AFCPU.
Definition at line 170 of file AFCPUPXA270.cpp.
| BOOL AFCPUHardware::InitOutputDMA | ( | ) | [virtual] |
Initializes output DMA.
| TRUE | Initialization succeeded. | |
| FALSE | Intialization failed. |
Implements AFCPU.
Definition at line 185 of file AFCPUPXA270.cpp.
| VOID AFCPUHardware::InputDMAISR | ( | ) | [virtual] |
Clears the input interrupt pending bit.
Implements AFCPU.
Definition at line 387 of file AFCPUPXA270.cpp.
| VOID AFCPUHardware::InputDMAThreadInterruptDoneCallback | ( | DWORD | inputTransferred, | |
| DWORD | inputDMAStatus | |||
| ) | [virtual] |
Input DMA transfer done callback.
This method allows the CPU to perform hardware-specific actions after a single input DMA transfer.
| inputTransferred | The number of bytes to be transferred. | |
| inputDMAStatus | A flag indicating which DMA buffer to enable. |
Implements AFCPU.
Definition at line 123 of file AFCPUPXA270.cpp.
| VOID AFCPUHardware::OutputDMAISR | ( | ) | [virtual] |
Clears the output interrupt pending bit.
Implements AFCPU.
Definition at line 399 of file AFCPUPXA270.cpp.
| VOID AFCPUHardware::OutputDMAThreadInterruptDoneCallback | ( | DWORD | outputTransferred, | |
| DWORD | outputDMAStatus | |||
| ) | [virtual] |
Output DMA transfer done callback.
This method allows the CPU to perform hardware-specific actions after a single output DMA transfer.
| outputTransferred | The number of bytes to be transferred. | |
| outputDMAStatus | A flag indicating which DMA buffer to enable. |
Implements AFCPU.
Definition at line 108 of file AFCPUPXA270.cpp.
| BOOL AFCPUHardware::PowerDown | ( | ) | [virtual] |
S3C6400 CPU power down routine.
| TRUE | Powering down succeeded. | |
| FALSE | Powering down failed. |
Implements AFCPU.
Definition at line 690 of file AFCPUPXA270.cpp.
| BOOL AFCPUHardware::PowerUp | ( | ) | [virtual] |
S3C6400 CPU power up routine.
| TRUE | Powering up succeeded. | |
| FALSE | Powering up failed. |
Implements AFCPU.
Definition at line 677 of file AFCPUPXA270.cpp.
| VOID AFCPUHardware::StartInputDMA | ( | ) | [virtual] |
Starts the input DMA transfer (CPU <= codec).
Implements AFCPU.
Definition at line 138 of file AFCPUPXA270.cpp.
| VOID AFCPUHardware::StartInputI2S | ( | ) | [virtual] |
| VOID AFCPUHardware::StartOutputDMA | ( | ) | [virtual] |
Starts the output DMA transfer (CPU => codec).
Implements AFCPU.
Definition at line 149 of file AFCPUPXA270.cpp.
| VOID AFCPUHardware::StartOutputI2S | ( | ) | [virtual] |
| VOID AFCPUHardware::StopInputDMA | ( | ) | [virtual] |
| VOID AFCPUHardware::StopInputI2S | ( | ) | [virtual] |
| VOID AFCPUHardware::StopOutputDMA | ( | ) | [virtual] |
| VOID AFCPUHardware::StopOutputI2S | ( | ) | [virtual] |
1.6.1