audio.h 343 B

123456789101112131415
  1. enum
  2. {
  3. Bufsize = 1024, /* 5.8 ms each, must be power of two */
  4. Nbuf = 128, /* .74 seconds total */
  5. Dma = 6,
  6. IrqAUDIO = 7,
  7. SBswab = 0,
  8. };
  9. #define seteisadma(a, b) dmainit(a, Bufsize);
  10. #define CACHELINESZ 8
  11. #define UNCACHED(type, v) (type*)((ulong)(v))
  12. #define Int0vec
  13. #define setvec(v, f, a) intrenable(v, f, a, BUSUNKNOWN, "audio")