pld_conf00.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #ifndef __PLD_CONF00_H
  2. #define __PLD_CONF00_H
  3. /*
  4. * Register definitions for the PLD Configuration Logic
  5. */
  6. /*
  7. *
  8. * This file contains the register definitions for the Excalibur
  9. * Interrupt controller INT_CTRL00.
  10. *
  11. * Copyright (C) 2001 Altera Corporation
  12. *
  13. * This program is free software; you can redistribute it and/or modify
  14. * it under the terms of the GNU General Public License as published by
  15. * the Free Software Foundation; either version 2 of the License, or
  16. * (at your option) any later version.
  17. *
  18. * This program is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU General Public License
  24. * along with this program; if not, write to the Free Software
  25. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  26. */
  27. #define CONFIG_CONTROL(BASE_ADDR) (PLD_CONF00_TYPE (BASE_ADDR))
  28. #define CONFIG_CONTROL_LK_MSK (0x1)
  29. #define CONFIG_CONTROL_LK_OFST (0)
  30. #define CONFIG_CONTROL_CO_MSK (0x2)
  31. #define CONFIG_CONTROL_CO_OFST (1)
  32. #define CONFIG_CONTROL_B_MSK (0x4)
  33. #define CONFIG_CONTROL_B_OFST (2)
  34. #define CONFIG_CONTROL_PC_MSK (0x8)
  35. #define CONFIG_CONTROL_PC_OFST (3)
  36. #define CONFIG_CONTROL_E_MSK (0x10)
  37. #define CONFIG_CONTROL_E_OFST (4)
  38. #define CONFIG_CONTROL_ES_MSK (0xE0)
  39. #define CONFIG_CONTROL_ES_OFST (5)
  40. #define CONFIG_CONTROL_ES_0_MSK (0x20)
  41. #define CONFIG_CONTROL_ES_1_MSK (0x40)
  42. #define CONFIG_CONTROL_ES_2_MSK (0x80)
  43. #define CONFIG_CONTROL_CLOCK(BASE_ADDR) (PLD_CONF00_TYPE (BASE_ADDR + 0x4 ))
  44. #define CONFIG_CONTROL_CLOCK_RATIO_MSK (0xFFFF)
  45. #define CONFIG_CONTROL_CLOCK_RATIO_OFST (0)
  46. #define CONFIG_CONTROL_DATA(BASE_ADDR) (PLD_CONF00_TYPE (BASE_ADDR + 0x8 ))
  47. #define CONFIG_CONTROL_DATA_MSK (0xFFFFFFFF)
  48. #define CONFIG_CONTROL_DATA_OFST (0)
  49. #define CONFIG_UNLOCK(BASE_ADDR) (PLD_CONF00_TYPE (BASE_ADDR + 0xC ))
  50. #define CONFIG_UNLOCK_MSK (0xFFFFFFFF)
  51. #define CONFIG_UNLOCK_OFST (0)
  52. #define CONFIG_UNLOCK_MAGIC (0x554E4C4B)
  53. #endif /* __PLD_CONF00_H */