Simon Glass | 2bfb7ef | 2020-12-19 10:39:53 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright 2020 Google LLC |
| 4 | * Written by Simon Glass <sjg@chromium.org> |
| 5 | */ |
| 6 | |
| 7 | #ifndef __asm_serial_h |
| 8 | #define __asm_serial_h |
| 9 | |
| 10 | #include <dt-structs.h> |
| 11 | |
| 12 | struct sandbox_serial_plat { |
| 13 | #if CONFIG_IS_ENABLED(OF_PLATDATA) |
| 14 | struct dtd_sandbox_serial dtplat; |
| 15 | #endif |
| 16 | int colour; /* Text colour to use for output, -1 for none */ |
| 17 | }; |
| 18 | |
| 19 | /** |
| 20 | * struct sandbox_serial_priv - Private data for this driver |
| 21 | * |
| 22 | * @buf: holds input characters available to be read by this driver |
| 23 | */ |
| 24 | struct sandbox_serial_priv { |
| 25 | struct membuff buf; |
| 26 | char serial_buf[16]; |
| 27 | bool start_of_line; |
| 28 | }; |
| 29 | |
| 30 | #endif /* __asm_serial_h */ |