Ignore:
Timestamp:
Feb 21, 2008, 7:31:22 AM (18 years ago)
Author:
Brendan Oakley
Message:

Separate misc_driver.c functions from misc.c

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  
    213213typedef int irqreturn_t;
    214214
     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
     221struct workqueue_struct;
    215222struct work_struct {
    216223        unsigned long pending;
     
    235242int snd_compat_schedule_work(struct work_struct *work);
    236243#define schedule_work(w) snd_compat_schedule_work(w)
     244struct workqueue_struct *snd_compat_create_workqueue(const char *name);
     245#define create_workqueue(name) snd_compat_create_workqueue((name))
     246void snd_compat_flush_workqueue(struct workqueue_struct *wq);
     247#define flush_workqueue(wq) snd_compat_flush_workqueue((wq));
     248void snd_compat_destroy_workqueue(struct workqueue_struct *wq);
     249#define destroy_workqueue(wq) snd_compat_destroy_workqueue((wq));
     250int snd_compat_queue_work(struct workqueue_struct *wq, struct work_struct *work);
     251#define queue_work(wq, work) snd_compat_queue_work((wq), (work))
     252int 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 */
    237256
    238257/* 2.5 new modules */
  • GPL/branches/alsa-resync1/alsa-kernel/include/sound/core.h

    r290 r299  
    2525#include <linux/sched.h>                /* wake_up() */
    2626#include <asm/semaphore.h>
    27 #ifndef TARGET_OS2 //TODO: implement linux/rwsem.h, workqueue.h
    2827#include <linux/rwsem.h>                /* struct rw_semaphore */
    2928#include <linux/workqueue.h>            /* struct workqueue_struct */
    30 #endif /* !TARGET_OS2 */
    3129#include <sound/typedefs.h>
    3230
Note: See TracChangeset for help on using the changeset viewer.