]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UnixPkg/Sec/Gasket.c
Fix issue with fixing tabs.
[mirror_edk2.git] / UnixPkg / Sec / Gasket.c
index 826e13bad3588436611dc3db4a185b100eb59142..04c65f1a8dac6924097e2cf940a40f994c09e73e 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-  Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+  Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>\r
   \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -369,28 +369,88 @@ GasketUgaCheckKey (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo)
 \r
 EFI_STATUS \r
 EFIAPI \r
-GasketUgaGetKey (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, EFI_INPUT_KEY *key)\r
+GasketUgaKeySetState (EFI_UNIX_UGA_IO_PROTOCOL   *UgaIo, EFI_KEY_TOGGLE_STATE *KeyToggleState)\r
+{\r
+  return GasketUintnUintn (UgaGetKey, (UINTN)UgaIo, (UINTN)KeyToggleState);\r
+}\r
+\r
+EFI_STATUS \r
+EFIAPI \r
+GasketUgaGetKey (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, EFI_KEY_DATA *key)\r
 {\r
   return GasketUintnUintn (UgaGetKey, (UINTN)UgaIo, (UINTN)key);\r
 }\r
 \r
+EFI_STATUS \r
+EFIAPI \r
+GasketUgaRegisterKeyNotify (\r
+  IN EFI_UNIX_UGA_IO_PROTOCOL           *UgaIo, \r
+  IN UGA_REGISTER_KEY_NOTIFY_CALLBACK   CallBack,\r
+  IN VOID                               *Context\r
+  )\r
+{\r
+  return GasketUintnUintnUintn (UgaRegisterKeyNotify, (UINTN)UgaIo, (UINTN)CallBack, (UINTN)Context);  \r
+}\r
+\r
 EFI_STATUS \r
 EFIAPI \r
 GasketUgaBlt (\r
    EFI_UNIX_UGA_IO_PROTOCOL *UgaIo,\r
    IN  EFI_UGA_PIXEL                           *BltBuffer OPTIONAL,\r
    IN  EFI_UGA_BLT_OPERATION                   BltOperation,\r
-   IN  UINTN                                   SourceX,\r
-   IN  UINTN                                   SourceY,\r
-   IN  UINTN                                   DestinationX,\r
-   IN  UINTN                                   DestinationY,\r
-   IN  UINTN                                   Width,\r
-   IN  UINTN                                   Height,\r
-   IN  UINTN                                   Delta OPTIONAL\r
+   IN  UGA_BLT_ARGS                            *Args\r
    )\r
 {\r
-  return GasketUintn10Args (UgaBlt, (UINTN)UgaIo, (UINTN)BltBuffer, BltOperation, SourceX, SourceY, DestinationX, DestinationY, Width, Height, Delta);\r
+  return GasketUintnUintnUintnUintn (UgaBlt, (UINTN)UgaIo, (UINTN)BltBuffer, (UINTN)BltOperation, (UINTN)Args);\r
+}\r
+\r
+EFI_STATUS \r
+EFIAPI \r
+GasketUgaCheckPointer (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo)\r
+{\r
+  return GasketUintn (UgaCheckPointer, (UINTN)UgaIo);\r
+}\r
+\r
+EFI_STATUS \r
+EFIAPI \r
+GasketUgaGetPointerState (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, EFI_SIMPLE_POINTER_STATE *state)\r
+{\r
+  return GasketUintnUintn (UgaGetPointerState, (UINTN)UgaIo, (UINTN)state);\r
+}\r
+\r
+void\r
+GasketUnixEnableInterrupt (void)\r
+{\r
+  GasketVoid (UnixEnableInterrupt);\r
+}\r
+\r
+void\r
+GasketUnixDisableInterrupt (void)\r
+{\r
+  GasketVoid (UnixDisableInterrupt);\r
+}\r
+\r
+\r
+int\r
+Gasketgetifaddrs (struct ifaddrs **ifap)\r
+{\r
+  return( GasketUintn( getifaddrs, ( UINTN ) ifap ) );\r
+}\r
+\r
+\r
+void\r
+Gasketfreeifaddrs (struct ifaddrs *ifap)\r
+{\r
+  GasketUintn( freeifaddrs, ( UINTN ) ifap );\r
 }\r
 \r
+\r
+int\r
+Gasketsocket (int domain, int type, int protocol )\r
+{\r
+  return( GasketUintnUintnUintn( socket, domain, type, protocol ) );\r
+}\r
+\r
+\r
 #endif\r
 \r