| // Copyright lowRISC contributors. |
| // Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| // SPDX-License-Identifier: Apache-2.0 |
| #ifndef _F_BOOTSTRAP_MSGS_H__ |
| #define _F_BOOTSTRAP_MSGS_H__ |
| #define RAW_BUFFER_SIZE 1024 |
| #define FRAME_EOF_MARKER 0x80000000 |
| #define FRAME_NO(k) ((k)&0xffffff) |
| /* SHA2 of the entire frame_t message starting at the |frame_num| offset. */ |
| /* Frame number starting at 0. The last frame should be ord with |
| /* 0-based flash offset where the frame should be written to. */ |
| /* Frame header. See frame_hdr_t for details. */ |
| /* Frame data uint32_t aligned. */ |
| uint32_t data[(RAW_BUFFER_SIZE - sizeof(frame_hdr_t)) / sizeof(uint32_t)]; |
| /* Bootstrap error codes */ |
| /* Errors requiring reset */ |
| #endif // _F_BOOTSTRAP_MSGS_H__ |