Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1998 Intel Corporation
  3. Module Name:
  4. data.c
  5. Abstract:
  6. Shell Environment driver global data
  7. Revision History
  8. --*/
  9. #include "shelle.h"
  10. /*
  11. * IDs of different variables stored by the shell environment
  12. */
  13. EFI_GUID SEnvEnvId = ENVIRONMENT_VARIABLE_ID;
  14. EFI_GUID SEnvMapId = DEVICE_PATH_MAPPING_ID;
  15. EFI_GUID SEnvProtId = PROTOCOL_ID_ID;
  16. EFI_GUID SEnvAliasId = ALIAS_ID;
  17. /*
  18. *
  19. */
  20. EFI_SHELL_ENVIRONMENT SEnvInterface = {
  21. SEnvExecute,
  22. SEnvGetEnv,
  23. SEnvGetMap,
  24. SEnvAddCommand,
  25. SEnvAddProtocol,
  26. SEnvGetProtocol,
  27. SEnvGetCurDir,
  28. SEnvFileMetaArg,
  29. SEnvFreeFileList,
  30. SEnvNewShell
  31. } ;
  32. /*
  33. * SEnvIoFromCon - used to access the console interface as a file handle
  34. */
  35. EFI_FILE SEnvIOFromCon = {
  36. EFI_FILE_HANDLE_REVISION,
  37. SEnvConIoOpen,
  38. SEnvConIoNop,
  39. SEnvConIoNop,
  40. SEnvConIoRead,
  41. SEnvConIoWrite,
  42. SEnvConIoGetPosition,
  43. SEnvConIoSetPosition,
  44. SEnvConIoGetInfo,
  45. SEnvConIoSetInfo,
  46. SEnvConIoNop
  47. } ;
  48. EFI_FILE SEnvErrIOFromCon = {
  49. EFI_FILE_HANDLE_REVISION,
  50. SEnvConIoOpen,
  51. SEnvConIoNop,
  52. SEnvConIoNop,
  53. SEnvErrIoRead,
  54. SEnvErrIoWrite,
  55. SEnvConIoGetPosition,
  56. SEnvConIoSetPosition,
  57. SEnvConIoGetInfo,
  58. SEnvConIoSetInfo,
  59. SEnvConIoNop
  60. } ;
  61. /*
  62. * SEnvConToIo - used to access the console interface as a file handle
  63. */
  64. SIMPLE_TEXT_OUTPUT_MODE SEnvConToIoMode = {
  65. 0,
  66. 0,
  67. EFI_TEXT_ATTR(EFI_LIGHTGRAY, EFI_BLACK),
  68. 0,
  69. 0,
  70. TRUE
  71. } ;
  72. SIMPLE_TEXT_OUTPUT_INTERFACE SEnvConToIo = {
  73. SEnvReset,
  74. SEnvOutputString,
  75. SEnvTestString,
  76. SEnvQueryMode,
  77. SEnvSetMode,
  78. SEnvSetAttribute,
  79. SEnvClearScreen,
  80. SEnvSetCursorPosition,
  81. SEnvEnableCursor,
  82. &SEnvConToIoMode
  83. } ;
  84. /*
  85. * SEnvLock - gaurds all shell data except the guid database
  86. */
  87. FLOCK SEnvLock;
  88. /*
  89. * SEnvGuidLock - gaurds the guid data
  90. */
  91. FLOCK SEnvGuidLock;