diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2011-05-10 14:52:07 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2011-05-10 16:50:41 -0400 |
commit | 020abf03cd659388f94cb328e1e1df0656e0d7ff (patch) | |
tree | 40d05011708ad1b4a05928d167eb120420581aa6 /sound/firewire/cmp.h | |
parent | 0ff8fbc61727c926883eec381fbd3d32d1fab504 (diff) | |
parent | 693d92a1bbc9e42681c42ed190bd42b636ca876f (diff) |
Merge tag 'v2.6.39-rc7'
in order to pull in changes in drivers/media/dvb/firewire/ and
sound/firewire/.
Diffstat (limited to 'sound/firewire/cmp.h')
-rw-r--r-- | sound/firewire/cmp.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/sound/firewire/cmp.h b/sound/firewire/cmp.h new file mode 100644 index 000000000000..f47de08feb12 --- /dev/null +++ b/sound/firewire/cmp.h | |||
@@ -0,0 +1,41 @@ | |||
1 | #ifndef SOUND_FIREWIRE_CMP_H_INCLUDED | ||
2 | #define SOUND_FIREWIRE_CMP_H_INCLUDED | ||
3 | |||
4 | #include <linux/mutex.h> | ||
5 | #include <linux/types.h> | ||
6 | #include "iso-resources.h" | ||
7 | |||
8 | struct fw_unit; | ||
9 | |||
10 | /** | ||
11 | * struct cmp_connection - manages an isochronous connection to a device | ||
12 | * @speed: the connection's actual speed | ||
13 | * | ||
14 | * This structure manages (using CMP) an isochronous stream from the local | ||
15 | * computer to a device's input plug (iPCR). | ||
16 | * | ||
17 | * There is no corresponding oPCR created on the local computer, so it is not | ||
18 | * possible to overlay connections on top of this one. | ||
19 | */ | ||
20 | struct cmp_connection { | ||
21 | int speed; | ||
22 | /* private: */ | ||
23 | bool connected; | ||
24 | struct mutex mutex; | ||
25 | struct fw_iso_resources resources; | ||
26 | __be32 last_pcr_value; | ||
27 | unsigned int pcr_index; | ||
28 | unsigned int max_speed; | ||
29 | }; | ||
30 | |||
31 | int cmp_connection_init(struct cmp_connection *connection, | ||
32 | struct fw_unit *unit, | ||
33 | unsigned int ipcr_index); | ||
34 | void cmp_connection_destroy(struct cmp_connection *connection); | ||
35 | |||
36 | int cmp_connection_establish(struct cmp_connection *connection, | ||
37 | unsigned int max_payload); | ||
38 | int cmp_connection_update(struct cmp_connection *connection); | ||
39 | void cmp_connection_break(struct cmp_connection *connection); | ||
40 | |||
41 | #endif | ||