system/kernel: Rework uart management

Change-Id: I6cb31760519c8ba4542d217d6e68439602eda558
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4356
Reviewed-by: Jessica Hamilton <[email protected]>
Reviewed-by: Alex von Gluck IV <[email protected]>
This commit is contained in:
Alexander von Gluck IV
2021-08-20 03:03:25 +00:00
committed by Alex von Gluck IV
parent fbd2589b8c
commit d637e0bec1
9 changed files with 141 additions and 92 deletions
+21
View File
@@ -0,0 +1,21 @@
/*
* Copyright 2021 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef KERNEL_BOOT_UART_H
#define KERNEL_BOOT_UART_H
#include <boot/addr_range.h>
#include <SupportDefs.h>
typedef struct {
char kind[32];
addr_range regs;
uint32 irq;
int64 clock;
} __attribute__((packed)) uart_info;
#endif /* KERNEL_BOOT_UART_H */