Code organization:
- Create directory hardware/video where to put all video emulation (VGA currently, and maybe other things in the future);
- Create directory hardware/sound where to put all sound emulation (PC speaker currently, and maybe other things in the future);
- timer.c/h --> pit.c/h;
- Adjust the necessary includes and the cmakefiles;
- Remove unneeded includes;
- NTVDM is allowed to have its own VS project ^^

svn path=/trunk/; revision=65430
This commit is contained in:
Hermès Bélusca-Maïto 2014-11-18 02:18:18 +00:00
parent d6985bdb0a
commit a60eca74a7
13 changed files with 23 additions and 24 deletions

View file

@ -1,5 +1,8 @@
PROJECT(NTVDM)
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/fast486) include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/fast486)
spec2def(ntvdm.exe ntvdm.spec) spec2def(ntvdm.exe ntvdm.spec)
list(APPEND SOURCE list(APPEND SOURCE
@ -19,10 +22,10 @@ list(APPEND SOURCE
hardware/keyboard.c hardware/keyboard.c
hardware/mouse.c hardware/mouse.c
hardware/pic.c hardware/pic.c
hardware/pit.c
hardware/ps2.c hardware/ps2.c
hardware/speaker.c hardware/sound/speaker.c
hardware/timer.c hardware/video/vga.c
hardware/vga.c
dos/dos32krnl/bios.c dos/dos32krnl/bios.c
dos/dos32krnl/dos.c dos/dos32krnl/dos.c
dos/dos32krnl/dosfiles.c dos/dos32krnl/dosfiles.c

View file

@ -29,7 +29,7 @@
#include "io.h" #include "io.h"
#include "hardware/cmos.h" #include "hardware/cmos.h"
#include "hardware/pic.h" #include "hardware/pic.h"
#include "hardware/timer.h" #include "hardware/pit.h"
/* Extra PSDK/NDK Headers */ /* Extra PSDK/NDK Headers */
#include <ndk/kefuncs.h> #include <ndk/kefuncs.h>

View file

@ -19,7 +19,7 @@
// #include "vidbios.h" // #include "vidbios.h"
#include "io.h" #include "io.h"
#include "hardware/vga.h" #include "hardware/video/vga.h"
/* DEFINES ********************************************************************/ /* DEFINES ********************************************************************/

View file

@ -18,8 +18,8 @@
#include "hardware/cmos.h" #include "hardware/cmos.h"
#include "hardware/ps2.h" #include "hardware/ps2.h"
#include "hardware/timer.h" #include "hardware/pit.h"
#include "hardware/vga.h" #include "hardware/video/vga.h"
/* Extra PSDK/NDK Headers */ /* Extra PSDK/NDK Headers */
#include <ndk/kefuncs.h> #include <ndk/kefuncs.h>

View file

@ -24,9 +24,9 @@
#include "hardware/mouse.h" #include "hardware/mouse.h"
#include "hardware/pic.h" #include "hardware/pic.h"
#include "hardware/ps2.h" #include "hardware/ps2.h"
#include "hardware/speaker.h" #include "hardware/sound/speaker.h"
#include "hardware/timer.h" #include "hardware/pit.h"
#include "hardware/vga.h" #include "hardware/video/vga.h"
#include "io.h" #include "io.h"

View file

@ -26,9 +26,9 @@
#include "hardware/mouse.h" #include "hardware/mouse.h"
#include "hardware/pic.h" #include "hardware/pic.h"
#include "hardware/ps2.h" #include "hardware/ps2.h"
#include "hardware/speaker.h" #include "hardware/sound/speaker.h"
#include "hardware/timer.h" #include "hardware/pit.h"
#include "hardware/vga.h" #include "hardware/video/vga.h"
#include "vddsup.h" #include "vddsup.h"
#include "io.h" #include "io.h"

View file

@ -1,7 +1,7 @@
/* /*
* COPYRIGHT: GPL - See COPYING in the top level directory * COPYRIGHT: GPL - See COPYING in the top level directory
* PROJECT: ReactOS Virtual DOS Machine * PROJECT: ReactOS Virtual DOS Machine
* FILE: timer.c * FILE: pit.c
* PURPOSE: Programmable Interval Timer emulation - * PURPOSE: Programmable Interval Timer emulation -
* i82C54/8254 compatible * i82C54/8254 compatible
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org> * PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
@ -14,7 +14,7 @@
#include "emulator.h" #include "emulator.h"
#include "io.h" #include "io.h"
#include "timer.h" #include "pit.h"
#include "pic.h" #include "pic.h"
/* PRIVATE VARIABLES **********************************************************/ /* PRIVATE VARIABLES **********************************************************/

View file

@ -1,15 +1,15 @@
/* /*
* COPYRIGHT: GPL - See COPYING in the top level directory * COPYRIGHT: GPL - See COPYING in the top level directory
* PROJECT: ReactOS Virtual DOS Machine * PROJECT: ReactOS Virtual DOS Machine
* FILE: timer.h * FILE: pit.h
* PURPOSE: Programmable Interval Timer emulation - * PURPOSE: Programmable Interval Timer emulation -
* i82C54/8254 compatible * i82C54/8254 compatible
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org> * PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
* Hermes Belusca-Maito (hermes.belusca@sfr.fr) * Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/ */
#ifndef _TIMER_H_ #ifndef _PIT_H_
#define _TIMER_H_ #define _PIT_H_
/* INCLUDES *******************************************************************/ /* INCLUDES *******************************************************************/
@ -84,6 +84,6 @@ VOID PitClock(DWORD Count);
VOID PitInitialize(VOID); VOID PitInitialize(VOID);
#endif // _TIMER_H_ #endif // _PIT_H_
/* EOF */ /* EOF */

View file

@ -12,7 +12,7 @@
#include "emulator.h" #include "emulator.h"
#include "speaker.h" #include "speaker.h"
#include "timer.h" #include "hardware/pit.h"
/* Extra PSDK/NDK Headers */ /* Extra PSDK/NDK Headers */
#include <ndk/iofuncs.h> #include <ndk/iofuncs.h>

View file

@ -14,11 +14,7 @@
#include "emulator.h" #include "emulator.h"
#include "cpu/cpu.h" #include "cpu/cpu.h"
#include "clock.h"
#include "hardware/ps2.h"
#include "hardware/vga.h"
#include "bios/bios.h" #include "bios/bios.h"
#include "dos/dem.h"
#include "resource.h" #include "resource.h"