-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
78 changed files
with
6,298 additions
and
2,268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// license: BSD-3-Clause | ||
// copyright-holders: Angelo Salese | ||
/************************************************************************************************** | ||
[Cyrix/National Semiconductor/AMD] [MediaGX/Geode] [Cx/CS]5530 VIDEO implementation (XpressGRAPHICS?) | ||
TODO: | ||
- extensions for host display section (GX_BASE+8300h); | ||
**************************************************************************************************/ | ||
|
||
#include "emu.h" | ||
#include "mediagx_cs5530_video.h" | ||
|
||
#define VERBOSE (LOG_GENERAL) | ||
//#define LOG_OUTPUT_FUNC osd_printf_info | ||
|
||
#include "logmacro.h" | ||
|
||
DEFINE_DEVICE_TYPE(MEDIAGX_CS5530_VIDEO, mediagx_cs5530_video_device, "mediagx_cs5530_video", "MediaGX CS5530 Video Controller") | ||
|
||
mediagx_cs5530_video_device::mediagx_cs5530_video_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) | ||
: pci_device(mconfig, MEDIAGX_CS5530_VIDEO, tag, owner, clock) | ||
{ | ||
set_ids(0x10780104, 0x00, 0x030000, 0x00); | ||
} | ||
|
||
void mediagx_cs5530_video_device::config_map(address_map &map) | ||
{ | ||
pci_device::config_map(map); | ||
// map(0x14, 0xff).unmaprw(); // <reserved> | ||
} | ||
|
||
void mediagx_cs5530_video_device::io_map(address_map &map) | ||
{ | ||
|
||
} | ||
|
||
void mediagx_cs5530_video_device::device_start() | ||
{ | ||
pci_device::device_start(); | ||
|
||
add_map(4*1024, M_MEM, FUNC(mediagx_cs5530_video_device::io_map)); | ||
|
||
// no INT pin | ||
} | ||
|
||
void mediagx_cs5530_video_device::device_reset() | ||
{ | ||
pci_device::device_reset(); | ||
|
||
command = 0x0000; | ||
command_mask = 0x0003; | ||
status = 0x0280; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// license: BSD-3-Clause | ||
// copyright-holders: Angelo Salese | ||
|
||
#ifndef MAME_MACHINE_SIS630_VGA_H | ||
#define MAME_MACHINE_SIS630_VGA_H | ||
|
||
#pragma once | ||
|
||
#include "pci.h" | ||
#include "video/pc_vga.h" | ||
|
||
class mediagx_cs5530_video_device : public pci_device | ||
{ | ||
public: | ||
mediagx_cs5530_video_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); | ||
|
||
protected: | ||
virtual void device_start() override; | ||
virtual void device_reset() override; | ||
|
||
virtual void config_map(address_map &map) override; | ||
|
||
void io_map(address_map &map); | ||
}; | ||
|
||
DECLARE_DEVICE_TYPE(MEDIAGX_CS5530_VIDEO, mediagx_cs5530_video_device) | ||
|
||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.