Move serial ports I/O address to architecture specific header
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Rafal Kupiec 2023-01-05 15:58:36 +01:00
부모 5730e8692e
커밋 3131aac7a9
로그인 계정: belliash
GPG 키 ID: 4E829243E0CFE6B4
3개의 변경된 파일8개의 추가작업 그리고 3개의 파일을 삭제

파일 보기

@ -14,6 +14,9 @@
#include "xttypes.h"
/* Serial port I/O addresses */
#define COMPORT_ADDRESSES {0x000, 0x3F8, 0x2F8, 0x3E8, 0x2E8, 0x5F8, 0x4F8, 0x5E8, 0x4E8}
/* Control Register 0 constants */
#define CR0_PE 0x00000001
#define CR0_MP 0x00000002

파일 보기

@ -14,6 +14,9 @@
#include "xttypes.h"
/* Serial port I/O addresses */
#define COMPORT_ADDRESSES {0x000, 0x3F8, 0x2F8, 0x3E8, 0x2E8, 0x5F8, 0x4F8, 0x5E8, 0x4E8}
/* Control Register 0 constants */
#define CR0_PE 0x00000001
#define CR0_MP 0x00000002

파일 보기

@ -9,9 +9,8 @@
#include "xtkmapi.h"
/* I/O port addresses for COM1 - COM8 (valid only for ia32 and amd64) */
ULONG ComPortAddress[] = {0x000, 0x3F8, 0x2F8, 0x3E8, 0x2E8, 0x5F8, 0x4F8, 0x5E8, 0x4E8};
/* COM port I/O addresses */
ULONG ComPortAddress[] = COMPORT_ADDRESSES;
/**
* This routine gets a byte from serial port.