vpd_areas.h 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. * Copyright (C) 2001 Mike Corrigan IBM Corporation
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. */
  18. #ifndef _ISERIES_VPD_AREAS_H
  19. #define _ISERIES_VPD_AREAS_H
  20. /*
  21. * This file defines the address and length of all of the VPD area passed to
  22. * the OS from PLIC (most of which start from the SP).
  23. */
  24. #include <asm/types.h>
  25. /* VPD Entry index is carved in stone - cannot be changed (easily). */
  26. #define ItVpdCecVpd 0
  27. #define ItVpdDynamicSpace 1
  28. #define ItVpdExtVpd 2
  29. #define ItVpdExtVpdOnPanel 3
  30. #define ItVpdFirstPaca 4
  31. #define ItVpdIoVpd 5
  32. #define ItVpdIplParms 6
  33. #define ItVpdMsVpd 7
  34. #define ItVpdPanelVpd 8
  35. #define ItVpdLpNaca 9
  36. #define ItVpdBackplaneAndMaybeClockCardVpd 10
  37. #define ItVpdRecoveryLogBuffer 11
  38. #define ItVpdSpCommArea 12
  39. #define ItVpdSpLogBuffer 13
  40. #define ItVpdSpLogBufferSave 14
  41. #define ItVpdSpCardVpd 15
  42. #define ItVpdFirstProcVpd 16
  43. #define ItVpdApModelVpd 17
  44. #define ItVpdClockCardVpd 18
  45. #define ItVpdBusExtCardVpd 19
  46. #define ItVpdProcCapacityVpd 20
  47. #define ItVpdInteractiveCapacityVpd 21
  48. #define ItVpdFirstSlotLabel 22
  49. #define ItVpdFirstLpQueue 23
  50. #define ItVpdFirstL3CacheVpd 24
  51. #define ItVpdFirstProcFruVpd 25
  52. #define ItVpdMaxEntries 26
  53. #define ItDmaMaxEntries 10
  54. #define ItVpdAreasMaxSlotLabels 192
  55. struct ItVpdAreas {
  56. u32 xSlicDesc; // Descriptor 000-003
  57. u16 xSlicSize; // Size of this control block 004-005
  58. u16 xPlicAdjustVpdLens:1; // Flag to indicate new interface006-007
  59. u16 xRsvd1:15; // Reserved bits ...
  60. u16 xSlicVpdEntries; // Number of VPD entries 008-009
  61. u16 xSlicDmaEntries; // Number of DMA entries 00A-00B
  62. u16 xSlicMaxLogicalProcs; // Maximum logical processors 00C-00D
  63. u16 xSlicMaxPhysicalProcs; // Maximum physical processors 00E-00F
  64. u16 xSlicDmaToksOffset; // Offset into this of array 010-011
  65. u16 xSlicVpdAdrsOffset; // Offset into this of array 012-013
  66. u16 xSlicDmaLensOffset; // Offset into this of array 014-015
  67. u16 xSlicVpdLensOffset; // Offset into this of array 016-017
  68. u16 xSlicMaxSlotLabels; // Maximum number of slot labels018-019
  69. u16 xSlicMaxLpQueues; // Maximum number of LP Queues 01A-01B
  70. u8 xRsvd2[4]; // Reserved 01C-01F
  71. u64 xRsvd3[12]; // Reserved 020-07F
  72. u32 xPlicDmaLens[ItDmaMaxEntries];// Array of DMA lengths 080-0A7
  73. u32 xPlicDmaToks[ItDmaMaxEntries];// Array of DMA tokens 0A8-0CF
  74. u32 xSlicVpdLens[ItVpdMaxEntries];// Array of VPD lengths 0D0-12F
  75. const void *xSlicVpdAdrs[ItVpdMaxEntries];// Array of VPD buffers 130-1EF
  76. };
  77. extern const struct ItVpdAreas itVpdAreas;
  78. #endif /* _ISERIES_VPD_AREAS_H */