diff options
Diffstat (limited to 'src/devices/machine/atapihle.h')
-rw-r--r-- | src/devices/machine/atapihle.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/devices/machine/atapihle.h b/src/devices/machine/atapihle.h index 2e44816a2ca..d01447e5830 100644 --- a/src/devices/machine/atapihle.h +++ b/src/devices/machine/atapihle.h @@ -8,20 +8,17 @@ ***************************************************************************/ -#pragma once +#ifndef MAME_MACHINE_ATAPIHLE_H +#define MAME_MACHINE_ATAPIHLE_H -#ifndef __ATAPIHLE_H__ -#define __ATAPIHLE_H__ +#pragma once #include "atahle.h" #include "t10spc.h" -class atapi_hle_device : public ata_hle_device, - public virtual t10spc +class atapi_hle_device : public ata_hle_device, public virtual t10spc { public: - atapi_hle_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); - enum atapi_features_flag_t { ATAPI_FEATURES_FLAG_DMA = 0x01, @@ -50,6 +47,8 @@ public: }; protected: + atapi_hle_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); + virtual void device_start() override; virtual void device_reset() override; @@ -72,7 +71,7 @@ private: int m_packet; int m_data_size; - static const int ATAPI_BUFFER_LENGTH = 0xf800; + static constexpr int ATAPI_BUFFER_LENGTH = 0xf800; }; -#endif +#endif // MAME_MACHINE_ATAPIHLE_H |