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

« back to all changes in this revision

Viewing changes to mess/src/mess/machine/tms5501.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
 
 
3
 
    tms5501.h
4
 
 
5
 
    TMS 5501 code
6
 
 
7
 
*********************************************************************/
8
 
 
9
 
#ifndef __TMS5501_H__
10
 
#define __TMS5501_H__
11
 
 
12
 
 
13
 
/***************************************************************************
14
 
    MACROS
15
 
***************************************************************************/
16
 
 
17
 
DECLARE_LEGACY_DEVICE(TMS5501, tms5501);
18
 
 
19
 
 
20
 
 
21
 
/***************************************************************************
22
 
    TYPE DEFINITIONS
23
 
***************************************************************************/
24
 
 
25
 
/* TMS5501 timer and interrupt controller */
26
 
typedef struct _tms5501_interface tms5501_interface;
27
 
struct _tms5501_interface
28
 
{
29
 
        UINT8 (*pio_read_callback)(device_t *device);
30
 
        void (*pio_write_callback)(device_t *device, UINT8);
31
 
        void (*interrupt_callback)(device_t *device, int intreq, UINT8 vector);
32
 
        double clock_rate;
33
 
};
34
 
 
35
 
 
36
 
 
37
 
/***************************************************************************
38
 
    DEVICE CONFIGURATION MACROS
39
 
***************************************************************************/
40
 
 
41
 
#define MCFG_TMS5501_ADD(_tag, _intrf) \
42
 
        MCFG_DEVICE_ADD(_tag, TMS5501, 0) \
43
 
        MCFG_DEVICE_CONFIG(_intrf)
44
 
 
45
 
 
46
 
 
47
 
/***************************************************************************
48
 
    FUNCTION PROTOTYPES
49
 
***************************************************************************/
50
 
 
51
 
READ8_DEVICE_HANDLER( tms5501_r );
52
 
WRITE8_DEVICE_HANDLER( tms5501_w );
53
 
 
54
 
void tms5501_set_pio_bit_7 (device_t *device, UINT8 data);
55
 
void tms5501_sensor (device_t *device, UINT8 data);
56
 
 
57
 
#endif /* __TMS5501_H__ */