es7000.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /*
  2. * Written by: Garry Forsgren, Unisys Corporation
  3. * Natalie Protasevich, Unisys Corporation
  4. * This file contains the code to configure and interface
  5. * with Unisys ES7000 series hardware system manager.
  6. *
  7. * Copyright (c) 2003 Unisys Corporation. All Rights Reserved.
  8. *
  9. * This program is free software; you can redistribute it and/or modify it
  10. * under the terms of version 2 of the GNU General Public License as
  11. * published by the Free Software Foundation.
  12. *
  13. * This program is distributed in the hope that it would be useful, but
  14. * WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16. *
  17. * You should have received a copy of the GNU General Public License along
  18. * with this program; if not, write the Free Software Foundation, Inc., 59
  19. * Temple Place - Suite 330, Boston MA 02111-1307, USA.
  20. *
  21. * Contact information: Unisys Corporation, Township Line & Union Meeting
  22. * Roads-A, Unisys Way, Blue Bell, Pennsylvania, 19424, or:
  23. *
  24. * http://www.unisys.com
  25. */
  26. #define MIP_REG 1
  27. #define MIP_PSAI_REG 4
  28. #define MIP_BUSY 1
  29. #define MIP_SPIN 0xf0000
  30. #define MIP_VALID 0x0100000000000000ULL
  31. #define MIP_PORT(VALUE) ((VALUE >> 32) & 0xffff)
  32. #define MIP_RD_LO(VALUE) (VALUE & 0xffffffff)
  33. struct mip_reg_info {
  34. unsigned long long mip_info;
  35. unsigned long long delivery_info;
  36. unsigned long long host_reg;
  37. unsigned long long mip_reg;
  38. };
  39. struct part_info {
  40. unsigned char type;
  41. unsigned char length;
  42. unsigned char part_id;
  43. unsigned char apic_mode;
  44. unsigned long snum;
  45. char ptype[16];
  46. char sname[64];
  47. char pname[64];
  48. };
  49. struct psai {
  50. unsigned long long entry_type;
  51. unsigned long long addr;
  52. unsigned long long bep_addr;
  53. };
  54. struct es7000_mem_info {
  55. unsigned char type;
  56. unsigned char length;
  57. unsigned char resv[6];
  58. unsigned long long start;
  59. unsigned long long size;
  60. };
  61. struct es7000_oem_table {
  62. unsigned long long hdr;
  63. struct mip_reg_info mip;
  64. struct part_info pif;
  65. struct es7000_mem_info shm;
  66. struct psai psai;
  67. };
  68. struct acpi_table_sdt {
  69. unsigned long pa;
  70. unsigned long count;
  71. struct {
  72. unsigned long pa;
  73. enum acpi_table_id id;
  74. unsigned long size;
  75. } entry[50];
  76. };
  77. struct oem_table {
  78. struct acpi_table_header Header;
  79. u32 OEMTableAddr;
  80. u32 OEMTableSize;
  81. };
  82. struct mip_reg {
  83. unsigned long long off_0;
  84. unsigned long long off_8;
  85. unsigned long long off_10;
  86. unsigned long long off_18;
  87. unsigned long long off_20;
  88. unsigned long long off_28;
  89. unsigned long long off_30;
  90. unsigned long long off_38;
  91. };
  92. #define MIP_SW_APIC 0x1020b
  93. #define MIP_FUNC(VALUE) (VALUE & 0xff)
  94. extern int parse_unisys_oem (char *oemptr);
  95. extern int find_unisys_acpi_oem_table(unsigned long *oem_addr);
  96. extern void setup_unisys ();
  97. extern int es7000_start_cpu(int cpu, unsigned long eip);
  98. extern void es7000_sw_apic(void);