ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / arch / um / include / hostaudio.h
1 /* 
2  * Copyright (C) 2002 Steve Schmidtke 
3  * Licensed under the GPL
4  */
5
6 #ifndef HOSTAUDIO_H
7 #define HOSTAUDIO_H
8
9 #define HOSTAUDIO_DEV_DSP "/dev/sound/dsp"
10 #define HOSTAUDIO_DEV_MIXER "/dev/sound/mixer"
11
12 struct hostaudio_state {
13   int fd;
14 };
15
16 struct hostmixer_state {
17   int fd;
18 };
19
20 /* UML user-side protoypes */
21 extern ssize_t hostaudio_read_user(struct hostaudio_state *state, char *buffer,
22                                    size_t count, loff_t *ppos);
23 extern ssize_t hostaudio_write_user(struct hostaudio_state *state, 
24                                     const char *buffer, size_t count, 
25                                     loff_t *ppos);
26 extern int hostaudio_ioctl_user(struct hostaudio_state *state, 
27                                 unsigned int cmd, unsigned long arg);
28 extern int hostaudio_open_user(struct hostaudio_state *state, int r, int w, 
29                                char *dsp);
30 extern int hostaudio_release_user(struct hostaudio_state *state);
31 extern int hostmixer_ioctl_mixdev_user(struct hostmixer_state *state, 
32                                 unsigned int cmd, unsigned long arg);
33 extern int hostmixer_open_mixdev_user(struct hostmixer_state *state, int r, 
34                                       int w, char *mixer);
35 extern int hostmixer_release_mixdev_user(struct hostmixer_state *state);
36
37 #endif /* HOSTAUDIO_H */
38
39 /*
40  * Overrides for Emacs so that we follow Linus's tabbing style.
41  * Emacs will notice this stuff at the end of the file and automatically
42  * adjust the settings for this buffer only.  This must remain at the end
43  * of the file.
44  * ---------------------------------------------------------------------------
45  * Local variables:
46  * c-file-style: "linux"
47  * End:
48  */