aboutsummaryrefslogtreecommitdiff
path: root/devices/uart.h
blob: ee74e98c984599b8ddef40ba71885b03b6e6740e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

// TODO #include <arch/platform.h>
#include <stdio.h>

enum UART {
  COM1 = 0x3f8,
  COM2 = 0x2f8,
  COM3 = 0x3E8,
  COM4 = 0x2E8,
  COM5 = 0x5F8,
  COM6 = 0x4F8,
  COM7 = 0x5E8,
  COM8 = 0x4E8,
};

FILE *uart_init(enum UART port);