Julius Werner | 385176d | 2017-06-13 15:53:45 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 7 | #ifndef CBMEM_CONSOLE_H |
| 8 | #define CBMEM_CONSOLE_H |
Julius Werner | 385176d | 2017-06-13 15:53:45 -0700 | [diff] [blame] | 9 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 10 | #include <drivers/console.h> |
Julius Werner | 385176d | 2017-06-13 15:53:45 -0700 | [diff] [blame] | 11 | |
Andre Przywara | c2f8d6d | 2020-01-25 01:07:19 +0000 | [diff] [blame] | 12 | #define CONSOLE_T_CBMC_SIZE CONSOLE_T_DRVDATA |
Julius Werner | 385176d | 2017-06-13 15:53:45 -0700 | [diff] [blame] | 13 | |
| 14 | #ifndef __ASSEMBLER__ |
| 15 | |
| 16 | typedef struct { |
| 17 | console_t console; |
Julius Werner | 385176d | 2017-06-13 15:53:45 -0700 | [diff] [blame] | 18 | uint32_t size; |
| 19 | } console_cbmc_t; |
| 20 | |
| 21 | int console_cbmc_register(uintptr_t base, console_cbmc_t *console); |
| 22 | |
| 23 | #endif /* __ASSEMBLER__ */ |
| 24 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 25 | #endif /* CBMEM_CONSOLE_H */ |