xboxreg.h 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* $OpenBSD: xboxreg.h,v 1.1 2005/03/05 01:44:52 miod Exp $ */
  2. /*
  3. * Copyright (c) 1999 Jason L. Wright (jason@thought.net)
  4. * All rights reserved.
  5. *
  6. * Redistribution and use in source and binary forms, with or without
  7. * modification, are permitted provided that the following conditions
  8. * are met:
  9. * 1. Redistributions of source code must retain the above copyright
  10. * notice, this list of conditions and the following disclaimer.
  11. * 2. Redistributions in binary form must reproduce the above copyright
  12. * notice, this list of conditions and the following disclaimer in the
  13. * documentation and/or other materials provided with the distribution.
  14. *
  15. * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  16. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  17. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  18. * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
  19. * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  20. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  21. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  22. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  23. * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  24. * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  25. * POSSIBILITY OF SUCH DAMAGE.
  26. */
  27. #define X_WRITE0_OFFSET 0
  28. #define XAC_ERR_OFFSET 0x2000
  29. #define XAC_CTL0_OFFSET 0x100000 /* control reg 0 */
  30. #define XAC_CTL1_OFFSET 0x110000 /* control reg 1 */
  31. #define XAC_ELUA_OFFSET 0x120000
  32. #define XAC_ELLA_OFFSET 0x130000
  33. #define XAC_ERR_EN_OFFSET 0x140000 /* error enable */
  34. #define XBC_ERR_OFFSET 0x420000
  35. #define XBC_CTL0_OFFSET 0x500000 /* control reg 0 */
  36. #define XBC_CTL1_OFFSET 0x510000 /* control reg 1 */
  37. #define XBC_ELUA_OFFSET 0x520000
  38. #define XBC_ELLA_OFFSET 0x530000
  39. #define XBC_ERR_EN_OFFSET 0x540000 /* error enable */
  40. /*
  41. * Error registers
  42. */
  43. #define XERR_DESCR 0 /* error descriptor */
  44. #define XERR_VA 4 /* error virtual addr */
  45. #define XERR_STAT 8 /* error status */
  46. /*
  47. * Control register 1
  48. */
  49. #define XBOX_CTL1_CDPTE1 0x8000 /* cable data parity test enb */
  50. #define XBOX_CTL1_CRTE 0x4000 /* cable rerun test enb */
  51. #define XBOX_CTL1_SRST 0x3000 /* software reset mask */
  52. #define XBOX_CTL1_SRST_XARS 0x1000
  53. #define XBOX_CTL1_SRST_CRES 0x2000
  54. #define XBOX_CTL1_SRST_HRES 0x3000
  55. #define XBOX_CTL1_DTE 0x0800 /* dvma test enb */
  56. #define XBOX_CTL1_CDPTE 0x0400 /* cable data parity test enb */
  57. #define XBOX_CTL1_ITE 0x0200 /* interrupt test enb */
  58. #define XBOX_CTL1_CDPTE0 0x0100 /* cable data parity test enb, dpr0 */
  59. #define XBOX_CTL1_ELDS 0x00c0 /* error log dvma size */
  60. #define XBOX_CTL1_XSSE 0x0020 /* expansion sbus slot select enb */
  61. #define XBOX_CTL1_XSBRE 0x0010 /* expansion sbus bus request enb */
  62. #define XBOX_CTL1_XSIE 0x0008 /* expansion sbus interrupt enb */
  63. #define XBOX_CTL1_ELDE 0x0004 /* error log dvma enable */
  64. #define XBOX_CTL1_CSIE 0x0002 /* cable serial interrupt enb */
  65. #define XBOX_CTL1_TRANSPARENT 0x0001 /* transparent mode enb */