smc91c96_p.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * Copyright (c) 2008 Travis Geiselbrecht
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining
  5. * a copy of this software and associated documentation files
  6. * (the "Software"), to deal in the Software without restriction,
  7. * including without limitation the rights to use, copy, modify, merge,
  8. * publish, distribute, sublicense, and/or sell copies of the Software,
  9. * and to permit persons to whom the Software is furnished to do so,
  10. * subject to the following conditions:
  11. *
  12. * The above copyright notice and this permission notice shall be
  13. * included in all copies or substantial portions of the Software.
  14. *
  15. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  16. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  17. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  18. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  19. * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  20. * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  21. * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  22. */
  23. #ifndef __SMC91C96_P_H
  24. #define __SMC91C96_P_H
  25. // LAN91C96 stuffs
  26. /* registers */
  27. #define SMC_BSR 14
  28. /* bank 0 */
  29. #define SMC_TCR 0
  30. #define SMC_EPHSR 2
  31. #define SMC_RCR 4
  32. #define SMC_ECR 6
  33. #define SMC_MIR 8
  34. #define SMC_MCR 10
  35. /* bank 1 */
  36. #define SMC_CR 0
  37. #define SMC_BAR 2
  38. #define SMC_IAR0 4
  39. #define SMC_IAR1 5
  40. #define SMC_IAR2 6
  41. #define SMC_IAR3 7
  42. #define SMC_IAR4 8
  43. #define SMC_IAR5 9
  44. #define SMC_GPR 10
  45. #define SMC_CTR 12
  46. /* bank 2 */
  47. #define SMC_MMUCR 0
  48. #define SMC_AUTOTX 1
  49. #define SMC_PNR 2
  50. #define SMC_ARR 3
  51. #define SMC_FIFO 4
  52. #define SMC_PTR 6
  53. #define SMC_DATA0 8
  54. #define SMC_DATA1 10
  55. #define SMC_IST 12
  56. #define SMC_ACK 12
  57. #define SMC_MSK 13
  58. /* bank 3 */
  59. #define SMC_MT0 0
  60. #define SMC_MT1 1
  61. #define SMC_MT2 2
  62. #define SMC_MT3 3
  63. #define SMC_MT4 4
  64. #define SMC_MT5 5
  65. #define SMC_MT6 6
  66. #define SMC_MT7 7
  67. #define SMC_MGMT 8
  68. #define SMC_REV 10
  69. #define SMC_ERCV 12
  70. #endif