/** @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
\r
#include <Protocol/UgaDraw.h>\r
#include <Protocol/SimpleTextIn.h>\r
+#include <Protocol/SimpleTextInEx.h>\r
#include <Protocol/UnixUgaIo.h>\r
\r
\r
\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
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
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
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
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