New upstream version 18.02
[deb_dpdk.git] / lib / librte_ether / 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; /**< Buffer for return registers */
15         uint32_t offset; /**< Start register table location for access */
16         uint32_t length; /**< Number of registers to fetch */
17         uint32_t width; /**< Size of device register */
18         uint32_t version; /**< Device version */
19 };
20
21 /*
22  * Placeholder for accessing device eeprom
23  */
24 struct rte_dev_eeprom_info {
25         void *data; /**< Buffer for return eeprom */
26         uint32_t offset; /**< Start eeprom address for access*/
27         uint32_t length; /**< Length of eeprom region to access */
28         uint32_t magic; /**< Device-specific key, such as device-id */
29 };
30
31 #endif /* _RTE_DEV_INFO_H_ */