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_HCA_BAR PCI_BASE_ADDRESS_0 |
#define GOLAN_PAGE_SIZE (1 << GOLAN_PAGE_SHIFT) |
#define GOLAN_PAGE_MASK (GOLAN_PAGE_SIZE - 1) |
#define MAX_MBOX ( GOLAN_PAGE_SIZE / MAILBOX_STRIDE ) |
#define MEM_MBOX MEM_CMD_IDX |
#define GEN_MBOX DEF_CMD_IDX |
#define MAX_PASE_MBOX ((GOLAN_CMD_PAS_CNT) - 2) |
#define QRY_PAGES_OUT | ( | golan, | |
idx | |||
) | ((struct golan_query_pages_outbox *)(get_cmd( (golan) , (idx) )->out)) |
#define VIRT_2_BE64_BUS | ( | addr | ) | cpu_to_be64(((unsigned long long )virt_to_bus(addr))) |
#define BE64_BUS_2_VIRT | ( | addr | ) | bus_to_virt(be64_to_cpu(addr)) |
#define USR_2_BE64_BUS | ( | addr | ) | cpu_to_be64(((unsigned long long )user_to_phys(addr, 0))) |
#define BE64_BUS_2_USR | ( | addr | ) | be64_to_cpu(phys_to_user(addr)) |
#define GOLAN_MBOX_IN | ( | cmd_ptr, | |
in_ptr | |||
) |
#define GOLAN_SEND_UD_WQE_SIZE sizeof(struct golan_send_wqe_ud) |
#define GOLAN_RECV_WQE_SIZE sizeof(struct golan_recv_wqe_ud) |
#define GOLAN_WQEBBS_PER_SEND_UD_WQE DIV_ROUND_UP(GOLAN_SEND_UD_WQE_SIZE, GOLAN_SEND_WQE_BB_SIZE) |
#define GOLAN_EQ_MAP_ALL_EVENTS |
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 |
Definition at line 198 of file golan.h.
anonymous enum |
Enumerator | |
---|---|
GOLAN_CQE_SIZE_64 | |
GOLAN_CQE_SIZE_128 |
Definition at line 203 of file golan.h.
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 |
Definition at line 288 of file golan.h.
anonymous enum |
Enumerator | |
---|---|
GOLAN_EQ_UNARMED | |
GOLAN_EQ_ARMED |
Definition at line 293 of file golan.h.
FILE_LICENCE | ( | GPL2_OR_LATER | ) |