os.h 966 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 <asm/system.h>
  18. #include <linux/vmalloc.h>
  19. #include <asm/uaccess.h>
  20. #include <linux/poll.h>
  21. #include <linux/pci.h>
  22. #endif
  23. #include <linux/soundcard.h>
  24. #define FALSE 0
  25. #define TRUE 1
  26. extern int sound_alloc_dma(int chn, char *deviceID);
  27. extern int sound_open_dma(int chn, char *deviceID);
  28. extern void sound_free_dma(int chn);
  29. extern void sound_close_dma(int chn);
  30. extern void reprogram_timer(void);
  31. #define USE_AUTOINIT_DMA
  32. extern void *sound_mem_blocks[1024];
  33. extern int sound_nblocks;
  34. #undef PSEUDO_DMA_AUTOINIT
  35. #define ALLOW_BUFFER_MAPPING
  36. extern const struct file_operations oss_sound_fops;