#ifndef __SOUND_SEQ_OSS_H
#define __SOUND_SEQ_OSS_H

/*
 * OSS compatible sequencer driver
 *
 * Copyright (C) 1998,99 Takashi Iwai
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 */

#include <sound/asequencer.h>
#include <sound/seq_kernel.h>

/*
 * argument structure for synthesizer operations
 */
struct snd_seq_oss_arg {
	/* given by OSS sequencer */
	int app_index;	/* application unique index */
	int file_mode;	/* file mode - see below */
	int seq_mode;	/* sequencer mode - see below */

	/* following must be initialized in open callback */
	struct snd_seq_addr addr;	/* opened port address */
	void *private_data;	/* private data for lowlevel drivers */

	/* note-on event passing mode: initially given by OSS seq,
	 * but configurable by drivers - see below
	 */
	int event_passing;
};


/*
 * synthesizer operation callbacks
 */
struct snd_seq_oss_callback {
	struct module *owner;
	int (*open)(struct snd_seq_oss_arg *p, void *closure);
	int (*close)(struct snd_seq_oss_arg *p);
	int (*ioctl)(struct snd_seq_oss_arg *p, unsigned int cmd, unsigned long arg);
	int (*load_patch)(struct snd_seq_oss_arg *p, int format, const char __user *buf, int offs, int count);
	int (*reset)(struct snd_seq_oss_arg *p);
	int (*raw_event)(struct snd_seq_oss_arg *p, unsigned char *data);
};

/* flag: file_mode */
#define SNDRV_SEQ_OSS_FILE_ACMODE		3
#define SNDRV_SEQ_OSS_FILE_READ		1
#define SNDRV_SEQ_OSS_FILE_WRITE		2
#define SNDRV_SEQ_OSS_FILE_NONBLOCK	4

/* flag: seq_mode */
#define SNDRV_SEQ_OSS_MODE_SYNTH		0
#define SNDRV_SEQ_OSS_MODE_MUSIC		1

/* flag: event_passing */
#define SNDRV_SEQ_OSS_PROCESS_EVENTS	0	/* key == 255 is processed as velocity change */
#define SNDRV_SEQ_OSS_PASS_EVENTS		1	/* pass all events to callback */
#define SNDRV_SEQ_OSS_PROCESS_KEYPRESS	2	/* key >= 128 will be processed as key-pressure */

/* default control rate: fixed */
#define SNDRV_SEQ_OSS_CTRLRATE		100

/* default max queue length: configurable by module option */
#define SNDRV_SEQ_OSS_MAX_QLEN		1024


/*
 * data pointer to snd_seq_register_device
 */
struct snd_seq_oss_reg {
	int type;
	int subtype;
	int nvoices;
	struct snd_seq_oss_callback oper;
	void *private_data;
};

/* device id */
#define SNDRV_SEQ_DEV_ID_OSS		"seq-oss"

#endif /* __SOUND_SEQ_OSS_H */
path'>path: <a href='/cgit.cgi/linux/net-next.git/commit/?h=nds-private-remove&amp;id=2b1d530cb3157f828fcaadd259613f59db3c6d1c'>root</a>/<a href='/cgit.cgi/linux/net-next.git/commit/net?h=nds-private-remove&amp;id=2b1d530cb3157f828fcaadd259613f59db3c6d1c'>net</a>/<a href='/cgit.cgi/linux/net-next.git/commit/net/openvswitch?h=nds-private-remove&amp;id=2b1d530cb3157f828fcaadd259613f59db3c6d1c'>openvswitch</a>/<a href='/cgit.cgi/linux/net-next.git/commit/net/openvswitch/flow_table.h?h=nds-private-remove&amp;id=2b1d530cb3157f828fcaadd259613f59db3c6d1c'>flow_table.h</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='2b1d530cb3157f828fcaadd259613f59db3c6d1c'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'>
<tr><th>author</th><td>Kalle Valo &lt;kvalo@codeaurora.org&gt;</td><td class='right'>2017-01-27 14:19:25 +0200</td></tr>
<tr><th>committer</th><td>Kalle Valo &lt;kvalo@codeaurora.org&gt;</td><td class='right'>2017-01-28 09:15:50 +0200</td></tr>
<tr><th>commit</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/net/openvswitch/flow_table.h?h=nds-private-remove&amp;id=2b1d530cb3157f828fcaadd259613f59db3c6d1c'>2b1d530cb3157f828fcaadd259613f59db3c6d1c</a> (<a href='/cgit.cgi/linux/net-next.git/patch/net/openvswitch/flow_table.h?id=2b1d530cb3157f828fcaadd259613f59db3c6d1c'>patch</a>)</td></tr>
<tr><th>tree</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/tree/?h=nds-private-remove&amp;id=2b1d530cb3157f828fcaadd259613f59db3c6d1c'>fb5dfe8f2e6956f54377c7275f330cd158ead259</a> /<a href='/cgit.cgi/linux/net-next.git/tree/net/openvswitch/flow_table.h?h=nds-private-remove&amp;id=2b1d530cb3157f828fcaadd259613f59db3c6d1c'>net/openvswitch/flow_table.h</a></td></tr>
<tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/net/openvswitch/flow_table.h?h=nds-private-remove&amp;id=bd19b5ab1da654de456e102250822ec06311d6ad'>bd19b5ab1da654de456e102250822ec06311d6ad</a> (<a href='/cgit.cgi/linux/net-next.git/diff/net/openvswitch/flow_table.h?h=nds-private-remove&amp;id=2b1d530cb3157f828fcaadd259613f59db3c6d1c&amp;id2=bd19b5ab1da654de456e102250822ec06311d6ad'>diff</a>)</td></tr></table>
<div class='commit-subject'>MAINTAINERS: ath9k-devel is closed</div><div class='commit-msg'>ath9k-devel list is now closed, only linux-wireless should be used.

Reported-by: Michael Renzmann &lt;mrenzmann@madwifi-project.org&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
</div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?h=nds-private-remove&amp;id=2b1d530cb3157f828fcaadd259613f59db3c6d1c'>Diffstat</a> (limited to 'net/openvswitch/flow_table.h')</div><table summary='diffstat' class='diffstat'>