• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  * Description: diag oam log
15  * This file should be changed only infrequently and with great care.
16  */
17 #ifndef __DIAG_OAM_LOG_H__
18 #define __DIAG_OAM_LOG_H__
19 
20 #include "errcode.h"
21 
22 #ifdef __cplusplus
23 #if __cplusplus
24 extern "C" {
25 #endif
26 #endif
27 
28 typedef struct {
29 } zdiag_log_msg0_t;
30 typedef struct {
31     uint32_t data0;
32 } zdiag_log_msg1_t;
33 
34 typedef struct {
35     uint32_t data0;
36     uint32_t data1;
37 } zdiag_log_msg2_t;
38 
39 typedef struct {
40     uint32_t data0;
41     uint32_t data1;
42     uint32_t data2;
43 } zdiag_log_msg3_t;
44 
45 typedef struct {
46     uint32_t data0;
47     uint32_t data1;
48     uint32_t data2;
49     uint32_t data3;
50 } zdiag_log_msg4_t;
51 
52 errcode_t oam_log_print0_press_prv(uint32_t msg_id, uint32_t mod_id);
53 errcode_t oam_log_print1_press_prv(uint32_t msg_id, uint32_t mod_id, uint32_t param_1);
54 errcode_t oam_log_print2_press_prv(uint32_t msg_id, uint32_t mod_id, uint32_t param_1, uint32_t param_2);
55 errcode_t oam_log_print3_press_prv(uint32_t msg_id, uint32_t mod_id, zdiag_log_msg3_t *olm);
56 errcode_t oam_log_print4_press_prv(uint32_t msg_id, uint32_t mod_id, zdiag_log_msg4_t *olm);
57 errcode_t oam_log_print_alterable_press_prv(uint32_t msg_id, uint32_t mod_id, uint32_t param_num, ...);
58 errcode_t oam_log_print_buff_press_prv(uint32_t msg_id, uint32_t mod_id, uint8_t *data, uint32_t data_size);
59 
60 errcode_t oam_log_print0_press(uint32_t msg_id);
61 errcode_t oam_log_print1_press(uint32_t msg_id, uint32_t param_1);
62 errcode_t oam_log_print2_press(uint32_t msg_id, uint32_t param_1, uint32_t param_2);
63 errcode_t oam_log_print3_press(uint32_t msg_id, zdiag_log_msg3_t *olm);
64 errcode_t oam_log_print4_press(uint32_t msg_id, zdiag_log_msg4_t *olm);
65 errcode_t oam_log_print_alterable_press(uint32_t msg_id, uint32_t param_num, ...);
66 errcode_t oam_log_print_buff_press(uint32_t msg_id, uint8_t *data, uint32_t data_size);
67 
68 #ifdef __cplusplus
69 #if __cplusplus
70 }
71 #endif
72 #endif
73 
74 #endif
75