|
TT Zephyr Platforms 19.5.0-rc1
Tenstorrent Firmware
|
Go to the source code of this file.
Data Structures | |
| struct | force_fan_speed_rqst |
| Host request to force the fan speed. More... | |
| struct | aiclk_set_speed_rqst |
| Host request to adjust the AICLK speed. More... | |
| struct | power_setting_rqst |
| Host request to adjust the power settings. More... | |
| struct | set_voltage_rqst |
| Host request to set voltage. More... | |
| struct | get_voltage_rqst |
| Host request to get voltage. More... | |
| struct | switch_vout_control_rqst |
| Host request to switch VOUT control. More... | |
| struct | switch_clk_scheme_rqst |
| Host request to switch clock scheme. More... | |
| struct | get_freq_curve_from_voltage_rqst |
| Host request to get frequency curve from voltage. More... | |
| struct | get_voltage_curve_from_freq_rqst |
| Host request to get voltage curve from frequency. More... | |
| struct | debug_noc_translation_rqst |
| Host request for debug NOC translation. More... | |
| struct | dmc_ping_rqst |
| Host request to ping DMC. More... | |
| struct | send_pcie_msi_rqst |
| Host request to send PCIE MSI. More... | |
| Host request for I2C message transaction. More... | |
| struct | led_blink_rqst |
| Host request to blink the LED. More... | |
| struct | test_rqst |
| Host request for test message. More... | |
| struct | asic_state_rqst |
| Host request to change ASIC state. More... | |
| union | request |
| A tenstorrent host request. More... | |
| struct | response |
| struct | msgqueue_handler |
Macros | |
| #define | NUM_MSG_QUEUES 4 |
| #define | MSG_QUEUE_SIZE 4 |
| #define | MSG_QUEUE_POINTER_WRAP (2 * MSG_QUEUE_SIZE) |
| #define | REQUEST_MSG_LEN 8 |
| #define | RESPONSE_MSG_LEN 8 |
| #define | MSG_TYPE_INDEX 0 |
| #define | MSG_TYPE_MASK 0xFF |
| #define | MSG_TYPE_SHIFT 0 |
| #define | MESSAGE_QUEUE_STATUS_MESSAGE_RECOGNIZED 0xff |
| #define | MESSAGE_QUEUE_STATUS_SCRATCH_ONLY 0xfe |
| #define | REGISTER_MESSAGE(msg, func) |
Typedefs | |
| typedef uint8_t(* | msgqueue_request_handler_t) (const union request *req, struct response *rsp) |
Functions | |
| void | process_message_queues (void) |
| void | msgqueue_register_handler (uint32_t msg_code, msgqueue_request_handler_t handler) |
| int | msgqueue_request_push (uint32_t msgqueue_id, const union request *request) |
| int | msgqueue_request_pop (uint32_t msgqueue_id, union request *request) |
| int | msgqueue_response_push (uint32_t msgqueue_id, const struct response *response) |
| int | msgqueue_response_pop (uint32_t msgqueue_id, struct response *response) |
| void | init_msgqueue (void) |
| #define MESSAGE_QUEUE_STATUS_MESSAGE_RECOGNIZED 0xff |
| #define MESSAGE_QUEUE_STATUS_SCRATCH_ONLY 0xfe |
| #define MSG_QUEUE_POINTER_WRAP (2 * MSG_QUEUE_SIZE) |
| #define MSG_QUEUE_SIZE 4 |
| #define MSG_TYPE_INDEX 0 |
| #define MSG_TYPE_MASK 0xFF |
| #define MSG_TYPE_SHIFT 0 |
| #define NUM_MSG_QUEUES 4 |
| #define REGISTER_MESSAGE | ( | msg, | |
| func ) |
| #define REQUEST_MSG_LEN 8 |
| #define RESPONSE_MSG_LEN 8 |
| void init_msgqueue | ( | void | ) |
| void msgqueue_register_handler | ( | uint32_t | msg_code, |
| msgqueue_request_handler_t | handler ) |
| void process_message_queues | ( | void | ) |