Skip to content

Commit

Permalink
Don't include cpu.h in timer.h
Browse files Browse the repository at this point in the history
Change the name of the define used to indicate SVGA multi-monitor-capable cards
  • Loading branch information
Cacodemon345 committed Mar 6, 2025
1 parent 78f50c5 commit 74368bf
Show file tree
Hide file tree
Showing 37 changed files with 42 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/chipset/ali1531.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <wchar.h>
#define HAVE_STDARG_H
#include <86box/86box.h>
#include "cpu.h"
#include <86box/timer.h>

#include <86box/device.h>
Expand Down
1 change: 1 addition & 0 deletions src/chipset/ali1541.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <wchar.h>
#define HAVE_STDARG_H
#include <86box/86box.h>
#include "cpu.h"
#include <86box/timer.h>

#include <86box/device.h>
Expand Down
1 change: 1 addition & 0 deletions src/chipset/ali1543.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <wchar.h>
#define HAVE_STDARG_H
#include <86box/86box.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/device.h>
#include <86box/io.h>
Expand Down
1 change: 1 addition & 0 deletions src/chipset/ali6117.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <86box/io.h>
#include <86box/pci.h>
#include <86box/pic.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/pit.h>
#include <86box/device.h>
Expand Down
1 change: 1 addition & 0 deletions src/chipset/gc100.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define HAVE_STDARG_H
#include <86box/86box.h>
#include <86box/nmi.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/pit.h>
#include <86box/mem.h>
Expand Down
1 change: 1 addition & 0 deletions src/chipset/sis_5511_h2p.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <86box/86box.h>
#include <86box/device.h>
#include <86box/io.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/dma.h>
#include <86box/mem.h>
Expand Down
1 change: 1 addition & 0 deletions src/chipset/sis_5513_p2i.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <86box/86box.h>
#include <86box/device.h>
#include <86box/io.h>
#include "cpu.h"
#include <86box/timer.h>

#include <86box/dma.h>
Expand Down
1 change: 1 addition & 0 deletions src/chipset/sis_5571_h2p.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <86box/86box.h>
#include <86box/device.h>
#include <86box/io.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/dma.h>
#include <86box/mem.h>
Expand Down
1 change: 1 addition & 0 deletions src/chipset/sis_5581_h2p.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <86box/86box.h>
#include <86box/device.h>
#include <86box/io.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/dma.h>
#include <86box/mem.h>
Expand Down
1 change: 1 addition & 0 deletions src/chipset/sis_5591_h2p.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <86box/86box.h>
#include <86box/device.h>
#include <86box/io.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/dma.h>
#include <86box/mem.h>
Expand Down
1 change: 1 addition & 0 deletions src/chipset/sis_5600_h2p.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <86box/86box.h>
#include <86box/device.h>
#include <86box/io.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/dma.h>
#include <86box/mem.h>
Expand Down
1 change: 1 addition & 0 deletions src/chipset/sis_85c50x.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <86box/86box.h>
#include <86box/device.h>
#include <86box/io.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/apm.h>
#include <86box/machine.h>
Expand Down
1 change: 1 addition & 0 deletions src/device/cartridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <wchar.h>
#define HAVE_STDARG_H
#include <86box/86box.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/plat.h>
#include <86box/ui.h>
Expand Down
1 change: 1 addition & 0 deletions src/device/keyboard_xt.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <wchar.h>
#include <86box/86box.h>
#include <86box/device.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/fdd.h>
#include <86box/machine.h>
Expand Down
1 change: 1 addition & 0 deletions src/device/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define HAVE_STDARG_H
#include <86box/86box.h>
#include <86box/device.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/machine.h>
#include <86box/io.h>
Expand Down
2 changes: 1 addition & 1 deletion src/include/86box/timer.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _TIMER_H_
#define _TIMER_H_

#include "cpu.h"
extern uint64_t tsc;

