mavbreg.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* $OpenBSD: mavbreg.h,v 1.1 2005/01/02 19:25:41 kettenis Exp $ */
  2. /*
  3. * Copyright (c) 2005 Mark Kettenis
  4. *
  5. * Permission to use, copy, modify, and distribute this software for any
  6. * purpose with or without fee is hereby granted, provided that the above
  7. * copyright notice and this permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. */
  17. /*
  18. * MACE Moosehead A/V Board register definitions.
  19. */
  20. #define MAVB_CONTROL 0x00
  21. #define MAVB_CONTROL_RESET 0x0000000000000001
  22. #define MAVB_CONTROL_CODEC_PRESENT 0x0000000000000002
  23. #define MAVB_CONTROL_VOLUME_BUTTON_UP 0x0000000001000000
  24. #define MAVB_CONTROL_VOLUME_BUTTON_DOWN 0x0000000000800000
  25. #define MAVB_CODEC_CONTROL 0x08
  26. #define MAVB_CODEC_READ 0x0000000000010000
  27. #define MAVB_CODEC_WORD_SHIFT 0
  28. #define MAVB_CODEC_WORD_MASK 0x000000000000ffff
  29. #define MAVB_CODEC_ADDRESS_SHIFT 17
  30. #define MAVB_CODEC_ADDRESS_MASK 0x000000000000001f
  31. #define MAVB_CODEC_STATUS 0x18
  32. #define MAVB_CHANNEL1_CONTROL 0x20
  33. #define MAVB_CHANNEL2_CONTROL 0x40
  34. #define MAVB_CHANNEL3_CONTROL 0x60
  35. #define MAVB_CHANNEL_RESET 0x0000000000000400
  36. #define MAVB_CHANNEL_DMA_ENABLE 0x0000000000000200
  37. #define MAVB_CHANNEL_INT_DISABLED 0x0000000000000000
  38. #define MAVB_CHANNEL_INT_25 0x0000000000000020
  39. #define MAVB_CHANNEL_INT_50 0x0000000000000040
  40. #define MAVB_CHANNEL_INT_75 0x0000000000000060
  41. #define MAVB_CHANNEL_INT_EMPTY 0x0000000000000080
  42. #define MAVB_CHANNEL_INT_NOT_EMPTY 0x00000000000000a0
  43. #define MAVB_CHANNEL_INT_FULL 0x00000000000000c0
  44. #define MAVB_CHANNEL_INT_NOT_FULL 0x00000000000000e0
  45. #define MAVB_CHANNEL1_READ_PTR 0x28
  46. #define MAVB_CHANNEL1_WRITE_PTR 0x30
  47. #define MAVB_CHANNEL1_DEPTH 0x38
  48. #define MAVB_CHANNEL2_READ_PTR 0x48
  49. #define MAVB_CHANNEL2_WRITE_PTR 0x50
  50. #define MAVB_CHANNEL2_DEPTH 0x58
  51. #define MAVB_NREGS 0x80