#include <types.h>#include <broadway.h>Go to the source code of this file.
Data Structures | |
| struct | dsp_ucode_t |
Functions | |
| int | dsp_initialize (void) |
| Initialize the DSP subsystem. | |
| int | dsp_shutdown (void) |
| Shut down the DSP subsystem. | |
| void | dsp_reset (void) |
| Resets the DSP. | |
| void | dsp_send_mail (u32 data) |
| Sends mail to the DSP. | |
| u32 | dsp_read_outbox (void) |
| Reads mail sent to the DSP. | |
| u32 | dsp_recv_mail (void) |
| Recieves mail from the DSP. | |
| BOOL | dsp_check_inbox (void) |
| Checks if the incoming mail is valid. | |
| BOOL | dsp_check_outbox (void) |
| Checks if the outgoing mail is valid. | |
| BOOL | dsp_halt (void) |
| Halts the DSP. | |
| BOOL | dsp_unhalt (void) |
| Unhalts the DSP. | |
| int | irq_dsp_register_handler (int(*exec)(u32 irq, void *data), void *data) |
| Register the DSP IRQ handler. | |
| irq_handler_t | irq_dsp_get_handler (void) |
| Gets the DSP IRQ handler. | |
| void | irq_dsp_enable (void) |
| Enables the DSP IRQ. | |
| void | irq_dsp_disable (void) |
| Disables the DSP IRQ. | |
| int | dsp_upload_ucode (dsp_ucode_t ucode) |
| Uploads a uCode to the DSP. | |
An abstraction of the interface to the DSP. Buggy.
Disassemble the DSP init code.
Clean up dsp_initialize()
| BOOL dsp_check_inbox | ( | void | ) |
Checks if the incoming mail is valid.
| BOOL dsp_check_outbox | ( | void | ) |
Checks if the outgoing mail is valid.
| BOOL dsp_halt | ( | void | ) |
Halts the DSP.
| int dsp_initialize | ( | void | ) |
Initialize the DSP subsystem.
Initializes the DSP subsystem, and performs all other required initialization tasks.
| u32 dsp_read_outbox | ( | void | ) |
Reads mail sent to the DSP.
| u32 dsp_recv_mail | ( | void | ) |
Recieves mail from the DSP.
| void dsp_send_mail | ( | u32 | data | ) |
Sends mail to the DSP.
| data | the data to be sent to the DSP. |
| int dsp_shutdown | ( | void | ) |
Shut down the DSP subsystem.
Shuts down the DSP subsystem, and performs all other required shut down tasks.
| BOOL dsp_unhalt | ( | void | ) |
Unhalts the DSP.
| int dsp_upload_ucode | ( | dsp_ucode_t | ucode | ) |
Uploads a uCode to the DSP.
The DSP must not be halted when this function is called.
| ucode | the uCode to upload to the DSP. |
| void irq_dsp_disable | ( | void | ) |
Disables the DSP IRQ.
| void irq_dsp_enable | ( | void | ) |
Enables the DSP IRQ.
| irq_handler_t irq_dsp_get_handler | ( | void | ) |
Gets the DSP IRQ handler.
| int irq_dsp_register_handler | ( | int(*)(u32 irq, void *data) | exec, | |
| void * | data | |||
| ) |
Register the DSP IRQ handler.
| exec | the callback to be called when the IRQ fires. Pass NULL to unregister the IRQ. | |
| data | the data to be passed to the IRQ when it fires. |
1.6.3