blob: 4fca36f61993c4477d7ff76bd27dbde9cd325a94 [file] [log] [blame]
Julius Werner385176d2017-06-13 15:53:45 -07001/*
2 * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef __CBMEM_CONSOLE_H__
8#define __CBMEM_CONSOLE_H__
9
10#include <console.h>
11
12#define CONSOLE_T_CBMC_BASE CONSOLE_T_DRVDATA
13#define CONSOLE_T_CBMC_SIZE (CONSOLE_T_DRVDATA + REGSZ)
14
15#ifndef __ASSEMBLER__
16
17typedef struct {
18 console_t console;
19 uintptr_t base;
20 uint32_t size;
21} console_cbmc_t;
22
23int console_cbmc_register(uintptr_t base, console_cbmc_t *console);
24
25#endif /* __ASSEMBLER__ */
26
27#endif /* __CBMEM_CONSOLE_H__ */