summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/pc_vga_nvidia.h
blob: 8f825435c400997967ed838e4665b812614d7140 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// license:BSD-3-Clause
// copyright-holders: Angelo Salese

#ifndef MAME_VIDEO_PC_VGA_NVIDIA_H
#define MAME_VIDEO_PC_VGA_NVIDIA_H

#pragma once

#include "video/pc_vga.h"

#include "screen.h"


class nvidia_nv3_vga_device :  public svga_device
{
public:
	// Throws DDC issues when tested in SDD
	static constexpr feature_type imperfect_features() { return feature::GRAPHICS; }

	// construction/destruction
	nvidia_nv3_vga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);

	virtual uint8_t mem_r(offs_t offset) override;
	virtual void mem_w(offs_t offset, uint8_t data) override;

	virtual void io_3bx_3dx_map(address_map &map) override ATTR_COLD;

protected:
	virtual void device_start() override ATTR_COLD;
	virtual void crtc_map(address_map &map) override ATTR_COLD;

	virtual ioport_constructor device_input_ports() const override ATTR_COLD;

	virtual void device_add_mconfig(machine_config &config) override ATTR_COLD;
	virtual uint16_t offset() override;

private:
	u8 m_repaint[2]{};
	u16 m_ext_offset = 0;
};

DECLARE_DEVICE_TYPE(NVIDIA_NV3_VGA, nvidia_nv3_vga_device)

#endif // MAME_VIDEO_PC_VGA_NVIDIA_H