source: sbliveos2/trunk/sblive/midi.h@ 562

Last change on this file since 562 was 151, checked in by sandervl, 25 years ago

update

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1/* $Id: midi.h 151 2000-05-28 16:50:46Z sandervl $ */
2
3/*
4 **********************************************************************
5 * midi.h
6 * Copyright 1999, 2000 Creative Labs, Inc.
7 *
8 **********************************************************************
9 *
10 * Date Author Summary of changes
11 * ---- ------ ------------------
12 * October 20, 1999 Bertrand Lee base code release
13 *
14 **********************************************************************
15 *
16 * This program is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU General Public License as
18 * published by the Free Software Foundation; either version 2 of
19 * the License, or (at your option) any later version.
20 *
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 *
26 * You should have received a copy of the GNU General Public
27 * License along with this program; if not, write to the Free
28 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
29 * USA.
30 *
31 **********************************************************************
32 */
33
34#ifndef _MIDI_H
35#define _MIDI_H
36
37#define FMODE_MIDI_SHIFT 3
38#define FMODE_MIDI_READ (FMODE_READ << FMODE_MIDI_SHIFT)
39#define FMODE_MIDI_WRITE (FMODE_WRITE << FMODE_MIDI_SHIFT)
40
41#define MIDIIN_STATE_STARTED 0x00000001
42#define MIDIIN_STATE_STOPPED 0x00000002
43
44#ifdef TARGET_OS2
45#define MIDIIN_BUFLEN 16
46#else
47#define MIDIIN_BUFLEN 1024
48#endif
49
50struct emu10k1_mididevice
51{
52 struct emu10k1_card *card;
53 u32 mistate;
54 wait_queue_head_t oWait;
55 wait_queue_head_t iWait;
56 s8 iBuf[MIDIIN_BUFLEN];
57 u16 ird, iwr, icnt;
58 struct list_head mid_hdrs;
59};
60
61#endif /* _MIDI_H */
Note: See TracBrowser for help on using the repository browser.