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

« back to all changes in this revision

Viewing changes to mess/src/emu/sound/tms5220.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
 
#pragma once
2
 
 
3
 
#ifndef __TMS5220_H__
4
 
#define __TMS5220_H__
5
 
 
6
 
#include "devlegcy.h"
7
 
 
8
 
 
9
 
/* clock rate = 80 * output sample rate,     */
10
 
/* usually 640000 for 8000 Hz sample rate or */
11
 
/* usually 800000 for 10000 Hz sample rate.  */
12
 
 
13
 
typedef struct _tms5220_interface tms5220_interface;
14
 
struct _tms5220_interface
15
 
{
16
 
        devcb_write_line irq_func;              /* IRQ callback function, active low, i.e. state=0 */
17
 
        devcb_write_line readyq_func;   /* Ready callback function, active low, i.e. state=0 */
18
 
 
19
 
        int (*read)(device_t *device, int count);                       /* speech ROM read callback */
20
 
        void (*load_address)(device_t *device, int data);       /* speech ROM load address callback */
21
 
        void (*read_and_branch)(device_t *device);              /* speech ROM read and branch callback */
22
 
};
23
 
 
24
 
/* Control lines - once written to will switch interface into
25
 
 * "true" timing behaviour.
26
 
 */
27
 
 
28
 
/* all lines with suffix q are active low! */
29
 
 
30
 
WRITE_LINE_DEVICE_HANDLER( tms5220_rsq_w );
31
 
WRITE_LINE_DEVICE_HANDLER( tms5220_wsq_w );
32
 
 
33
 
WRITE8_DEVICE_HANDLER( tms5220_data_w );
34
 
READ8_DEVICE_HANDLER( tms5220_status_r );
35
 
 
36
 
READ_LINE_DEVICE_HANDLER( tms5220_readyq_r );
37
 
READ_LINE_DEVICE_HANDLER( tms5220_intq_r );
38
 
 
39
 
 
40
 
double tms5220_time_to_ready(device_t *device);
41
 
 
42
 
void tms5220_set_frequency(device_t *device, int frequency);
43
 
 
44
 
DECLARE_LEGACY_SOUND_DEVICE(TMS5220C, tms5220c);
45
 
DECLARE_LEGACY_SOUND_DEVICE(TMS5220, tms5220);
46
 
DECLARE_LEGACY_SOUND_DEVICE(TMC0285, tmc0285);
47
 
DECLARE_LEGACY_SOUND_DEVICE(TMS5200, tms5200);
48
 
 
49
 
 
50
 
#endif /* __TMS5220_H__ */