1
0
Fork 0

add PCI framework

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3723
This commit is contained in:
Sebastian Strohhäcker 2011-06-18 13:39:31 +00:00
parent 1828977d5c
commit 6bc4e41458
10 changed files with 682 additions and 4 deletions

View file

@ -41,6 +41,7 @@
#include "mapper.h"
#include "ints/int10.h"
#include "render.h"
#include "pci_bus.h"
Config * control;
MachineType machine;
@ -73,6 +74,10 @@ void MIXER_Init(Section*);
void MIDI_Init(Section*);
void HARDWARE_Init(Section*);
#if defined(PCI_FUNCTIONALITY_ENABLED)
void PCI_Init(Section*);
#endif
void KEYBOARD_Init(Section*); //TODO This should setup INT 16 too but ok ;)
void JOYSTICK_Init(Section*);
@ -446,6 +451,12 @@ void DOSBOX_Init(void) {
secprop->AddInitFunction(&VGA_Init);
secprop->AddInitFunction(&KEYBOARD_Init);
#if defined(PCI_FUNCTIONALITY_ENABLED)
secprop=control->AddSection_prop("pci",&PCI_Init,false); //PCI bus
#endif
secprop=control->AddSection_prop("mixer",&MIXER_Init);
Pbool = secprop->Add_bool("nosound",Property::Changeable::OnlyAtStart,false);
Pbool->Set_help("Enable silent mode, sound is still emulated though.");