~ubuntu-branches/ubuntu/raring/mame/raring-proposed

« back to all changes in this revision

Viewing changes to mess/src/mess/machine/tms9901.h

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Jordi Mallach, Emmanuel Kasper
  • Date: 2011-12-19 22:56:27 UTC
  • mfrom: (0.1.2)
  • Revision ID: package-import@ubuntu.com-20111219225627-ub5oga1oys4ogqzm
Tags: 0.144-1
[ Jordi Mallach ]
* Fix syntax errors in DEP5 copyright file (lintian).
* Use a versioned copyright Format specification field.
* Update Vcs-* URLs.
* Move transitional packages to the new metapackages section, and make
  them priority extra.
* Remove references to GNU/Linux and MESS sources from copyright.
* Add build variables for s390x.
* Use .xz tarballs as it cuts 4MB for the upstream sources.
* Add nplayers.ini as a patch. Update copyright file to add CC-BY-SA-3.0.

[ Emmanuel Kasper ]
* New upstream release. Closes: #651538.
* Add Free Desktop compliant png icons of various sizes taken from
  the hydroxygen iconset
* Mess is now built from a new source package, to avoid possible source
  incompatibilities between mame and the mess overlay.
* Mame-tools are not built from the mame source package anymore, but
  from the mess source package

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
    tms9901.h: header file for tms9901.c
3
 
 
4
 
    Raphael Nabet
5
 
*/
6
 
#ifndef __TMS9901_H__
7
 
#define __TMS9901_H__
8
 
 
9
 
/***************************************************************************
10
 
    MACROS
11
 
***************************************************************************/
12
 
 
13
 
DECLARE_LEGACY_DEVICE(TMS9901, tms9901);
14
 
 
15
 
/* Masks for the interrupts levels available on TMS9901 */
16
 
#define TMS9901_INT1 0x0002
17
 
#define TMS9901_INT2 0x0004
18
 
#define TMS9901_INT3 0x0008             /* overriden by the timer interrupt */
19
 
#define TMS9901_INT4 0x0010
20
 
#define TMS9901_INT5 0x0020
21
 
#define TMS9901_INT6 0x0040
22
 
#define TMS9901_INT7 0x0080
23
 
#define TMS9901_INT8 0x0100
24
 
#define TMS9901_INT9 0x0200
25
 
#define TMS9901_INTA 0x0400
26
 
#define TMS9901_INTB 0x0800
27
 
#define TMS9901_INTC 0x1000
28
 
#define TMS9901_INTD 0x2000
29
 
#define TMS9901_INTE 0x4000
30
 
#define TMS9901_INTF 0x8000
31
 
 
32
 
/***************************************************************************
33
 
    TYPE DEFINITIONS
34
 
***************************************************************************/
35
 
 
36
 
typedef void (*tms9901_int_callback_func)(device_t *device, int intreq, int ic);
37
 
#define TMS9901_INT_CALLBACK(name)      void name(device_t *device, int intreq, int ic )
38
 
 
39
 
typedef struct _tms9901_interface tms9901_interface;
40
 
struct _tms9901_interface
41
 
{
42
 
        int supported_int_mask; /* a bit for each input pin whose state is always notified to the TMS9901 core */
43
 
        read8_device_func  read_handlers[4];      /* 4*8 bits */
44
 
        write8_device_func write_handlers[16]; /* 16 Pn outputs */
45
 
        tms9901_int_callback_func interrupt_callback; /* called when interrupt bus state changes */
46
 
        double clock_rate;
47
 
};
48
 
 
49
 
 
50
 
/***************************************************************************
51
 
    FUNCTION PROTOTYPES
52
 
***************************************************************************/
53
 
 
54
 
void tms9901_set_single_int(device_t *device, int pin_number, int state);
55
 
 
56
 
READ8_DEVICE_HANDLER ( tms9901_cru_r );
57
 
WRITE8_DEVICE_HANDLER( tms9901_cru_w );
58
 
 
59
 
/***************************************************************************
60
 
    DEVICE CONFIGURATION MACROS
61
 
***************************************************************************/
62
 
 
63
 
#define MCFG_TMS9901_ADD(_tag, _intrf) \
64
 
        MCFG_DEVICE_ADD(_tag, TMS9901, 0) \
65
 
        MCFG_DEVICE_CONFIG(_intrf)
66
 
 
67
 
#endif /* __TMS9901_H__ */