Julius Werner | b624ae0 | 2017-06-09 15:17:15 -0700 | [diff] [blame] | 1 | /* |
Antonio Nino Diaz | 4b32e62 | 2018-08-16 16:52:57 +0100 | [diff] [blame] | 2 | * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. |
Julius Werner | b624ae0 | 2017-06-09 15:17:15 -0700 | [diff] [blame] | 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 COREBOOT_H |
| 8 | #define COREBOOT_H |
Julius Werner | b624ae0 | 2017-06-09 15:17:15 -0700 | [diff] [blame] | 9 | |
Antonio Nino Diaz | 4b32e62 | 2018-08-16 16:52:57 +0100 | [diff] [blame] | 10 | #include <stdint.h> |
Julius Werner | b624ae0 | 2017-06-09 15:17:15 -0700 | [diff] [blame] | 11 | |
| 12 | typedef struct { |
| 13 | uint32_t type; /* always 2 (memory-mapped) on ARM */ |
| 14 | uint32_t baseaddr; |
| 15 | uint32_t baud; |
| 16 | uint32_t regwidth; /* in bytes, i.e. usually 4 */ |
| 17 | uint32_t input_hertz; |
| 18 | uint32_t uart_pci_addr; /* unused on current ARM systems */ |
| 19 | } coreboot_serial_t; |
| 20 | extern coreboot_serial_t coreboot_serial; |
| 21 | |
| 22 | void coreboot_table_setup(void *base); |
| 23 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 24 | #endif /* COREBOOT_H */ |