blob: 12e0a75894809342167fb072bda01ffef7336588 (
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
45
46
47
48
49
|
// license:BSD-3-Clause
// copyright-holders:Tim Schuerewegen
/*
NVIDIA GoForce 4500
(c) 2010 Tim Schuerewegen
*/
#ifndef MAME_VIDEO_GF4500_H
#define MAME_VIDEO_GF4500_H
#pragma once
class gf4500_device : public device_t
{
public:
gf4500_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);
uint32_t read(offs_t offset);
void write(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
uint32_t screen_update(screen_device &device, bitmap_rgb32 &bitmap, const rectangle &cliprect);
protected:
// device-level overrides
virtual void device_start() override;
virtual void device_reset() override;
private:
// internal state
void vram_write16(uint16_t data);
std::unique_ptr<uint32_t[]> m_data;
int m_screen_x;
int m_screen_y;
int m_screen_x_max;
int m_screen_y_max;
int m_screen_x_min;
int m_screen_y_min;
};
DECLARE_DEVICE_TYPE(GF4500, gf4500_device)
#endif // MAME_VIDEO_GF4500_H
|