/* Maximum period, currently 1 second. */
#define MAX_USEC64 1000000ULL
Expand Down
2 changes: 2 additions & 0 deletions src/include/86box/video.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ enum {
#define VIDEO_FLAG_TYPE_NONE 5
#define VIDEO_FLAG_TYPE_MASK 7

#define VIDEO_FLAG_TYPE_SECONDARY VIDEO_FLAG_TYPE_SPECIAL

typedef struct video_timings_t {
int type;
int write_b;
Expand Down
1 change: 1 addition & 0 deletions src/machine/m_at_socket5.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <86box/fdc_ext.h>
#include <86box/hdc.h>
#include <86box/hdc_ide.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/fdd.h>
#include <86box/fdc.h>
Expand Down
1 change: 1 addition & 0 deletions src/machine/m_xt_olivetti.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <wchar.h>
#define HAVE_STDARG_H
#include <86box/86box.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/io.h>
#include <86box/pic.h>
Expand Down
1 change: 1 addition & 0 deletions src/machine/m_xt_philips.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#define HAVE_STDARG_H
#include <86box/86box.h>
#include <86box/nmi.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/pit.h>
#include <86box/mem.h>
Expand Down
1 change: 1 addition & 0 deletions src/mem/sst_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <86box/device.h>
#include <86box/mem.h>
#include <86box/machine.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/nvr.h>
#include <86box/plat.h>
Expand Down
1 change: 1 addition & 0 deletions src/qt/qt_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ extern MainWindow *main_window;

extern "C" {
#include <86box/keyboard.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/nvr.h>
extern int qt_nvr_save(void);
Expand Down
6 changes: 3 additions & 3 deletions src/qt/qt_settingsdisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ SettingsDisplay::on_comboBoxVideo_currentIndexChanged(int index)
int secondaryFlags = video_card_get_flags(c);
if (video_card_available(c)
&& device_is_valid(video_dev, machineId)
&& !((secondaryFlags == primaryFlags) && (secondaryFlags != VIDEO_FLAG_TYPE_SPECIAL))
&& !(((primaryFlags == VIDEO_FLAG_TYPE_8514) || (primaryFlags == VIDEO_FLAG_TYPE_XGA)) && (secondaryFlags != VIDEO_FLAG_TYPE_MDA) && (secondaryFlags != VIDEO_FLAG_TYPE_SPECIAL))
&& !((primaryFlags != VIDEO_FLAG_TYPE_MDA) && (primaryFlags != VIDEO_FLAG_TYPE_SPECIAL) && ((secondaryFlags == VIDEO_FLAG_TYPE_8514) || (secondaryFlags == VIDEO_FLAG_TYPE_XGA)))) {
&& !((secondaryFlags == primaryFlags) && (secondaryFlags != VIDEO_FLAG_TYPE_SECONDARY))
&& !(((primaryFlags == VIDEO_FLAG_TYPE_8514) || (primaryFlags == VIDEO_FLAG_TYPE_XGA)) && (secondaryFlags != VIDEO_FLAG_TYPE_MDA) && (secondaryFlags != VIDEO_FLAG_TYPE_SECONDARY))
&& !((primaryFlags != VIDEO_FLAG_TYPE_MDA) && (primaryFlags != VIDEO_FLAG_TYPE_SECONDARY) && ((secondaryFlags == VIDEO_FLAG_TYPE_8514) || (secondaryFlags == VIDEO_FLAG_TYPE_XGA)))) {
ui->comboBoxVideoSecondary->addItem(name, c);
if (c == curVideoCard_2)
ui->comboBoxVideoSecondary->setCurrentIndex(ui->comboBoxVideoSecondary->count() - 1);
Expand Down
1 change: 1 addition & 0 deletions src/scsi/scsi_t128.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#define HAVE_STDARG_H
#include <86box/86box.h>
#include <86box/io.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/dma.h>
#include <86box/pic.h>
Expand Down
1 change: 1 addition & 0 deletions src/sound/snd_audiopci.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include <86box/pci.h>
#include <86box/snd_ac97.h>
#include <86box/sound.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/plat_unused.h>
#include <86box/snd_akm4531.h>
Expand Down
1 change: 1 addition & 0 deletions src/sound/snd_gus.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <86box/nmi.h>
#include <86box/pic.h>
#include <86box/sound.h>
#include "cpu.h"
#include <86box/timer.h>
#ifdef USE_GUSMAX
# include <86box/snd_ad1848.h>
Expand Down
1 change: 1 addition & 0 deletions src/sound/snd_opl_esfm.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <86box/86box.h>
#include <86box/sound.h>
#include <86box/device.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/snd_opl.h>
#include <86box/plat_unused.h>
Expand Down
1 change: 1 addition & 0 deletions src/sound/snd_opl_nuked.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#define HAVE_STDARG_H
#include <86box/86box.h>
#include <86box/sound.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/device.h>
#include <86box/snd_opl.h>
Expand Down
1 change: 1 addition & 0 deletions src/sound/snd_sb.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include <86box/pic.h>
#include <86box/rom.h>
#include <86box/sound.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/snd_sb.h>
#include <86box/plat_unused.h>
Expand Down
1 change: 1 addition & 0 deletions src/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <string.h>
#include <wchar.h>
#include <86box/86box.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/nv/vid_nv_rivatimer.h>

Expand Down
1 change: 1 addition & 0 deletions src/video/vid_ati_mach64.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <86box/device.h>
#include <86box/io.h>
#include <86box/mem.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/pci.h>
#include <86box/rom.h>
Expand Down
1 change: 1 addition & 0 deletions src/video/vid_ati_mach8.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <86box/device.h>
#include <86box/io.h>
#include <86box/mem.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/mca.h>
#include <86box/pci.h>
Expand Down
1 change: 1 addition & 0 deletions src/video/vid_chips_69000.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <86box/mem.h>
#include <86box/rom.h>
#include <86box/device.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/video.h>
#include <86box/vid_svga.h>
Expand Down
1 change: 1 addition & 0 deletions src/video/vid_mga.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <stdatomic.h>
#include <86box/86box.h>
#include <86box/io.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/mem.h>
#include <86box/pci.h>
Expand Down
1 change: 1 addition & 0 deletions src/video/vid_nga.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <86box/io.h>
#include <86box/video.h>
#include <86box/86box.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/mem.h>
#include <86box/pit.h>
Expand Down
1 change: 1 addition & 0 deletions src/video/vid_ogc.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <86box/io.h>
#include <86box/video.h>
#include <86box/86box.h>
#include "cpu.h"
#include <86box/timer.h>
#include <86box/mem.h>
#include <86box/pit.h>
Expand Down
6 changes: 3 additions & 3 deletions src/video/vid_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ video_cards[] = {
{ .device = &chips_69000_device, .flags = VIDEO_FLAG_TYPE_NONE },
{ .device = &gd5430_pci_device, .flags = VIDEO_FLAG_TYPE_NONE },
{ .device = &gd5434_pci_device, .flags = VIDEO_FLAG_TYPE_NONE },
{ .device = &gd5436_pci_device, .flags = VIDEO_FLAG_TYPE_SPECIAL },
{ .device = &gd5436_pci_device, .flags = VIDEO_FLAG_TYPE_SECONDARY },
{ .device = &gd5440_pci_device, .flags = VIDEO_FLAG_TYPE_NONE },
{ .device = &gd5446_pci_device, .flags = VIDEO_FLAG_TYPE_SPECIAL },
{ .device = &gd5446_stb_pci_device, .flags = VIDEO_FLAG_TYPE_SPECIAL },
{ .device = &gd5446_pci_device, .flags = VIDEO_FLAG_TYPE_SECONDARY },
{ .device = &gd5446_stb_pci_device, .flags = VIDEO_FLAG_TYPE_SECONDARY },
{ .device = &gd5480_pci_device, .flags = VIDEO_FLAG_TYPE_NONE },
{ .device = &et4000w32p_videomagic_revb_pci_device, .flags = VIDEO_FLAG_TYPE_NONE },
{ .device = &et4000w32p_revc_pci_device, .flags = VIDEO_FLAG_TYPE_NONE },
Expand Down

0 comments on commit 74368bf

Please sign in to comment.