summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/isa/s3virge.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/isa/s3virge.h')
-rw-r--r--src/devices/bus/isa/s3virge.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/devices/bus/isa/s3virge.h b/src/devices/bus/isa/s3virge.h
index cadbcd8ef63..0ee07815092 100644
--- a/src/devices/bus/isa/s3virge.h
+++ b/src/devices/bus/isa/s3virge.h
@@ -7,8 +7,10 @@
*
*/
-#ifndef S3VIRGE_H_
-#define S3VIRGE_H_
+#ifndef MAME_BUS_ISA_S3VIRGE_H
+#define MAME_BUS_ISA_S3VIRGE_H
+
+#pragma once
#include "video/pc_vga.h"
@@ -19,7 +21,6 @@ class s3virge_vga_device : public s3_vga_device
public:
// construction/destruction
s3virge_vga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- s3virge_vga_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source);
virtual READ8_MEMBER(port_03b0_r) override;
virtual WRITE8_MEMBER(port_03b0_w) override;
@@ -31,7 +32,10 @@ public:
virtual WRITE8_MEMBER(mem_w) override;
ibm8514a_device* get_8514() { fatalerror("s3virge requested non-existant 8514/A device\n"); return nullptr; }
+
protected:
+ s3virge_vga_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
+
// device-level overrides
virtual void device_start() override;
virtual void device_reset() override;
@@ -51,9 +55,10 @@ class s3virgedx_vga_device : public s3virge_vga_device
public:
// construction/destruction
s3virgedx_vga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- s3virgedx_vga_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source);
protected:
+ s3virgedx_vga_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
+
// device-level overrides
virtual void device_start() override;
virtual void device_reset() override;
@@ -74,8 +79,8 @@ protected:
};
// device type definition
-extern const device_type S3VIRGE;
-extern const device_type S3VIRGEDX;
-extern const device_type S3VIRGEDX1;
+DECLARE_DEVICE_TYPE(S3VIRGE, s3virge_vga_device)
+DECLARE_DEVICE_TYPE(S3VIRGEDX, s3virgedx_vga_device)
+DECLARE_DEVICE_TYPE(S3VIRGEDX1, s3virgedx_rev1_vga_device)
-#endif /* S3VIRGE_H_ */
+#endif // MAME_BUS_ISA_S3VIRGE_H