ReactOS 0.4.16-dev-2473-gb34a1f1
uartinfo.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS ComPort Library
3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4 * or MIT (https://spdx.org/licenses/MIT)
5 * PURPOSE: Default UART Settings
6 * COPYRIGHT: Copyright 2022-2026 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
7 */
8
9#pragma once
10
11/* Serial debug connection */
12#if defined(SARCH_PC98)
13#define DEFAULT_DEBUG_PORT 2 /* COM2 */
14#define DEFAULT_DEBUG_BAUD_RATE 9600
15#else
16#define DEFAULT_DEBUG_PORT 2 /* COM2 */
17#define DEFAULT_DEBUG_BAUD_RATE 115200
18#endif
19
20/* Serial connection */
21#if defined(SARCH_PC98)
22#define DEFAULT_BAUD_RATE 9600
23#else
24#define DEFAULT_BAUD_RATE 19200
25#endif
26
27#if defined(_M_IX86) || defined(_M_AMD64)
28#if defined(SARCH_PC98)
29static const ULONG BaseArray[] = {0, 0x30, 0x238};
30#else
31static const ULONG BaseArray[] = {0, 0x3F8, 0x2F8, 0x3E8, 0x2E8};
32#endif
33#elif defined(_M_PPC)
34static const ULONG BaseArray[] = {0, 0x800003F8};
35#elif defined(_M_MIPS)
36static const ULONG BaseArray[] = {0, 0x80006000, 0x80007000};
37#elif defined(_M_ARM)
38static const ULONG BaseArray[] = {0, 0xF1012000};
39// #define QEMUUART ((ULONG)0x09000000)
40#else
41#error Unknown architecture
42#endif
43
44#define MAX_COM_PORTS (sizeof(BaseArray) / sizeof(BaseArray[0]) - 1)
45
46/* EOF */
uint32_t ULONG
Definition: typedefs.h:59