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

Last change on this file since 144 was 142, checked in by ktk, 25 years ago

Import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1/* $Id: midi.h 142 2000-04-23 14:55:46Z ktk $ */
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#define MIDIIN_BUFLEN 1024
45
46struct emu10k1_mididevice
47{
48 struct emu10k1_card *card;
49 u32 mistate;
50 wait_queue_head_t oWait;
51 wait_queue_head_t iWait;
52 s8 iBuf[MIDIIN_BUFLEN];
53 u16 ird, iwr, icnt;
54 struct list_head mid_hdrs;
55};
56
57#endif /* _MIDI_H */
Note: See TracBrowser for help on using the repository browser.