os.h 983 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #define ALLOW_SELECT
  3. #undef NO_INLINE_ASM
  4. #define SHORT_BANNERS
  5. #define MANUAL_PNP
  6. #undef DO_TIMINGS
  7. #include <linux/module.h>
  8. #ifdef __KERNEL__
  9. #include <linux/string.h>
  10. #include <linux/fs.h>
  11. #include <asm/dma.h>
  12. #include <asm/io.h>
  13. #include <asm/param.h>
  14. #include <linux/sched.h>
  15. #include <linux/slab.h>
  16. #include <linux/ioport.h>
  17. #include <asm/page.h>
  18. #include <linux/vmalloc.h>
  19. #include <linux/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;