mirror of
https://github.com/holub/mame
synced 2025-05-31 18:11:50 +03:00
64 lines
1.8 KiB
C++
64 lines
1.8 KiB
C++
#include "emu.h"
|
|
#include "intelfsh.h"
|
|
#include "machine/pccard.h"
|
|
|
|
class linear_flash_card_device : public device_t,
|
|
public pccard_interface,
|
|
public device_memory_interface,
|
|
public device_slot_card_interface
|
|
{
|
|
public:
|
|
virtual DECLARE_READ16_MEMBER(read_memory);
|
|
virtual DECLARE_WRITE16_MEMBER(write_memory);
|
|
|
|
protected:
|
|
linear_flash_card_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock,const char *shortname = "", const char *source = __FILE__);
|
|
|
|
// device-level overrides
|
|
virtual void device_start();
|
|
|
|
// device_memory_interface overrides
|
|
virtual const address_space_config *memory_space_config( address_spacenum spacenum = AS_0 ) const;
|
|
|
|
address_space_config m_space_config;
|
|
address_space *m_space;
|
|
};
|
|
|
|
|
|
extern const device_type LINEAR_FLASH_16MB;
|
|
|
|
class linear_flash_card_16mb_device : public linear_flash_card_device
|
|
{
|
|
public:
|
|
linear_flash_card_16mb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
|
|
|
protected:
|
|
// device-level overrides
|
|
virtual machine_config_constructor device_mconfig_additions() const;
|
|
};
|
|
|
|
|
|
extern const device_type LINEAR_FLASH_32MB;
|
|
|
|
class linear_flash_card_32mb_device : public linear_flash_card_device
|
|
{
|
|
public:
|
|
linear_flash_card_32mb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
|
|
|
protected:
|
|
// device-level overrides
|
|
virtual machine_config_constructor device_mconfig_additions() const;
|
|
};
|
|
|
|
extern const device_type LINEAR_FLASH_64MB;
|
|
|
|
class linear_flash_card_64mb_device : public linear_flash_card_device
|
|
{
|
|
public:
|
|
linear_flash_card_64mb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
|
|
|
protected:
|
|
// device-level overrides
|
|
virtual machine_config_constructor device_mconfig_additions() const;
|
|
};
|