blob: dbce103f50493e01f7fc0bb745618cb9a4be7f28 [file] [log] [blame]
Andrew Scull18834872018-10-12 11:48:09 +01001/*
Andrew Walbran692b3252019-03-07 15:51:31 +00002 * Copyright 2018 The Hafnium Authors.
Andrew Scull18834872018-10-12 11:48:09 +01003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Andrew Scullfbc938a2018-08-20 14:09:28 +010017#pragma once
Wedson Almeida Filho987c0ff2018-06-20 16:34:38 +010018
Andrew Scull3c0a90a2019-07-01 11:55:53 +010019#include "hf/mm.h"
Andrew Walbran48699362019-05-20 14:38:00 +010020#include "hf/mpool.h"
21#include "hf/vm.h"
22
23/** Initialises the console hardware. */
24void plat_console_init(void);
25
26/** Initialises any memory mappings that the console driver needs. */
Andrew Scull3c0a90a2019-07-01 11:55:53 +010027void plat_console_mm_init(struct mm_stage1_locked stage1_locked,
28 struct mpool *ppool);
Andrew Walbran48699362019-05-20 14:38:00 +010029
30/** Initialises any per-VM memory mappings that the console driver needs. */
31void plat_console_vm_mm_init(struct vm *vm, struct mpool *ppool);
32
Andrew Scull9a6384b2019-01-02 12:08:40 +000033/** Puts a single character on the console. */
Andrew Walbran48699362019-05-20 14:38:00 +010034void plat_console_putchar(char c);