overdrive.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. * Copyright (C) 2000 David J. Mckay (david.mckay@st.com)
  3. *
  4. * May be copied or modified under the terms of the GNU General Public
  5. * License. See linux/COPYING for more information.
  6. *
  7. */
  8. #ifndef __OVERDRIVE_H__
  9. #define __OVERDRIVE_H__
  10. #define OVERDRIVE_INT_CT 0xa3a00000
  11. #define OVERDRIVE_INT_DT 0xa3b00000
  12. #define OVERDRIVE_CTRL 0xa3000000
  13. /* Shoving all these bits into the same register is not a good idea.
  14. * As soon as I get a spare moment, I'll change the FPGA and put each
  15. * bit in a separate register
  16. */
  17. #define VALID_CTRL_BITS 0x1f
  18. #define ENABLE_RS232_MASK 0x1e
  19. #define DISABLE_RS232_BIT 0x01
  20. #define ENABLE_NMI_MASK 0x1d
  21. #define DISABLE_NMI_BIT 0x02
  22. #define RESET_PCI_MASK 0x1b
  23. #define ENABLE_PCI_BIT 0x04
  24. #define ENABLE_LED_MASK 0x17
  25. #define DISABLE_LED_BIT 0x08
  26. #define RESET_FPGA_MASK 0x0f
  27. #define ENABLE_FPGA_BIT 0x10
  28. #define FPGA_DCLK_ADDRESS 0xA3C00000
  29. #define FPGA_DATA 0x01 /* W */
  30. #define FPGA_CONFDONE 0x02 /* R */
  31. #define FPGA_NOT_STATUS 0x04 /* R */
  32. #define FPGA_INITDONE 0x08 /* R */
  33. #define FPGA_TIMEOUT 100000
  34. /* Interrupts for the overdrive. Note that these numbers have
  35. * nothing to do with the actual IRQ numbers they appear on,
  36. * this is all programmable. This is simply the position in the
  37. * INT_CT register.
  38. */
  39. #define OVERDRIVE_PCI_INTA 0
  40. #define OVERDRIVE_PCI_INTB 1
  41. #define OVERDRIVE_PCI_INTC 2
  42. #define OVERDRIVE_PCI_INTD 3
  43. #define OVERDRIVE_GALILEO_INT 4
  44. #define OVERDRIVE_GALILEO_LOCAL_INT 5
  45. #define OVERDRIVE_AUDIO_INT 6
  46. #define OVERDRIVE_KEYBOARD_INT 7
  47. /* Which Linux IRQ should we assign to each interrupt source? */
  48. #define OVERDRIVE_PCI_IRQ1 2
  49. #ifdef CONFIG_HACKED_NE2K
  50. #define OVERDRIVE_PCI_IRQ2 7
  51. #else
  52. #define OVERDRIVE_PCI_IRQ2 2
  53. #undef OVERDRIVE_PCI_INTB
  54. #define OVERDRIVE_PCI_INTB OVERDRIVE_PCI_INTA
  55. #endif
  56. /* Put the ESS solo audio chip on IRQ 4 */
  57. #define OVERDRIVE_ESS_IRQ 4
  58. /* Where the memory behind the PCI bus appears */
  59. #define PCI_DRAM_BASE 0xb7000000
  60. #define PCI_DRAM_SIZE (16*1024*1024)
  61. #define PCI_DRAM_FINISH (PCI_DRAM_BASE+PCI_DRAM_SIZE-1)
  62. /* Where the IO region appears in the memory */
  63. #define PCI_GTIO_BASE 0xb8000000
  64. #endif