• 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: dfx mem read write st
15  * This file should be changed only infrequently and with great care.
16  */
17 
18 #ifndef DIAG_CMD_MEM_READ_WRITE_ST_H
19 #define DIAG_CMD_MEM_READ_WRITE_ST_H
20 
21 #include <stdint.h>
22 
23 typedef struct {
24     uintptr_t start_addr;
25     uint32_t cnt;
26 } mem_read_cmd_t;
27 
28 typedef struct {
29     uintptr_t start_addr;
30     uint32_t size;
31 } mem_read_ind_head_t;
32 
33 typedef struct {
34     mem_read_ind_head_t head;
35     uint32_t data[16];
36 } mem_read32_ind_t;
37 
38 typedef struct {
39     mem_read_ind_head_t head;
40     uint16_t data[32];
41 } mem_read16_ind_t;
42 
43 typedef struct {
44     mem_read_ind_head_t head;
45     uint8_t data[64];
46 } mem_read8_ind_t;
47 
48 typedef struct {
49     uintptr_t start_addr;
50     uint32_t val;
51 } mem_write_cmd_t;
52 
53 typedef struct {
54     uint32_t ret;
55 } mem_write_ind_t;
56 #endif