realview.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /*++
  2. Copyright (c) 2013 Minoca Corp. All Rights Reserved
  3. Module Name:
  4. realview.h
  5. Abstract:
  6. This header contains definitions for the RealView hardware modules.
  7. Author:
  8. Evan Green 14-Jul-2013
  9. --*/
  10. //
  11. // ------------------------------------------------------------------- Includes
  12. //
  13. //
  14. // ---------------------------------------------------------------- Definitions
  15. //
  16. //
  17. // Define the signature of the RealView ACPI table.
  18. //
  19. #define REALVIEW_SIGNATURE 0x57564C52 // 'WVLR'
  20. //
  21. // Define the number of timers in the RealView timer block.
  22. //
  23. #define REALVIEW_TIMER_COUNT 2
  24. //
  25. // Define the default UART base and clock frequency if enumeration is forced.
  26. //
  27. #define REALVIEW_UART_BASE 0x10009000
  28. #define REALVIEW_UART_CLOCK_FREQUENCY 14745600
  29. //
  30. // ------------------------------------------------------ Data Type Definitions
  31. //
  32. /*++
  33. Structure Description:
  34. This structure describes the RealView ACPI table.
  35. Members:
  36. Header - Stores the standard ACPI table header. The signature here is
  37. 'WVLR'.
  38. Pl110PhysicalAddress - Stores the phyiscal address of the PL110 LCD
  39. controller.
  40. TimerPhysicalAddress - Stores the physical addressES of the timer blocks.
  41. TimerFrequency - Stores the frequencies of the timers, or zero for
  42. unknown.
  43. TimerGsi - Stores the Global System Interrupt numbers of the timers.
  44. DebugUartPhysicalAddress - Stores the physical address of the UART used for
  45. serial debugging.
  46. DebugUartClockFrequency - Stores the frequency of the clock use for the
  47. UART.
  48. --*/
  49. typedef struct _REALVIEW_TABLE {
  50. DESCRIPTION_HEADER Header;
  51. ULONGLONG Pl110PhysicalAddress;
  52. ULONGLONG TimerPhysicalAddress[REALVIEW_TIMER_COUNT];
  53. ULONGLONG TimerFrequency[REALVIEW_TIMER_COUNT];
  54. ULONG TimerGsi[REALVIEW_TIMER_COUNT];
  55. ULONGLONG DebugUartPhysicalAddress;
  56. ULONG DebugUartClockFrequency;
  57. } PACKED REALVIEW_TABLE, *PREALVIEW_TABLE;
  58. //
  59. // -------------------------------------------------------------------- Globals
  60. //
  61. //
  62. // -------------------------------------------------------- Function Prototypes
  63. //