|
iPXE
|
#include <ipxe/pci.h>#include <ipxe/pcibackup.h>#include <byteswap.h>#include <errno.h>#include <ipxe/io.h>#include <stdio.h>#include <unistd.h>#include "CIB_PRM.h"#include "mlx_utils/include/public/mlx_utils.h"Go to the source code of this file.
Data Structures | |
| struct | golan_cmdq_md |
| struct | golan_uar |
| struct | golan_firmware_area |
| struct | golan_send_wqe_ud |
| union | golan_send_wqe |
| struct | golan_recv_wqe_ud |
| struct | golan_recv_wq |
| struct | golan_send_wq |
| struct | golan_queue_pair |
| struct | golan_completion_queue |
| struct | golan_event_queue |
| struct | golan_port |
| struct | golan_mboxes |
| struct | golan |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER) | |
| #define GOLAN_PCI_CONFIG_BAR_SIZE 0x100000 |
Definition at line 35 of file golan.h.
Referenced by golan_pci_init().
| #define GOLAN_PAS_SIZE sizeof(uint64_t) |
Definition at line 37 of file golan.h.
Referenced by golan_create_cq(), golan_create_eq(), golan_create_qp_aux(), golan_provide_pages(), and golan_take_pages().
| #define GOLAN_INVALID_LKEY 0x00000100UL |
Definition at line 39 of file golan.h.
Referenced by golan_create_qp_aux().
| #define GOLAN_PORT_BASE 1 |
Definition at line 42 of file golan.h.
Referenced by golan_probe_normal().
| #define GOLAN_HCA_BAR PCI_BASE_ADDRESS_0 |
Definition at line 45 of file golan.h.
Referenced by golan_alloc_uar(), and golan_pci_init().
| #define GOLAN_HCR_MAX_WAIT_MS 10000 |
Definition at line 47 of file golan.h.
Referenced by golan_cmd_wait().
| #define GOLAN_PAGE_SHIFT 12 |
Definition at line 51 of file golan.h.
Referenced by golan_alloc_uar().
| #define GOLAN_PAGE_SIZE (1 << GOLAN_PAGE_SHIFT) |
Definition at line 52 of file golan.h.
Referenced by golan_alloc_uar(), golan_cmd_init(), golan_cmd_uninit(), golan_create_cq(), golan_create_eq(), golan_create_qp_aux(), golan_destory_eq(), golan_destroy_cq(), golan_destroy_qp(), and golan_provide_pages().
| #define GOLAN_PAGE_MASK (GOLAN_PAGE_SIZE - 1) |
Definition at line 53 of file golan.h.
Referenced by golan_provide_pages().
| #define MAX_MBOX ( GOLAN_PAGE_SIZE / MAILBOX_STRIDE ) |
| #define DEF_CMD_IDX 1 |
Definition at line 56 of file golan.h.
Referenced by golan_alloc_pd(), golan_alloc_uar(), golan_core_enable_hca(), golan_create_cq(), golan_create_eq(), golan_create_mkey(), golan_create_qp_aux(), golan_dealloc_pd(), golan_dealloc_uar(), golan_destory_eq(), golan_destroy_cq(), golan_destroy_mkey(), golan_destroy_qp(), golan_disable_hca(), golan_hca_init(), golan_mcast_attach(), golan_mcast_detach(), golan_modify_qp(), golan_modify_qp_to_rst(), golan_qry_hca_cap(), golan_query_vport_context(), golan_query_vport_gid(), golan_query_vport_pkey(), golan_set_hca_cap(), and golan_teardown_hca().
| #define MEM_CMD_IDX 0 |
Definition at line 57 of file golan.h.
Referenced by golan_handle_pages(), golan_provide_pages(), and golan_take_pages().
| #define NO_MBOX 0xffff |
Definition at line 58 of file golan.h.
Referenced by golan_alloc_pd(), golan_alloc_uar(), golan_calc_sig(), golan_core_enable_hca(), golan_create_cq(), golan_create_eq(), golan_create_mkey(), golan_create_qp_aux(), golan_dealloc_pd(), golan_dealloc_uar(), golan_destory_eq(), golan_destroy_cq(), golan_destroy_mkey(), golan_destroy_qp(), golan_disable_hca(), golan_handle_pages(), golan_hca_init(), golan_mcast_attach(), golan_mcast_detach(), golan_modify_qp(), golan_modify_qp_to_rst(), golan_qry_hca_cap(), golan_set_access_reg(), golan_set_hca_cap(), golan_teardown_hca(), and write_cmd().
| #define MEM_MBOX MEM_CMD_IDX |
Definition at line 59 of file golan.h.
Referenced by golan_provide_pages(), and golan_take_pages().
| #define GEN_MBOX DEF_CMD_IDX |
Definition at line 60 of file golan.h.
Referenced by golan_create_cq(), golan_create_eq(), golan_create_mkey(), golan_create_qp_aux(), golan_mcast_attach(), golan_mcast_detach(), golan_modify_qp(), golan_qry_hca_cap(), golan_query_vport_context(), golan_query_vport_gid(), golan_query_vport_pkey(), and golan_set_hca_cap().
| #define MAX_PASE_MBOX ((GOLAN_CMD_PAS_CNT) - 2) |
Definition at line 64 of file golan.h.
Referenced by golan_provide_pages(), and golan_take_pages().
| #define CMD_STATUS | ( | golan, | |
| idx ) |
Definition at line 66 of file golan.h.
Referenced by golan_cmd_wait().
| #define CMD_SYND | ( | golan, | |
| idx ) |
Definition at line 67 of file golan.h.
Referenced by golan_provide_pages(), and golan_take_pages().
| #define QRY_PAGES_OUT | ( | golan, | |
| idx ) |
Definition at line 68 of file golan.h.
Referenced by golan_handle_pages().
| #define VIRT_2_BE64_BUS | ( | addr | ) |
Definition at line 70 of file golan.h.
Referenced by golan_create_cq(), golan_create_eq(), golan_create_qp_aux(), golan_post_recv(), golan_post_send(), and write_cmd().
| #define BE64_BUS_2_VIRT | ( | addr | ) |
| #define USR_2_BE64_BUS | ( | addr | ) |
| #define BE64_BUS_2_USR | ( | addr | ) |
| #define GET_INBOX | ( | golan, | |
| idx ) |
Definition at line 75 of file golan.h.
Referenced by golan_calc_sig(), golan_create_cq(), golan_create_eq(), golan_create_mkey(), golan_create_qp_aux(), golan_mcast_attach(), golan_mcast_detach(), golan_modify_qp(), golan_provide_pages(), golan_set_hca_cap(), and write_cmd().
| #define GET_OUTBOX | ( | golan, | |
| idx ) |
Definition at line 76 of file golan.h.
Referenced by golan_calc_sig(), golan_qry_hca_cap(), golan_query_vport_context(), golan_query_vport_gid(), and write_cmd().
| #define GOLAN_MBOX_IN | ( | cmd_ptr, | |
| in_ptr ) |
Definition at line 78 of file golan.h.
Referenced by golan_destory_eq(), golan_query_vport_context(), golan_query_vport_gid(), and golan_query_vport_pkey().
| #define GOLAN_SEND_WQE_BB_SIZE 64 |
Definition at line 127 of file golan.h.
Referenced by golan_create_qp_aux().
| #define GOLAN_SEND_UD_WQE_SIZE sizeof(struct golan_send_wqe_ud) |
Definition at line 128 of file golan.h.
Referenced by golan_post_send().
| #define GOLAN_RECV_WQE_SIZE sizeof(struct golan_recv_wqe_ud) |
Definition at line 129 of file golan.h.
Referenced by golan_create_qp_aux().
| #define GOLAN_WQEBBS_PER_SEND_UD_WQE DIV_ROUND_UP(GOLAN_SEND_UD_WQE_SIZE, GOLAN_SEND_WQE_BB_SIZE) |
Definition at line 130 of file golan.h.
Referenced by golan_complete(), and golan_post_send().
| #define GOLAN_SEND_OPCODE 0x0a |
Definition at line 131 of file golan.h.
Referenced by golan_post_send().
| #define GOLAN_WQE_CTRL_WQE_IDX_BIT 8 |
Definition at line 132 of file golan.h.
Referenced by golan_post_send().
| #define GOLAN_CQE_OPCODE_NOT_VALID 0x0f |
Definition at line 190 of file golan.h.
Referenced by golan_create_cq(), and golan_poll_cq().
| #define GOLAN_CQE_OPCODE_BIT 4 |
Definition at line 191 of file golan.h.
Referenced by golan_complete(), golan_create_cq(), and golan_poll_cq().
| #define GOLAN_CQ_DB_RECORD_SIZE sizeof(uint64_t) |
Definition at line 192 of file golan.h.
Referenced by golan_create_cq(), and golan_destroy_cq().
| #define GOLAN_CQE_OWNER_MASK 1 |
Definition at line 193 of file golan.h.
Referenced by golan_is_hw_ownership().
| #define MANAGE_PAGES_PSA_OFFSET 0 |
Definition at line 195 of file golan.h.
Referenced by golan_provide_pages().
| #define GOLAN_NUM_EQES 8 |
Definition at line 217 of file golan.h.
Referenced by golan_create_eq(), golan_next_eqe_sw(), and golan_poll_eq().
| #define GOLAN_EQ_DOORBELL_OFFSET 0x40 |
Definition at line 218 of file golan.h.
Referenced by golan_create_eq().
| #define DB_BUFFER0_EVEN_OFFSET 0x800 |
Definition at line 219 of file golan.h.
Referenced by golan_post_send(), and shomron_tx_uar_send_db().
| #define DB_BUFFER0_ODD_OFFSET 0x900 |
Definition at line 220 of file golan.h.
Referenced by golan_post_send(), and shomron_tx_uar_send_db().
| #define GOLAN_EQ_MAP_ALL_EVENTS |
Definition at line 222 of file golan.h.
| #define GOLAN_OPEN 0x1 |
Definition at line 321 of file golan.h.
Referenced by golan_bring_down(), and golan_bring_up().
| #define GOLAN_FW_AREAS_NUM 2 |
Definition at line 340 of file golan.h.
Referenced by golan_free_fw_areas(), and golan_init_fw_areas().
| enum return_hdr_t |
| Enumerator | |
|---|---|
| NO_ERRORS | |
| SIGNATURE_ERROR | |
| TOKEN_ERROR | |
| BAD_BLOCK_NUMBER | |
| BAD_OUTPUT_POINTER | |
| BAD_INPUT_POINTER | |
| INTERNAL_ERROR | |
| INPUT_LEN_ERROR | |
| OUTPUT_LEN_ERROR | |
| RESERVE_NOT_ZERO | |
| BAD_CMD_TYPE | |
Definition at line 88 of file golan.h.
| enum golan_ib_qp_state |
| Enumerator | |
|---|---|
| GOLAN_IB_QPS_RESET | |
| GOLAN_IB_QPS_INIT | |
| GOLAN_IB_QPS_RTR | |
| GOLAN_IB_QPS_RTS | |
| GOLAN_IB_QPS_SQD | |
| GOLAN_IB_QPS_SQE | |
| GOLAN_IB_QPS_ERR | |
Definition at line 134 of file golan.h.
| anonymous enum |
| Enumerator | |
|---|---|
| GOLAN_CQE_SW_OWNERSHIP | |
| GOLAN_CQE_HW_OWNERSHIP | |
| anonymous enum |
| Enumerator | |
|---|---|
| GOLAN_CQE_SIZE_64 | |
| GOLAN_CQE_SIZE_128 | |
| enum golan_event |
Definition at line 245 of file golan.h.
| enum golan_port_sub_event |
Definition at line 277 of file golan.h.
| anonymous enum |
| Enumerator | |
|---|---|
| GOLAN_EQE_SW_OWNERSHIP | |
| GOLAN_EQE_HW_OWNERSHIP | |
| anonymous enum |
| Enumerator | |
|---|---|
| GOLAN_EQ_UNARMED | |
| GOLAN_EQ_ARMED | |
| FILE_LICENCE | ( | GPL2_OR_LATER | ) |