xref: /dpdk/drivers/net/ntnic/include/clock_profiles_structs.h (revision c8662c871006a2663edd8e3a68f1e298595b948b)
1 /*
2  * SPDX-License-Identifier: BSD-3-Clause
3  * Copyright(c) 2023 Napatech A/S
4  */
5 
6 #ifndef _NT_CLOCK_PROFILES_STRUCTS_H_
7 #define _NT_CLOCK_PROFILES_STRUCTS_H_
8 
9 #include <stdint.h>
10 
11 #define clk_profile_size_error_msg "Size test failed"
12 
13 struct clk_profile_data_fmt1_s {
14 	uint16_t reg_addr;
15 	uint8_t reg_val;
16 };
17 
18 struct clk_profile_data_fmt2_s {
19 	unsigned int reg_addr;
20 	unsigned char reg_val;
21 };
22 
23 typedef struct clk_profile_data_fmt1_s clk_profile_data_fmt1_t;
24 typedef struct clk_profile_data_fmt2_s clk_profile_data_fmt2_t;
25 
26 enum clk_profile_data_fmt_e {
27 	clk_profile_data_fmt_1,
28 	clk_profile_data_fmt_2,
29 };
30 
31 typedef enum clk_profile_data_fmt_e clk_profile_data_fmt_t;
32 
33 #endif	/* _NT_CLOCK_PROFILES_STRUCTS_H_ */
34