karef.h 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #ifndef __KAREF_H__
  2. #define __KAREF_H__
  3. /*
  4. * (C) Copyright 2005
  5. * Sandburst Corporation
  6. * Travis B. Sawyer
  7. *
  8. * See file CREDITS for list of people who contributed to this
  9. * project.
  10. *
  11. * This program is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License as
  13. * published by the Free Software Foundation; either version 2 of
  14. * the License, or (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  24. * MA 02111-1307 USA
  25. */
  26. /* Ka Reference Design OFEM FPGA Registers & definitions */
  27. #include "hal_ka_sc_auto.h"
  28. #include "hal_ka_of_auto.h"
  29. typedef struct karef_board_id_s {
  30. const char name[40];
  31. } KAREF_BOARD_ID_ST, *KAREF_BOARD_ID_PST;
  32. /* SCAN FPGA */
  33. typedef struct karef_fpga_regs_s
  34. {
  35. volatile unsigned long revision_ul; /* Read Only */
  36. volatile unsigned long reset_ul; /* Read/Write */
  37. volatile unsigned long interrupt_ul; /* Read Only */
  38. volatile unsigned long mask_ul; /* Read/Write */
  39. volatile unsigned long scratch_ul; /* Read/Write */
  40. volatile unsigned long scrmask_ul; /* Read/Write */
  41. volatile unsigned long status_ul; /* Read Only */
  42. volatile unsigned long control_ul; /* Read/Write */
  43. volatile unsigned long boardinfo_ul; /* Read Only */
  44. volatile unsigned long scan_from0_ul; /* Read Only */
  45. volatile unsigned long scan_from1_ul; /* Read Only */
  46. volatile unsigned long scan_to0_ul; /* Read/Write */
  47. volatile unsigned long scan_to1_ul; /* Read/Write */
  48. volatile unsigned long scan_control_ul; /* Read/Write */
  49. volatile unsigned long pll_control_ul; /* Read/Write */
  50. volatile unsigned long core_clock_cnt_ul; /* Read/Write */
  51. volatile unsigned long dr_clock_cnt_ul; /* Read/Write */
  52. volatile unsigned long spi_clock_cnt_ul; /* Read/Write */
  53. volatile unsigned long brdout_data_ul; /* Read/Write */
  54. volatile unsigned long brdout_enable_ul; /* Read/Write */
  55. volatile unsigned long brdin_data_ul; /* Read Only */
  56. volatile unsigned long misc_ul; /* Read/Write */
  57. } __attribute__((packed)) KAREF_FPGA_REGS_ST , * KAREF_FPGA_REGS_PST;
  58. /* OFEM FPGA */
  59. typedef struct ofem_fpga_regs_s
  60. {
  61. volatile unsigned long revision_ul; /* Read Only */
  62. volatile unsigned long reset_ul; /* Read/Write */
  63. volatile unsigned long interrupt_ul; /* Read Only */
  64. volatile unsigned long mask_ul; /* Read/Write */
  65. volatile unsigned long scratch_ul; /* Read/Write */
  66. volatile unsigned long scrmask_ul; /* Read/Write */
  67. volatile unsigned long control_ul; /* Read/Write */
  68. volatile unsigned long mac_flow_ctrl_ul; /* Read/Write */
  69. } __attribute__((packed)) OFEM_FPGA_REGS_ST , * OFEM_FPGA_REGS_PST;
  70. #endif /* __KAREF_H__ */