rtc: stm32: fix misspelling and misalignment issues
[linux/fpc-iii.git] / drivers / net / ethernet / chelsio / cxgb4 / cudbg_if.h
blob8568a51f641483ac1ec352ef0d4b0f28dac35102
1 /*
2 * Copyright (C) 2017 Chelsio Communications. All rights reserved.
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
13 * The full GNU General Public License is included in this distribution in
14 * the file called "COPYING".
18 #ifndef __CUDBG_IF_H__
19 #define __CUDBG_IF_H__
21 /* Error codes */
22 #define CUDBG_STATUS_NO_MEM -19
23 #define CUDBG_STATUS_ENTITY_NOT_FOUND -24
24 #define CUDBG_STATUS_NOT_IMPLEMENTED -28
25 #define CUDBG_SYSTEM_ERROR -29
26 #define CUDBG_STATUS_CCLK_NOT_DEFINED -32
28 #define CUDBG_MAJOR_VERSION 1
29 #define CUDBG_MINOR_VERSION 14
31 enum cudbg_dbg_entity_type {
32 CUDBG_REG_DUMP = 1,
33 CUDBG_DEV_LOG = 2,
34 CUDBG_CIM_LA = 3,
35 CUDBG_CIM_MA_LA = 4,
36 CUDBG_CIM_QCFG = 5,
37 CUDBG_CIM_IBQ_TP0 = 6,
38 CUDBG_CIM_IBQ_TP1 = 7,
39 CUDBG_CIM_IBQ_ULP = 8,
40 CUDBG_CIM_IBQ_SGE0 = 9,
41 CUDBG_CIM_IBQ_SGE1 = 10,
42 CUDBG_CIM_IBQ_NCSI = 11,
43 CUDBG_CIM_OBQ_ULP0 = 12,
44 CUDBG_CIM_OBQ_ULP1 = 13,
45 CUDBG_CIM_OBQ_ULP2 = 14,
46 CUDBG_CIM_OBQ_ULP3 = 15,
47 CUDBG_CIM_OBQ_SGE = 16,
48 CUDBG_CIM_OBQ_NCSI = 17,
49 CUDBG_EDC0 = 18,
50 CUDBG_EDC1 = 19,
51 CUDBG_MC0 = 20,
52 CUDBG_MC1 = 21,
53 CUDBG_RSS = 22,
54 CUDBG_RSS_VF_CONF = 25,
55 CUDBG_PATH_MTU = 27,
56 CUDBG_PM_STATS = 30,
57 CUDBG_HW_SCHED = 31,
58 CUDBG_TP_INDIRECT = 36,
59 CUDBG_SGE_INDIRECT = 37,
60 CUDBG_ULPRX_LA = 41,
61 CUDBG_TP_LA = 43,
62 CUDBG_MEMINFO = 44,
63 CUDBG_CIM_PIF_LA = 45,
64 CUDBG_CLK = 46,
65 CUDBG_CIM_OBQ_RXQ0 = 47,
66 CUDBG_CIM_OBQ_RXQ1 = 48,
67 CUDBG_PCIE_INDIRECT = 50,
68 CUDBG_PM_INDIRECT = 51,
69 CUDBG_TID_INFO = 54,
70 CUDBG_PCIE_CONFIG = 55,
71 CUDBG_DUMP_CONTEXT = 56,
72 CUDBG_MPS_TCAM = 57,
73 CUDBG_VPD_DATA = 58,
74 CUDBG_LE_TCAM = 59,
75 CUDBG_CCTRL = 60,
76 CUDBG_MA_INDIRECT = 61,
77 CUDBG_ULPTX_LA = 62,
78 CUDBG_UP_CIM_INDIRECT = 64,
79 CUDBG_PBT_TABLE = 65,
80 CUDBG_MBOX_LOG = 66,
81 CUDBG_HMA_INDIRECT = 67,
82 CUDBG_HMA = 68,
83 CUDBG_MAX_ENTITY = 70,
86 struct cudbg_init {
87 struct adapter *adap; /* Pointer to adapter structure */
88 void *outbuf; /* Output buffer */
89 u32 outbuf_size; /* Output buffer size */
90 u8 compress_type; /* Type of compression to use */
91 void *compress_buff; /* Compression buffer */
92 u32 compress_buff_size; /* Compression buffer size */
93 void *workspace; /* Workspace for zlib */
96 static inline unsigned int cudbg_mbytes_to_bytes(unsigned int size)
98 return size * 1024 * 1024;
100 #endif /* __CUDBG_IF_H__ */