~ubuntu-branches/ubuntu/oneiric/oss4/oneiric-proposed

« back to all changes in this revision

Viewing changes to kernel/framework/include/uart401.h

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Rivera
  • Date: 2011-06-16 20:37:48 UTC
  • mfrom: (5.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110616203748-jbrxik6ql33z54co
Tags: 4.2-build2004-1ubuntu1
* Merge from Debian unstable.
  - Supports our current kernel (LP: #746048)
  Remaining changes:
  - debian/oss4-dkms.dkms.in: s/source/build/ in Kernel headers paths.
* ld-as-needed.patch: Re-order CC arguments to enable building with ld
  --as-needed (LP: #770972)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef UART401_H
 
2
#define UART401_H
 
3
/*
 
4
 * Purpose: Definitions for the MPU-401 (UART) support library
 
5
 */
 
6
 
 
7
/*
 
8
 *
 
9
 * This file is part of Open Sound System.
 
10
 *
 
11
 * Copyright (C) 4Front Technologies 1996-2008.
 
12
 *
 
13
 * This this source file is released under GPL v2 license (no other versions).
 
14
 * See the COPYING file included in the main directory of this source
 
15
 * distribution for the license terms and conditions.
 
16
 *
 
17
 */
 
18
 
 
19
#ifndef MIDI_CORE_H
 
20
#include "midi_core.h"
 
21
#endif
 
22
 
 
23
/*
 
24
 * Purpose: Definitions for the MPU-401 UART driver
 
25
 */
 
26
 
 
27
typedef struct uart401_devc
 
28
{
 
29
  oss_native_word base;
 
30
  int irq;
 
31
  oss_device_t *osdev;
 
32
  int running;
 
33
  oss_mutex_t mutex;
 
34
  oss_midi_inputbuf_t save_input_buffer;
 
35
  int opened, disabled;
 
36
  volatile unsigned char input_byte;
 
37
  int my_dev;
 
38
  int share_irq;
 
39
}
 
40
uart401_devc;
 
41
 
 
42
extern int uart401_init (uart401_devc * devc, oss_device_t * osdev, int base,
 
43
                         char *name);
 
44
extern void uart401_irq (uart401_devc * devc);
 
45
extern void uart401_disable (uart401_devc * devc);
 
46
#endif