hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/******************************************************************************
 *
 * Copyright(c) 2019 Realtek Corporation.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 *****************************************************************************/
#ifndef _HALRF_DACK_H_
#define _HALRF_DACK_H_
 
/*@--------------------------Define Parameters-------------------------------*/
 
enum halrf_dack_dz{
   DZ_ADDCK_TIMEOUT    = BIT(0),
   DZ_DADCK_TIMEOUT    = BIT(1),
   DZ_MSBK_TIMEOUT    = BIT(2),
};
/*@-----------------------End Define Parameters-----------------------*/
 
struct halrf_dack_rpt {
   u8 msbk_d[2][2][16];
   u8 dadck_d[2][2];        /*path/IQ*/
   u16 addck_d[2][2];    /*path/IQ*/
   u16 biask_d[2][2];        /*path/IQ*/
   u8 addck_timeout_s0: 1;
   u8 addck_timeout_s1: 1;
   u8 dadck_timeout_s0: 1;
   u8 dadck_timeout_s1: 1;
   u8 msbk_timeout_s0: 1;
   u8 msbk_timeout_s1: 1;
   u8 dack_fail: 1;
   u8 rsvd: 1;
};
 
struct halrf_dack_info {
   bool dack_done;
   u8 msbk_d[2][2][16];
   u8 dadck_d[2][2];        /*path/IQ*/
   u16 addck_d[2][2];    /*path/IQ*/
   u16 biask_d[2][2];        /*path/IQ*/
   u32 dack_cnt;
   u32 dack_time;
   bool addck_timeout[2];
   bool dadck_timeout[2];
   bool msbk_timeout[2];
   bool dack_fail;
   struct halrf_dack_rpt dack_rpt;
};
 
#endif