mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 10:03:26 +00:00
[HALPC98] Add Hardware Abstraction Layer for NEC PC-98 series (#3002)
This commit is contained in:
parent
0c222cfe96
commit
b36018ff26
37 changed files with 1880 additions and 372 deletions
|
@ -1,7 +1,6 @@
|
|||
/*
|
||||
* PROJECT: ReactOS HAL
|
||||
* LICENSE: GPL - See COPYING in the top level directory
|
||||
* FILE: hal/halx86/generic/usage.c
|
||||
* PURPOSE: HAL Resource Report Routines
|
||||
* PROGRAMMERS: Stefan Ginsberg (stefan.ginsberg@reactos.org)
|
||||
*/
|
||||
|
@ -9,6 +8,7 @@
|
|||
/* INCLUDES *******************************************************************/
|
||||
|
||||
#include <hal.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
@ -82,6 +82,60 @@ ADDRESS_USAGE HalpDefaultIoSpace =
|
|||
{
|
||||
NULL, CmResourceTypePort, IDT_INTERNAL,
|
||||
{
|
||||
#if defined(SARCH_PC98)
|
||||
/* PIC 1 */
|
||||
{0x00, 1},
|
||||
{0x02, 1},
|
||||
/* PIC 2 */
|
||||
{0x08, 1},
|
||||
{0x0A, 1},
|
||||
/* DMA */
|
||||
{0x01, 1},
|
||||
{0x03, 1},
|
||||
{0x05, 1},
|
||||
{0x07, 1},
|
||||
{0x09, 1},
|
||||
{0x0B, 1},
|
||||
{0x0D, 1},
|
||||
{0x0F, 1},
|
||||
{0x11, 1},
|
||||
{0x13, 1},
|
||||
{0x15, 1},
|
||||
{0x17, 1},
|
||||
{0x19, 1},
|
||||
{0x1B, 1},
|
||||
{0x1D, 1},
|
||||
{0x1F, 1},
|
||||
{0x21, 1},
|
||||
{0x23, 1},
|
||||
{0x25, 1},
|
||||
{0x27, 1},
|
||||
{0x29, 1},
|
||||
{0x2B, 1},
|
||||
{0x2D, 1},
|
||||
{0xE05, 1},
|
||||
{0xE07, 1},
|
||||
{0xE09, 1},
|
||||
{0xE0B, 1},
|
||||
/* RTC */
|
||||
{0x20, 1},
|
||||
{0x22, 1},
|
||||
{0x128, 1},
|
||||
/* System Control */
|
||||
{0x33, 1},
|
||||
{0x37, 1},
|
||||
/* PIT */
|
||||
{0x71, 1},
|
||||
{0x73, 1},
|
||||
{0x75, 1},
|
||||
{0x77, 1},
|
||||
{0x3FD9,1},
|
||||
{0x3FDB,1},
|
||||
{0x3FDD,1},
|
||||
{0x3FDF,1},
|
||||
/* x87 Coprocessor */
|
||||
{0xF8, 8},
|
||||
#else
|
||||
{0x00, 0x20}, /* DMA 1 */
|
||||
{0xC0, 0x20}, /* DMA 2 */
|
||||
{0x80, 0x10}, /* DMA EPAR */
|
||||
|
@ -92,6 +146,7 @@ ADDRESS_USAGE HalpDefaultIoSpace =
|
|||
{0x92, 0x1}, /* System Control Port A */
|
||||
{0x70, 0x2}, /* CMOS */
|
||||
{0xF0, 0x10}, /* x87 Coprocessor */
|
||||
#endif
|
||||
{0xCF8, 0x8}, /* PCI 0 */
|
||||
{0,0},
|
||||
}
|
||||
|
@ -523,7 +578,7 @@ HalpReportResourceUsage(IN PUNICODE_STRING HalName,
|
|||
/* Get the machine's serial number */
|
||||
HalpReportSerialNumber();
|
||||
}
|
||||
#endif
|
||||
#endif /* !_MINIHAL_ */
|
||||
|
||||
INIT_FUNCTION
|
||||
VOID
|
||||
|
@ -614,7 +669,6 @@ HalpGetNMICrashFlag(VOID)
|
|||
ZwClose(Handle);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif /* !_MINIHAL_ */
|
||||
|
||||
/* EOF */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue