~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to mess/src/mess/devices/sonydriv.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
 
    sonydriv.h
4
 
 
5
 
    Apple/Sony 3.5" floppy drive emulation (to be interfaced with applefdc.c)
6
 
 
7
 
*********************************************************************/
8
 
 
9
 
#ifndef SONYDRIV_H
10
 
#define SONYDRIV_H
11
 
 
12
 
#include "image.h"
13
 
#include "imagedev/flopdrv.h"
14
 
 
15
 
#if 0
16
 
enum
17
 
{
18
 
        SONY_FLOPPY_ALLOW400K           = 0x0001,
19
 
        SONY_FLOPPY_ALLOW800K           = 0x0002,
20
 
 
21
 
        SONY_FLOPPY_SUPPORT2IMG         = 0x4000,
22
 
        SONY_FLOPPY_EXT_SPEED_CONTROL   = 0x8000    // means the speed is controlled by computer
23
 
};
24
 
#endif
25
 
 
26
 
void sony_set_lines(device_t *device,UINT8 lines);
27
 
void sony_set_enable_lines(device_t *device,int enable_mask);
28
 
void sony_set_sel_line(device_t *device,int sel);
29
 
 
30
 
void sony_set_speed(int speed);
31
 
 
32
 
UINT8 sony_read_data(device_t *device);
33
 
void sony_write_data(device_t *device,UINT8 data);
34
 
int sony_read_status(device_t *device);
35
 
 
36
 
DECLARE_LEGACY_IMAGE_DEVICE(FLOPPY_SONY, sonydriv);
37
 
 
38
 
#define MCFG_FLOPPY_SONY_2_DRIVES_ADD(_config)  \
39
 
        MCFG_DEVICE_ADD(FLOPPY_0, FLOPPY_SONY, 0)               \
40
 
        MCFG_DEVICE_CONFIG(_config)     \
41
 
        MCFG_DEVICE_ADD(FLOPPY_1, FLOPPY_SONY, 0)               \
42
 
        MCFG_DEVICE_CONFIG(_config)
43
 
 
44
 
#define MCFG_FLOPPY_SONY_2_DRIVES_ADDITIONAL_ADD(_config)       \
45
 
        MCFG_DEVICE_ADD(FLOPPY_2, FLOPPY_SONY, 0)               \
46
 
        MCFG_DEVICE_CONFIG(_config)     \
47
 
        MCFG_DEVICE_ADD(FLOPPY_3, FLOPPY_SONY, 0)               \
48
 
        MCFG_DEVICE_CONFIG(_config)
49
 
 
50
 
#define MCFG_FLOPPY_SONY_2_DRIVES_MODIFY(_config)       \
51
 
        MCFG_DEVICE_MODIFY(FLOPPY_0)            \
52
 
        MCFG_DEVICE_CONFIG(_config)     \
53
 
        MCFG_DEVICE_MODIFY(FLOPPY_1)            \
54
 
        MCFG_DEVICE_CONFIG(_config)
55
 
 
56
 
 
57
 
 
58
 
#endif /* SONYDRIV_H */