diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-alpha/pgtable.h | 4 | ||||
-rw-r--r-- | include/asm-ppc/kexec.h | 2 | ||||
-rw-r--r-- | include/asm-um/mmu_context.h | 4 | ||||
-rw-r--r-- | include/linux/ext3_fs.h | 14 | ||||
-rw-r--r-- | include/linux/hardirq.h | 1 | ||||
-rw-r--r-- | include/linux/mount.h | 2 | ||||
-rw-r--r-- | include/linux/swap.h | 2 | ||||
-rw-r--r-- | include/media/audiochip.h | 3 | ||||
-rw-r--r-- | include/media/saa6752hs.h | 49 | ||||
-rw-r--r-- | include/media/tuner.h | 51 | ||||
-rw-r--r-- | include/pcmcia/ds.h | 5 |
11 files changed, 55 insertions, 82 deletions
diff --git a/include/asm-alpha/pgtable.h b/include/asm-alpha/pgtable.h index e139463d9a0e..22b53e369f59 100644 --- a/include/asm-alpha/pgtable.h +++ b/include/asm-alpha/pgtable.h | |||
@@ -132,6 +132,10 @@ | |||
132 | #define __S110 _PAGE_S(0) | 132 | #define __S110 _PAGE_S(0) |
133 | #define __S111 _PAGE_S(0) | 133 | #define __S111 _PAGE_S(0) |
134 | 134 | ||
135 | /* | ||
136 | * pgprot_noncached() is only for infiniband pci support, and a real | ||
137 | * implementation for RAM would be more complicated. | ||
138 | */ | ||
135 | #define pgprot_noncached(prot) (prot) | 139 | #define pgprot_noncached(prot) (prot) |
136 | 140 | ||
137 | /* | 141 | /* |
diff --git a/include/asm-ppc/kexec.h b/include/asm-ppc/kexec.h index 73191310d8db..6d2aa0aa4642 100644 --- a/include/asm-ppc/kexec.h +++ b/include/asm-ppc/kexec.h | |||
@@ -27,6 +27,8 @@ | |||
27 | 27 | ||
28 | #ifndef __ASSEMBLY__ | 28 | #ifndef __ASSEMBLY__ |
29 | 29 | ||
30 | extern void *crash_notes; | ||
31 | |||
30 | struct kimage; | 32 | struct kimage; |
31 | 33 | ||
32 | extern void machine_kexec_simple(struct kimage *image); | 34 | extern void machine_kexec_simple(struct kimage *image); |
diff --git a/include/asm-um/mmu_context.h b/include/asm-um/mmu_context.h index 7529c9c853dd..095bb627b96a 100644 --- a/include/asm-um/mmu_context.h +++ b/include/asm-um/mmu_context.h | |||
@@ -16,8 +16,12 @@ | |||
16 | 16 | ||
17 | #define deactivate_mm(tsk,mm) do { } while (0) | 17 | #define deactivate_mm(tsk,mm) do { } while (0) |
18 | 18 | ||
19 | extern void force_flush_all(void); | ||
20 | |||
19 | static inline void activate_mm(struct mm_struct *old, struct mm_struct *new) | 21 | static inline void activate_mm(struct mm_struct *old, struct mm_struct *new) |
20 | { | 22 | { |
23 | if (old != new) | ||
24 | force_flush_all(); | ||
21 | } | 25 | } |
22 | 26 | ||
23 | static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, | 27 | static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, |
diff --git a/include/linux/ext3_fs.h b/include/linux/ext3_fs.h index 4b6e1ab216a5..c16662836c58 100644 --- a/include/linux/ext3_fs.h +++ b/include/linux/ext3_fs.h | |||
@@ -239,6 +239,20 @@ struct ext3_new_group_data { | |||
239 | #define EXT3_IOC_SETRSVSZ _IOW('f', 6, long) | 239 | #define EXT3_IOC_SETRSVSZ _IOW('f', 6, long) |
240 | 240 | ||
241 | /* | 241 | /* |
242 | * Mount options | ||
243 | */ | ||
244 | struct ext3_mount_options { | ||
245 | unsigned long s_mount_opt; | ||
246 | uid_t s_resuid; | ||
247 | gid_t s_resgid; | ||
248 | unsigned long s_commit_interval; | ||
249 | #ifdef CONFIG_QUOTA | ||
250 | int s_jquota_fmt; | ||
251 | char *s_qf_names[MAXQUOTAS]; | ||
252 | #endif | ||
253 | }; | ||
254 | |||
255 | /* | ||
242 | * Structure of an inode on the disk | 256 | * Structure of an inode on the disk |
243 | */ | 257 | */ |
244 | struct ext3_inode { | 258 | struct ext3_inode { |
diff --git a/include/linux/hardirq.h b/include/linux/hardirq.h index 8336dba18971..5912874ca83c 100644 --- a/include/linux/hardirq.h +++ b/include/linux/hardirq.h | |||
@@ -2,6 +2,7 @@ | |||
2 | #define LINUX_HARDIRQ_H | 2 | #define LINUX_HARDIRQ_H |
3 | 3 | ||
4 | #include <linux/config.h> | 4 | #include <linux/config.h> |
5 | #include <linux/preempt.h> | ||
5 | #include <linux/smp_lock.h> | 6 | #include <linux/smp_lock.h> |
6 | #include <asm/hardirq.h> | 7 | #include <asm/hardirq.h> |
7 | #include <asm/system.h> | 8 | #include <asm/system.h> |
diff --git a/include/linux/mount.h b/include/linux/mount.h index 74b4727a4e30..f8f39937e301 100644 --- a/include/linux/mount.h +++ b/include/linux/mount.h | |||
@@ -12,6 +12,7 @@ | |||
12 | #define _LINUX_MOUNT_H | 12 | #define _LINUX_MOUNT_H |
13 | #ifdef __KERNEL__ | 13 | #ifdef __KERNEL__ |
14 | 14 | ||
15 | #include <linux/types.h> | ||
15 | #include <linux/list.h> | 16 | #include <linux/list.h> |
16 | #include <linux/spinlock.h> | 17 | #include <linux/spinlock.h> |
17 | #include <asm/atomic.h> | 18 | #include <asm/atomic.h> |
@@ -76,6 +77,7 @@ extern int do_add_mount(struct vfsmount *newmnt, struct nameidata *nd, | |||
76 | extern void mark_mounts_for_expiry(struct list_head *mounts); | 77 | extern void mark_mounts_for_expiry(struct list_head *mounts); |
77 | 78 | ||
78 | extern spinlock_t vfsmount_lock; | 79 | extern spinlock_t vfsmount_lock; |
80 | extern dev_t name_to_dev_t(char *name); | ||
79 | 81 | ||
80 | #endif | 82 | #endif |
81 | #endif /* _LINUX_MOUNT_H */ | 83 | #endif /* _LINUX_MOUNT_H */ |
diff --git a/include/linux/swap.h b/include/linux/swap.h index c75954f2d868..239f520cc49e 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -7,6 +7,8 @@ | |||
7 | #include <linux/mmzone.h> | 7 | #include <linux/mmzone.h> |
8 | #include <linux/list.h> | 8 | #include <linux/list.h> |
9 | #include <linux/sched.h> | 9 | #include <linux/sched.h> |
10 | #include <linux/pagemap.h> | ||
11 | |||
10 | #include <asm/atomic.h> | 12 | #include <asm/atomic.h> |
11 | #include <asm/page.h> | 13 | #include <asm/page.h> |
12 | 14 | ||
diff --git a/include/media/audiochip.h b/include/media/audiochip.h index f345a61c3bdb..cd831168fdc1 100644 --- a/include/media/audiochip.h +++ b/include/media/audiochip.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * $Id: audiochip.h,v 1.3 2005/06/12 04:19:19 mchehab Exp $ | 2 | * $Id: audiochip.h,v 1.5 2005/06/16 22:59:16 hhackmann Exp $ |
3 | */ | 3 | */ |
4 | 4 | ||
5 | #ifndef AUDIOCHIP_H | 5 | #ifndef AUDIOCHIP_H |
@@ -35,5 +35,4 @@ | |||
35 | 35 | ||
36 | /* misc stuff to pass around config info to i2c chips */ | 36 | /* misc stuff to pass around config info to i2c chips */ |
37 | #define AUDC_CONFIG_PINNACLE _IOW('m',32,int) | 37 | #define AUDC_CONFIG_PINNACLE _IOW('m',32,int) |
38 | |||
39 | #endif /* AUDIOCHIP_H */ | 38 | #endif /* AUDIOCHIP_H */ |
diff --git a/include/media/saa6752hs.h b/include/media/saa6752hs.h index 791bad2b86e9..3b8686ead80d 100644 --- a/include/media/saa6752hs.h +++ b/include/media/saa6752hs.h | |||
@@ -18,55 +18,6 @@ | |||
18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #if 0 /* ndef _SAA6752HS_H */ | ||
22 | #define _SAA6752HS_H | ||
23 | |||
24 | enum mpeg_video_bitrate_mode { | ||
25 | MPEG_VIDEO_BITRATE_MODE_VBR = 0, /* Variable bitrate */ | ||
26 | MPEG_VIDEO_BITRATE_MODE_CBR = 1, /* Constant bitrate */ | ||
27 | |||
28 | MPEG_VIDEO_BITRATE_MODE_MAX | ||
29 | }; | ||
30 | |||
31 | enum mpeg_audio_bitrate { | ||
32 | MPEG_AUDIO_BITRATE_256 = 0, /* 256 kBit/sec */ | ||
33 | MPEG_AUDIO_BITRATE_384 = 1, /* 384 kBit/sec */ | ||
34 | |||
35 | MPEG_AUDIO_BITRATE_MAX | ||
36 | }; | ||
37 | |||
38 | enum mpeg_video_format { | ||
39 | MPEG_VIDEO_FORMAT_D1 = 0, | ||
40 | MPEG_VIDEO_FORMAT_2_3_D1 = 1, | ||
41 | MPEG_VIDEO_FORMAT_1_2_D1 = 2, | ||
42 | MPEG_VIDEO_FORMAT_SIF = 3, | ||
43 | |||
44 | MPEG_VIDEO_FORMAT_MAX | ||
45 | }; | ||
46 | |||
47 | #define MPEG_VIDEO_TARGET_BITRATE_MAX 27000 | ||
48 | #define MPEG_VIDEO_MAX_BITRATE_MAX 27000 | ||
49 | #define MPEG_TOTAL_BITRATE_MAX 27000 | ||
50 | #define MPEG_PID_MAX ((1 << 14) - 1) | ||
51 | |||
52 | struct mpeg_params { | ||
53 | enum mpeg_video_bitrate_mode video_bitrate_mode; | ||
54 | unsigned int video_target_bitrate; | ||
55 | unsigned int video_max_bitrate; // only used for VBR | ||
56 | enum mpeg_audio_bitrate audio_bitrate; | ||
57 | unsigned int total_bitrate; | ||
58 | |||
59 | unsigned int pmt_pid; | ||
60 | unsigned int video_pid; | ||
61 | unsigned int audio_pid; | ||
62 | unsigned int pcr_pid; | ||
63 | |||
64 | enum mpeg_video_format video_format; | ||
65 | }; | ||
66 | |||
67 | #define MPEG_SETPARAMS _IOW('6',100,struct mpeg_params) | ||
68 | |||
69 | #endif // _SAA6752HS_H | ||
70 | 21 | ||
71 | /* | 22 | /* |
72 | * Local variables: | 23 | * Local variables: |
diff --git a/include/media/tuner.h b/include/media/tuner.h index 4794c5632360..d8c0a5563289 100644 --- a/include/media/tuner.h +++ b/include/media/tuner.h | |||
@@ -1,5 +1,5 @@ | |||
1 | 1 | ||
2 | /* $Id: tuner.h,v 1.33 2005/06/21 14:58:08 mkrufky Exp $ | 2 | /* $Id: tuner.h,v 1.42 2005/07/06 09:42:19 mchehab Exp $ |
3 | * | 3 | * |
4 | tuner.h - definition for different tuners | 4 | tuner.h - definition for different tuners |
5 | 5 | ||
@@ -26,8 +26,6 @@ | |||
26 | 26 | ||
27 | #include <linux/videodev2.h> | 27 | #include <linux/videodev2.h> |
28 | 28 | ||
29 | #include "id.h" | ||
30 | |||
31 | #define ADDR_UNSET (255) | 29 | #define ADDR_UNSET (255) |
32 | 30 | ||
33 | #define TUNER_TEMIC_PAL 0 /* 4002 FH5 (3X 7756, 9483) */ | 31 | #define TUNER_TEMIC_PAL 0 /* 4002 FH5 (3X 7756, 9483) */ |
@@ -111,8 +109,6 @@ | |||
111 | #define TUNER_TEA5767 62 /* Only FM Radio Tuner */ | 109 | #define TUNER_TEA5767 62 /* Only FM Radio Tuner */ |
112 | #define TUNER_PHILIPS_FMD1216ME_MK3 63 | 110 | #define TUNER_PHILIPS_FMD1216ME_MK3 63 |
113 | 111 | ||
114 | #define TEA5767_TUNER_NAME "Philips TEA5767HN FM Radio" | ||
115 | |||
116 | #define NOTUNER 0 | 112 | #define NOTUNER 0 |
117 | #define PAL 1 /* PAL_BG */ | 113 | #define PAL 1 /* PAL_BG */ |
118 | #define PAL_I 2 | 114 | #define PAL_I 2 |
@@ -135,19 +131,8 @@ | |||
135 | #define TCL 11 | 131 | #define TCL 11 |
136 | #define THOMSON 12 | 132 | #define THOMSON 12 |
137 | 133 | ||
138 | enum v4l_radio_tuner { | 134 | #define TUNER_SET_TYPE_ADDR _IOW('T',3,int) |
139 | TEA5767_LOW_LO_32768 = 0, | 135 | #define TDA9887_SET_CONFIG _IOW('t',5,int) |
140 | TEA5767_HIGH_LO_32768 = 1, | ||
141 | TEA5767_LOW_LO_13MHz = 2, | ||
142 | TEA5767_HIGH_LO_13MHz = 3, | ||
143 | }; | ||
144 | |||
145 | |||
146 | #define TUNER_SET_TYPE _IOW('t',1,int) /* set tuner type */ | ||
147 | #define TUNER_SET_TVFREQ _IOW('t',2,int) /* set tv freq */ | ||
148 | #define TUNER_SET_TYPE_ADDR _IOW('T',3,int) /* set tuner type and I2C addr */ | ||
149 | |||
150 | #define TDA9887_SET_CONFIG _IOW('t',5,int) | ||
151 | 136 | ||
152 | /* tv card specific */ | 137 | /* tv card specific */ |
153 | # define TDA9887_PRESENT (1<<0) | 138 | # define TDA9887_PRESENT (1<<0) |
@@ -169,25 +154,34 @@ enum v4l_radio_tuner { | |||
169 | #define I2C_ADDR_TDA8290 0x4b | 154 | #define I2C_ADDR_TDA8290 0x4b |
170 | #define I2C_ADDR_TDA8275 0x61 | 155 | #define I2C_ADDR_TDA8275 0x61 |
171 | 156 | ||
172 | struct tuner_addr { | 157 | enum tuner_mode { |
173 | enum v4l2_tuner_type v4l2_tuner; | 158 | T_UNINITIALIZED = 0, |
174 | unsigned int type; | 159 | T_RADIO = 1 << V4L2_TUNER_RADIO, |
160 | T_ANALOG_TV = 1 << V4L2_TUNER_ANALOG_TV, | ||
161 | T_DIGITAL_TV = 1 << V4L2_TUNER_DIGITAL_TV, | ||
162 | T_STANDBY = 1 << 31 | ||
163 | }; | ||
164 | |||
165 | struct tuner_setup { | ||
175 | unsigned short addr; | 166 | unsigned short addr; |
167 | unsigned int type; | ||
168 | unsigned int mode_mask; | ||
176 | }; | 169 | }; |
177 | 170 | ||
178 | struct tuner { | 171 | struct tuner { |
179 | /* device */ | 172 | /* device */ |
180 | struct i2c_client i2c; | 173 | struct i2c_client i2c; |
181 | 174 | ||
182 | /* state + config */ | ||
183 | unsigned int initialized; | ||
184 | unsigned int type; /* chip type */ | 175 | unsigned int type; /* chip type */ |
176 | |||
177 | unsigned int mode; | ||
178 | unsigned int mode_mask; /* Combination of allowable modes */ | ||
179 | |||
185 | unsigned int freq; /* keep track of the current settings */ | 180 | unsigned int freq; /* keep track of the current settings */ |
181 | unsigned int audmode; | ||
186 | v4l2_std_id std; | 182 | v4l2_std_id std; |
187 | int using_v4l2; | ||
188 | 183 | ||
189 | enum v4l2_tuner_type mode; | 184 | int using_v4l2; |
190 | unsigned int input; | ||
191 | 185 | ||
192 | /* used by MT2032 */ | 186 | /* used by MT2032 */ |
193 | unsigned int xogc; | 187 | unsigned int xogc; |
@@ -197,15 +191,11 @@ struct tuner { | |||
197 | unsigned char i2c_easy_mode[2]; | 191 | unsigned char i2c_easy_mode[2]; |
198 | unsigned char i2c_set_freq[8]; | 192 | unsigned char i2c_set_freq[8]; |
199 | 193 | ||
200 | /* used to keep track of audmode */ | ||
201 | unsigned int audmode; | ||
202 | |||
203 | /* function ptrs */ | 194 | /* function ptrs */ |
204 | void (*tv_freq)(struct i2c_client *c, unsigned int freq); | 195 | void (*tv_freq)(struct i2c_client *c, unsigned int freq); |
205 | void (*radio_freq)(struct i2c_client *c, unsigned int freq); | 196 | void (*radio_freq)(struct i2c_client *c, unsigned int freq); |
206 | int (*has_signal)(struct i2c_client *c); | 197 | int (*has_signal)(struct i2c_client *c); |
207 | int (*is_stereo)(struct i2c_client *c); | 198 | int (*is_stereo)(struct i2c_client *c); |
208 | int (*set_tuner)(struct i2c_client *c, struct v4l2_tuner *v); | ||
209 | }; | 199 | }; |
210 | 200 | ||
211 | extern unsigned int tuner_debug; | 201 | extern unsigned int tuner_debug; |
@@ -215,6 +205,7 @@ extern int microtune_init(struct i2c_client *c); | |||
215 | extern int tda8290_init(struct i2c_client *c); | 205 | extern int tda8290_init(struct i2c_client *c); |
216 | extern int tea5767_tuner_init(struct i2c_client *c); | 206 | extern int tea5767_tuner_init(struct i2c_client *c); |
217 | extern int default_tuner_init(struct i2c_client *c); | 207 | extern int default_tuner_init(struct i2c_client *c); |
208 | extern int tea5767_autodetection(struct i2c_client *c); | ||
218 | 209 | ||
219 | #define tuner_warn(fmt, arg...) \ | 210 | #define tuner_warn(fmt, arg...) \ |
220 | dev_printk(KERN_WARNING , &t->i2c.dev , fmt , ## arg) | 211 | dev_printk(KERN_WARNING , &t->i2c.dev , fmt , ## arg) |
diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h index 0190e766e1a7..b707a603351b 100644 --- a/include/pcmcia/ds.h +++ b/include/pcmcia/ds.h | |||
@@ -16,10 +16,13 @@ | |||
16 | #ifndef _LINUX_DS_H | 16 | #ifndef _LINUX_DS_H |
17 | #define _LINUX_DS_H | 17 | #define _LINUX_DS_H |
18 | 18 | ||
19 | #ifdef __KERNEL__ | ||
20 | #include <linux/mod_devicetable.h> | ||
21 | #endif | ||
22 | |||
19 | #include <pcmcia/bulkmem.h> | 23 | #include <pcmcia/bulkmem.h> |
20 | #include <pcmcia/cs_types.h> | 24 | #include <pcmcia/cs_types.h> |
21 | #include <pcmcia/device_id.h> | 25 | #include <pcmcia/device_id.h> |
22 | #include <linux/mod_devicetable.h> | ||
23 | 26 | ||
24 | typedef struct tuple_parse_t { | 27 | typedef struct tuple_parse_t { |
25 | tuple_t tuple; | 28 | tuple_t tuple; |