]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UnixPkg/Sec/Gasket.h
Adding Simple Pointer, GOP, SimpleTextInEx, and Networking protocols to the emulator...
[mirror_edk2.git] / UnixPkg / Sec / Gasket.h
index 1b7187035a17cd9b428e1f9564484ef8604cb60d..4c75d8abcc83ee30ba7f1b9d5d8b732e4c1e4df9 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
@@ -19,6 +19,7 @@
 \r
 #include <Protocol/UgaDraw.h>\r
 #include <Protocol/SimpleTextIn.h>\r
+#include <Protocol/SimpleTextInEx.h>\r
 #include <Protocol/UnixUgaIo.h>\r
 \r
 \r
@@ -177,11 +178,17 @@ Gasketclosedir (
 \r
 int\r
 EFIAPI\r
-Gasketstat (const char *path, STAT_FIX *buf);\r
+Gasketstat (\r
+  const char  *path, \r
+  STAT_FIX    *buf)\r
+  ;\r
 \r
 int\r
 EFIAPI\r
-Gasketstatfs (const char *path, struct statfs *buf);\r
+Gasketstatfs (\r
+  const char      *path, \r
+  struct statfs   *buf\r
+  );\r
 \r
 int\r
 EFIAPI\r
@@ -293,6 +300,34 @@ Gasketsigaction (
   struct sigaction *oact\r
   );\r
 \r
+int \r
+EFIAPI \r
+Gasketgetifaddrs (\r
+  struct ifaddrs **ifap\r
+  );\r
+\r
+void \r
+EFIAPI \r
+Gasketfreeifaddrs (\r
+  struct ifaddrs *ifap\r
+  );\r
+\r
+int \r
+EFIAPI \r
+Gasketsocket (\r
+  int domain, \r
+  int type, \r
+  int protocol\r
+  );\r
+\r
+void \r
+EFIAPI \r
+GasketUnixEnableInterrupt (void);\r
+\r
+void \r
+EFIAPI \r
+GasketUnixDisableInterrupt (void);\r
+\r
 RETURN_STATUS\r
 EFIAPI\r
 GasketUnixPeCoffGetEntryPoint (\r
@@ -406,6 +441,13 @@ ReverseGasketUint64 (
   UINT64 a\r
   );\r
 \r
+UINTN\r
+ReverseGasketUint64Uint64 (\r
+  VOID      *CallBack,\r
+  VOID      *Context,\r
+  VOID      *Key\r
+  );\r
+\r
 //\r
 // Gasket functions for EFI_UNIX_UGA_IO_PROTOCOL\r
 //\r
@@ -435,35 +477,59 @@ EFI_STATUS
 EFIAPI\r
 GasketUgaGetKey (\r
   EFI_UNIX_UGA_IO_PROTOCOL *UgaIo,\r
-  EFI_INPUT_KEY *key\r
+  EFI_KEY_DATA              *key\r
   );\r
 \r
 EFI_STATUS\r
 EFIAPI\r
-GasketUgaBlt (\r
+GasketUgaKeySetState (\r
    EFI_UNIX_UGA_IO_PROTOCOL *UgaIo,\r
+  EFI_KEY_TOGGLE_STATE *KeyToggleState\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
+EFI_STATUS\r
+EFIAPI\r
+GasketUgaBlt (\r
+  IN  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
 EFI_STATUS\r
 EFIAPI\r
-UgaCreate (\r
-  EFI_UNIX_UGA_IO_PROTOCOL **Uga,\r
-  CONST CHAR16 *Title\r
+GasketUgaCheckPointer (\r
+  EFI_UNIX_UGA_IO_PROTOCOL *UgaIo\r
+  );\r
+\r
+EFI_STATUS \r
+EFIAPI \r
+GasketUgaGetPointerState (\r
+  EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, \r
+  EFI_SIMPLE_POINTER_STATE *state\r
   );\r
 \r
 \r
 //\r
-// Gasket functions for EFI_UNIX_UGA_IO_PROTOCOL\r
+// Gasket functions for EFI_UNIX_UGA_IO_PROTOCOL C calls\r
 //\r
+\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+UgaCreate (\r
+  EFI_UNIX_UGA_IO_PROTOCOL **Uga,\r
+  CONST CHAR16 *Title\r
+  );\r
+\r
 EFI_STATUS\r
 EFIAPI\r
 UgaClose (\r
@@ -488,24 +554,39 @@ EFI_STATUS
 EFIAPI\r
 UgaGetKey (\r
   EFI_UNIX_UGA_IO_PROTOCOL *UgaIo,\r
-  EFI_INPUT_KEY *key\r
+  EFI_KEY_DATA             *key\r
   );\r
 \r
+EFI_STATUS\r
+EFIAPI\r
+UgaRegisterKeyNotify (\r
+  IN EFI_UNIX_UGA_IO_PROTOCOL           *UgaIo, \r
+  IN UGA_REGISTER_KEY_NOTIFY_CALLBACK   CallBack,\r
+  IN VOID                               *Context\r
+  );\r
+\r
+\r
 EFI_STATUS\r
 EFIAPI\r
 UgaBlt (\r
-  EFI_UNIX_UGA_IO_PROTOCOL *UgaIo,\r
+  IN  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
+EFI_STATUS \r
+EFIAPI\r
+UgaCheckPointer (\r
+  IN EFI_UNIX_UGA_IO_PROTOCOL *UgaIo\r
+  );\r
+  \r
+EFI_STATUS\r
+EFIAPI\r
+UgaGetPointerState (\r
+  IN EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, \r
+  IN EFI_SIMPLE_POINTER_STATE *State\r
+  );\r
 \r
 \r
 #endif\r