os.h 942 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #define ALLOW_SELECT
  2. #undef NO_INLINE_ASM
  3. #define SHORT_BANNERS
  4. #define MANUAL_PNP
  5. #undef DO_TIMINGS
  6. #include <linux/module.h>
  7. #ifdef __KERNEL__
  8. #include <linux/string.h>
  9. #include <linux/fs.h>
  10. #include <asm/dma.h>
  11. #include <asm/io.h>
  12. #include <asm/param.h>
  13. #include <linux/sched.h>
  14. #include <linux/slab.h>
  15. #include <linux/ioport.h>
  16. #include <asm/page.h>
  17. #include <linux/vmalloc.h>
  18. #include <asm/uaccess.h>
  19. #include <linux/poll.h>
  20. #include <linux/pci.h>
  21. #endif
  22. #include <linux/soundcard.h>
  23. #define FALSE 0
  24. #define TRUE 1
  25. extern int sound_alloc_dma(int chn, char *deviceID);
  26. extern int sound_open_dma(int chn, char *deviceID);
  27. extern void sound_free_dma(int chn);
  28. extern void sound_close_dma(int chn);
  29. extern void reprogram_timer(void);
  30. #define USE_AUTOINIT_DMA
  31. extern void *sound_mem_blocks[1024];
  32. extern int sound_nblocks;
  33. #undef PSEUDO_DMA_AUTOINIT
  34. #define ALLOW_BUFFER_MAPPING
  35. extern const struct file_operations oss_sound_fops;