Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
console.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 EPAM Systems
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef __XEN_CONSOLE_H__
14#define __XEN_CONSOLE_H__
15
16#include <zephyr/init.h>
17#include <zephyr/device.h>
18#include <zephyr/drivers/uart.h>
20
27
32struct hvc_xen_data {
33 DEVICE_MMIO_RAM; /* should be first */
34 const struct device *dev;
35 struct xencons_interface *intf;
36 uint64_t evtchn;
37
38#ifdef CONFIG_UART_INTERRUPT_DRIVEN
40 void *irq_cb_data;
41#endif /* CONFIG_UART_INTERRUPT_DRIVEN */
42};
44
52int xen_console_init(const struct device *dev);
53
55
56#endif /* __XEN_CONSOLE_H__ */
Main header file for UART driver API.
#define DEVICE_MMIO_RAM
Declare storage for MMIO information within a device's dev_data struct.
Definition device_mmio.h:219
void(* uart_irq_callback_user_data_t)(const struct device *dev, void *user_data)
Define the application callback function signature for uart_irq_callback_user_data_set() function.
Definition uart.h:142
int xen_console_init(const struct device *dev)
Initialize the Xen console UART instance.
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
Runtime device structure (in ROM) per driver instance.
Definition device.h:513