DPDK 25.03.0-rc0
rte_dev_info.h
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2015 Intel Corporation
3 */
4
5#ifndef _RTE_DEV_INFO_H_
6#define _RTE_DEV_INFO_H_
7
8#include <stdint.h>
9
10#define RTE_ETH_REG_NAME_SIZE 64
11struct rte_eth_reg_name {
12 char name[RTE_ETH_REG_NAME_SIZE];
13};
14
15/*
16 * Placeholder for accessing device registers
17 */
18struct rte_dev_reg_info {
19 void *data;
20 uint32_t offset;
21 uint32_t length;
22 uint32_t width;
23 uint32_t version;
28 const char *filter;
29 struct rte_eth_reg_name *names;
30};
31
32/*
33 * Placeholder for accessing device EEPROM
34 */
35struct rte_dev_eeprom_info {
36 void *data;
37 uint32_t offset;
38 uint32_t length;
39 uint32_t magic;
40};
41
46 uint32_t type;
47 uint32_t eeprom_len;
48};
49
50/* EEPROM Standards for plug in modules */
51#define RTE_ETH_MODULE_SFF_8079 0x1
52#define RTE_ETH_MODULE_SFF_8079_LEN 256
53#define RTE_ETH_MODULE_SFF_8472 0x2
54#define RTE_ETH_MODULE_SFF_8472_LEN 512
55#define RTE_ETH_MODULE_SFF_8636 0x3
56#define RTE_ETH_MODULE_SFF_8636_LEN 256
57#define RTE_ETH_MODULE_SFF_8636_MAX_LEN 640
58#define RTE_ETH_MODULE_SFF_8436 0x4
59#define RTE_ETH_MODULE_SFF_8436_LEN 256
60#define RTE_ETH_MODULE_SFF_8436_MAX_LEN 640
61
62#endif /* _RTE_DEV_INFO_H_ */