Mark Dykes | e7810b5 | 2020-06-03 15:46:55 -0500 | [diff] [blame] | 1 | /* |
mardyk01 | 7b51dbe | 2024-01-17 15:25:36 -0600 | [diff] [blame^] | 2 | * Copyright (c) 2024, Arm Limited. All rights reserved. |
Mark Dykes | e7810b5 | 2020-06-03 15:46:55 -0500 | [diff] [blame] | 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; |
mardyk01 | 7b51dbe | 2024-01-17 15:25:36 -0600 | [diff] [blame^] | 21 | int **fidfifo; |
Mark Dykes | e7810b5 | 2020-06-03 15:46:55 -0500 | [diff] [blame] | 22 | int col; |
| 23 | int curr_col; |
| 24 | int *row; |
| 25 | }; |
| 26 | |
| 27 | /* |
mardyk01 | 7b51dbe | 2024-01-17 15:25:36 -0600 | [diff] [blame^] | 28 | * Push function name string into the raw data structure |
Mark Dykes | e7810b5 | 2020-06-03 15:46:55 -0500 | [diff] [blame] | 29 | */ |
| 30 | void push_3dfifo_fname(struct fifo3d *f3d, char *fname); |
| 31 | |
| 32 | /* |
mardyk01 | 7b51dbe | 2024-01-17 15:25:36 -0600 | [diff] [blame^] | 33 | * Push bias value into the raw data structure |
Mark Dykes | e7810b5 | 2020-06-03 15:46:55 -0500 | [diff] [blame] | 34 | */ |
| 35 | void push_3dfifo_bias(struct fifo3d *f3d, int bias); |
| 36 | |
| 37 | /* |
mardyk01 | 7b51dbe | 2024-01-17 15:25:36 -0600 | [diff] [blame^] | 38 | * Push id for function value into the raw data structure |
| 39 | */ |
| 40 | void push_3dfifo_fid(struct fifo3d *f3d, int id); |
| 41 | |
| 42 | /* |
Mark Dykes | e7810b5 | 2020-06-03 15:46:55 -0500 | [diff] [blame] | 43 | * Create new column and/or row for raw data structure for newly |
| 44 | * found node from device tree |
| 45 | */ |
| 46 | void push_3dfifo_col(struct fifo3d *f3d, char *entry, struct memmod *mmod); |
| 47 | |
| 48 | #endif /* FIFO3D_H */ |