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
50
51
52
53
54
55
56
57
|
/*************************************************************************
SMC91C9X ethernet controller implementation
by Aaron Giles
**************************************************************************/
#ifndef __SMC91C9X__
#define __SMC91C9X__
#include "devlegcy.h"
/***************************************************************************
TYPE DEFINITIONS
***************************************************************************/
typedef void (*smc91c9x_irq_func)(device_t *device, int state);
typedef struct _smc91c9x_config smc91c9x_config;
struct _smc91c9x_config
{
smc91c9x_irq_func interrupt;
};
/***************************************************************************
DEVICE CONFIGURATION MACROS
***************************************************************************/
#define MCFG_SMC91C94_ADD(_tag, _callback) \
MCFG_DEVICE_ADD(_tag, SMC91C94, 0) \
MCFG_DEVICE_CONFIG_DATAPTR(smc91c9x_config, interrupt, _callback)
#define MCFG_SMC91C96_ADD(_tag, _callback) \
MCFG_DEVICE_ADD(_tag, SMC91C96, 0) \
MCFG_DEVICE_CONFIG_DATAPTR(smc91c9x_config, interrupt, _callback)
/***************************************************************************
FUNCTION PROTOTYPES
***************************************************************************/
READ16_DEVICE_HANDLER( smc91c9x_r );
WRITE16_DEVICE_HANDLER( smc91c9x_w );
/* ----- device interface ----- */
DECLARE_LEGACY_DEVICE(SMC91C94, smc91c94);
DECLARE_LEGACY_DEVICE(SMC91C96, smc91c96);
#endif
|