diff options
Diffstat (limited to 'trunk/src/emu/machine/smc91c9x.h')
-rw-r--r-- | trunk/src/emu/machine/smc91c9x.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/trunk/src/emu/machine/smc91c9x.h b/trunk/src/emu/machine/smc91c9x.h new file mode 100644 index 00000000000..7a3f9de3505 --- /dev/null +++ b/trunk/src/emu/machine/smc91c9x.h @@ -0,0 +1,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 |