source: sbliveos2/trunk/sblive/cardmo.h@ 154

Last change on this file since 154 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: 2.0 KB
Line 
1/* $Id: cardmo.h 142 2000-04-23 14:55:46Z ktk $ */
2
3/*
4 **********************************************************************
5 * cardmo.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 * November 2, 1999 Alan Cox cleaned up
14 *
15 **********************************************************************
16 *
17 * This program is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU General Public License as
19 * published by the Free Software Foundation; either version 2 of
20 * the License, or (at your option) any later version.
21 *
22 * This program is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
26 *
27 * You should have received a copy of the GNU General Public
28 * License along with this program; if not, write to the Free
29 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
30 * USA.
31 *
32 **********************************************************************
33 */
34
35#ifndef _CARDMO_H
36#define _CARDMO_H
37
38#include "icardmid.h"
39
40#define CARDMIDIOUT_STATE_DEFAULT 0x00000000
41#define CARDMIDIOUT_STATE_SUSPEND 0x00000001
42
43struct emu10k1_mpuout
44{
45 u32 status;
46 u32 state;
47 volatile int intr;
48 struct midi_queue *firstmidiq;
49 struct midi_queue *lastmidiq;
50 u8 laststatus;
51 struct tasklet_struct tasklet;
52 spinlock_t lock;
53 struct midi_openinfo openinfo;
54};
55
56int emu10k1_mpuout_open(struct emu10k1_card *, struct midi_openinfo *);
57int emu10k1_mpuout_close(struct emu10k1_card *);
58int emu10k1_mpuout_add_buffer(struct emu10k1_card *, struct midi_hdr *);
59
60int emu10k1_mpuout_irqhandler(struct emu10k1_card *);
61void emu10k1_mpuout_bh(unsigned long);
62
63#endif /* _CARDMO_H */
Note: See TracBrowser for help on using the repository browser.