Data Plane Development Kit Reference Manual: Intel FPGA Programmable Acceleration Card N3000

ID 683512
Date 12/06/2019
Public
Document Table of Contents

2.4.3.3. opae_acc_get_region_info()

Prototype:

int opae_acc_get_region_info(struct opae_accelerator *acc, struct opae_acc_info *info);

Arguments:

acc: A pointer to the opae_accelerator struct.
struct opae_accelerator {
	TAILQ_ENTRY(opae_accelerator) node;
	const char *name;
	int index;
	struct opae_bridge *br;
	struct opae_manager *mgr;
	struct opae_accelerator_ops *ops;
	void *data;
};
info: A pointer to opae_acc_region_info struct:
struct opae_acc_region_info {
	u32 flags;
	#define ACC_REGION_READ (1 << 0)
	#define ACC_REGION_WRITE (1 << 1)
	#define ACC_REGION_MMIO (1 << 2)
	u32 index;
	u64 phys_addr;
	u64 len;
	u8 *addr;
};

Returns:

Int.

Description:

Get accelerator memory region information that populates the opae_acc_region_info data structure.

Did you find the information on this page useful?

Characters remaining:

Feedback Message