blob: f5a2534f369ab7ea335d213f01d8ea16a7a1f65a (
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
|
/*
strata.h: header file for strata.c
*/
class strataflash_device : public device_t
{
public:
strataflash_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
~strataflash_device() { global_free(m_token); }
// access to legacy token
void *token() const { assert(m_token != NULL); return m_token; }
protected:
// device-level overrides
virtual void device_config_complete();
virtual void device_start();
private:
// internal state
void *m_token;
};
extern const device_type STRATAFLASH;
#define MCFG_STRATAFLASH_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, STRATAFLASH, 0)
int strataflash_load(device_t *device, emu_file *file);
int strataflash_save(device_t *device, emu_file *file);
UINT8 strataflash_8_r(device_t *device, UINT32 address);
void strataflash_8_w(device_t *device, UINT32 address, UINT8 data);
UINT16 strataflash_16_r(device_t *device, offs_t offset);
void strataflash_16_w(device_t *device, offs_t offset, UINT16 data);
|