#ifndef SOUND_FIREWIRE_ISO_RESOURCES_H_INCLUDED
#define SOUND_FIREWIRE_ISO_RESOURCES_H_INCLUDED

#include <linux/mutex.h>
#include <linux/types.h>

struct fw_unit;

/**
 * struct fw_iso_resources - manages channel/bandwidth allocation
 * @channels_mask: if the device does not support all channel numbers, set this
 *                 bit mask to something else than the default (all ones)
 *
 * This structure manages (de)allocation of isochronous resources (channel and
 * bandwidth) for one isochronous stream.
 */
struct fw_iso_resources {
	u64 channels_mask;
	/* private: */
	struct fw_unit *unit;
	struct mutex mutex;
	unsigned int channel;
	unsigned int bandwidth; /* in bandwidth units, without overhead */
	unsigned int bandwidth_overhead;
	int generation; /* in which allocation is valid */
	bool allocated;
};

int fw_iso_resources_init(struct fw_iso_resources *r,
			  struct fw_unit *unit);
void fw_iso_resources_destroy(struct fw_iso_resources *r);

int fw_iso_resources_allocate(struct fw_iso_resources *r,
			      unsigned int max_payload_bytes, int speed);
int fw_iso_resources_update(struct fw_iso_resources *r);
void fw_iso_resources_free(struct fw_iso_resources *r);

#endif
/option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=be11f436a80b19cb5ef4cdfba7371a5178bd43cd'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/include/net/inet_common.h'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/include/net/inet_common.h?id=be11f436a80b19cb5ef4cdfba7371a5178bd43cd'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/include/net/inet_common.h?id=be11f436a80b19cb5ef4cdfba7371a5178bd43cd'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/include/net/inet_common.h?id=be11f436a80b19cb5ef4cdfba7371a5178bd43cd'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/include/net/inet_common.h'>
<input type='hidden' name='id' value='be11f436a80b19cb5ef4cdfba7371a5178bd43cd'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=be11f436a80b19cb5ef4cdfba7371a5178bd43cd'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/include?id=be11f436a80b19cb5ef4cdfba7371a5178bd43cd'>include</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/net?id=be11f436a80b19cb5ef4cdfba7371a5178bd43cd'>net</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/net/inet_common.h?id=be11f436a80b19cb5ef4cdfba7371a5178bd43cd'>inet_common.h</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/include/net/inet_common.h?id=be11f436a80b19cb5ef4cdfba7371a5178bd43cd&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>
owerpc/math?id=9d312cfb3d91227423f6e0f318de01f317130be5'>math</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/testing/selftests/powerpc/math/fpu_signal.c?id=9d312cfb3d91227423f6e0f318de01f317130be5'>fpu_signal.c</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/tools/testing/selftests/powerpc/math/fpu_signal.c?id=9d312cfb3d91227423f6e0f318de01f317130be5&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>