Changeset 299 for GPL/branches/alsa-resync1/alsa-kernel/include
- Timestamp:
- Feb 21, 2008, 7:31:22 AM (18 years ago)
- Location:
- GPL/branches/alsa-resync1/alsa-kernel/include/sound
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/alsa-resync1/alsa-kernel/include/sound/adriver.h
r290 r299 213 213 typedef int irqreturn_t; 214 214 215 216 /* workqueue-alike; 2.5.45 */ 217 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) 218 #include <linux/workqueue.h> 219 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 45) && !defined(__WORK_INITIALIZER) 220 #define SND_WORKQUEUE_COMPAT 221 struct workqueue_struct; 215 222 struct work_struct { 216 223 unsigned long pending; … … 235 242 int snd_compat_schedule_work(struct work_struct *work); 236 243 #define schedule_work(w) snd_compat_schedule_work(w) 244 struct workqueue_struct *snd_compat_create_workqueue(const char *name); 245 #define create_workqueue(name) snd_compat_create_workqueue((name)) 246 void snd_compat_flush_workqueue(struct workqueue_struct *wq); 247 #define flush_workqueue(wq) snd_compat_flush_workqueue((wq)); 248 void snd_compat_destroy_workqueue(struct workqueue_struct *wq); 249 #define destroy_workqueue(wq) snd_compat_destroy_workqueue((wq)); 250 int snd_compat_queue_work(struct workqueue_struct *wq, struct work_struct *work); 251 #define queue_work(wq, work) snd_compat_queue_work((wq), (work)) 252 int snd_compat_queue_delayed_work(struct workqueue_struct *wq, struct work_struct *work, unsigned long delay); 253 #define queue_delayed_work(wq, work, delay) snd_compat_queue_delayed_work((wq), (work), (delay)) 254 #endif /* < 2.5.45 */ 255 #endif /* < 2.6.0 */ 237 256 238 257 /* 2.5 new modules */ -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/core.h
r290 r299 25 25 #include <linux/sched.h> /* wake_up() */ 26 26 #include <asm/semaphore.h> 27 #ifndef TARGET_OS2 //TODO: implement linux/rwsem.h, workqueue.h28 27 #include <linux/rwsem.h> /* struct rw_semaphore */ 29 28 #include <linux/workqueue.h> /* struct workqueue_struct */ 30 #endif /* !TARGET_OS2 */31 29 #include <sound/typedefs.h> 32 30
Note:
See TracChangeset
for help on using the changeset viewer.
