Mark Dykes | e7810b5 | 2020-06-03 15:46:55 -0500 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2020, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | |
| 8 | #ifndef FIFO3D_H |
| 9 | #define FIFO3D_H |
| 10 | |
| 11 | #include <stddef.h> |
| 12 | #include <stdio.h> |
| 13 | #include <stdlib.h> |
| 14 | #include <string.h> |
| 15 | #include "smcmalloc.h" |
| 16 | |
| 17 | struct fifo3d { |
| 18 | char ***nnfifo; |
| 19 | char ***fnamefifo; |
| 20 | int **biasfifo; |
| 21 | int col; |
| 22 | int curr_col; |
| 23 | int *row; |
| 24 | }; |
| 25 | |
| 26 | /* |
| 27 | * Push function name string into raw data structure |
| 28 | */ |
| 29 | void push_3dfifo_fname(struct fifo3d *f3d, char *fname); |
| 30 | |
| 31 | /* |
| 32 | * Push bias value into raw data structure |
| 33 | */ |
| 34 | void push_3dfifo_bias(struct fifo3d *f3d, int bias); |
| 35 | |
| 36 | /* |
| 37 | * Create new column and/or row for raw data structure for newly |
| 38 | * found node from device tree |
| 39 | */ |
| 40 | void push_3dfifo_col(struct fifo3d *f3d, char *entry, struct memmod *mmod); |
| 41 | |
| 42 | #endif /* FIFO3D_H */ |