midi.c (193640) | midi.c (193979) |
---|---|
1/*- 2 * Copyright (c) 2003 Mathew Kanner 3 * Copyright (c) 1998 The NetBSD Foundation, Inc. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to The NetBSD Foundation 7 * by Lennart Augustsson (augustss@netbsd.org). 8 * --- 21 unchanged lines hidden (view full) --- 30 31 /* 32 * Parts of this file started out as NetBSD: midi.c 1.31 33 * They are mostly gone. Still the most obvious will be the state 34 * machine midi_in 35 */ 36 37#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003 Mathew Kanner 3 * Copyright (c) 1998 The NetBSD Foundation, Inc. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to The NetBSD Foundation 7 * by Lennart Augustsson (augustss@netbsd.org). 8 * --- 21 unchanged lines hidden (view full) --- 30 31 /* 32 * Parts of this file started out as NetBSD: midi.c 1.31 33 * They are mostly gone. Still the most obvious will be the state 34 * machine midi_in 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/dev/sound/midi/midi.c 193640 2009-06-07 19:12:08Z ariff $"); | 38__FBSDID("$FreeBSD: head/sys/dev/sound/midi/midi.c 193979 2009-06-11 09:06:09Z ariff $"); |
39 40#include <sys/param.h> 41#include <sys/queue.h> 42#include <sys/kernel.h> 43#include <sys/lock.h> 44#include <sys/mutex.h> 45#include <sys/proc.h> 46#include <sys/signalvar.h> --- 6 unchanged lines hidden (view full) --- 53#include <sys/systm.h> 54#include <sys/proc.h> 55#include <sys/fcntl.h> 56#include <sys/types.h> 57#include <sys/uio.h> 58#include <sys/poll.h> 59#include <sys/sbuf.h> 60#include <sys/kobj.h> | 39 40#include <sys/param.h> 41#include <sys/queue.h> 42#include <sys/kernel.h> 43#include <sys/lock.h> 44#include <sys/mutex.h> 45#include <sys/proc.h> 46#include <sys/signalvar.h> --- 6 unchanged lines hidden (view full) --- 53#include <sys/systm.h> 54#include <sys/proc.h> 55#include <sys/fcntl.h> 56#include <sys/types.h> 57#include <sys/uio.h> 58#include <sys/poll.h> 59#include <sys/sbuf.h> 60#include <sys/kobj.h> |
61#ifdef SND_DEBUG 62#undef KOBJMETHOD 63#define KOBJMETHOD(NAME, FUNC) \ 64 { \ 65 &NAME##_desc, \ 66 (kobjop_t) ((FUNC != (NAME##_t *)NULL) ? FUNC : NULL) \ 67 } 68#endif 69#ifndef KOBJMETHOD_END 70#define KOBJMETHOD_END { NULL, NULL } 71#endif | |
72#include <sys/module.h> 73 74#ifdef HAVE_KERNEL_OPTION_HEADERS 75#include "opt_snd.h" 76#endif 77 78#include <dev/sound/midi/midi.h> 79#include "mpu_if.h" 80 81#include <dev/sound/midi/midiq.h> 82#include "synth_if.h" 83MALLOC_DEFINE(M_MIDI, "midi buffers", "Midi data allocation area"); 84 | 61#include <sys/module.h> 62 63#ifdef HAVE_KERNEL_OPTION_HEADERS 64#include "opt_snd.h" 65#endif 66 67#include <dev/sound/midi/midi.h> 68#include "mpu_if.h" 69 70#include <dev/sound/midi/midiq.h> 71#include "synth_if.h" 72MALLOC_DEFINE(M_MIDI, "midi buffers", "Midi data allocation area"); 73 |
74#ifndef KOBJMETHOD_END 75#define KOBJMETHOD_END { NULL, NULL } 76#endif |
|
85 86#define PCMMKMINOR(u, d, c) ((((c) & 0xff) << 16) | (((u) & 0x0f) << 4) | ((d) & 0x0f)) 87#define MIDIMKMINOR(u, d, c) PCMMKMINOR(u, d, c) 88 89#define MIDI_DEV_RAW 2 90#define MIDI_DEV_MIDICTL 12 91 92enum midi_states { --- 1447 unchanged lines hidden --- | 77 78#define PCMMKMINOR(u, d, c) ((((c) & 0xff) << 16) | (((u) & 0x0f) << 4) | ((d) & 0x0f)) 79#define MIDIMKMINOR(u, d, c) PCMMKMINOR(u, d, c) 80 81#define MIDI_DEV_RAW 2 82#define MIDI_DEV_MIDICTL 12 83 84enum midi_states { --- 1447 unchanged lines hidden --- |