DPDK  19.08.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 /*
11  * Placeholder for accessing device registers
12  */
13 struct rte_dev_reg_info {
14  void *data;
15  uint32_t offset;
16  uint32_t length;
17  uint32_t width;
18  uint32_t version;
19 };
20 
21 /*
22  * Placeholder for accessing device eeprom
23  */
24 struct rte_dev_eeprom_info {
25  void *data;
26  uint32_t offset;
27  uint32_t length;
28  uint32_t magic;
29 };
30 
35  uint32_t type;
36  uint32_t eeprom_len;
37 };
38 
39 /* EEPROM Standards for plug in modules */
40 #define RTE_ETH_MODULE_SFF_8079 0x1
41 #define RTE_ETH_MODULE_SFF_8079_LEN 256
42 #define RTE_ETH_MODULE_SFF_8472 0x2
43 #define RTE_ETH_MODULE_SFF_8472_LEN 512
44 #define RTE_ETH_MODULE_SFF_8636 0x3
45 #define RTE_ETH_MODULE_SFF_8636_LEN 256
46 #define RTE_ETH_MODULE_SFF_8436 0x4
47 #define RTE_ETH_MODULE_SFF_8436_LEN 256
48 
49 #endif /* _RTE_DEV_INFO_H_ */