3 Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 #include <Library/PeCoffLib.h>
20 #include <Protocol/UgaDraw.h>
21 #include <Protocol/SimpleTextIn.h>
22 #include <Protocol/SimpleTextInEx.h>
23 #include <Protocol/UnixUgaIo.h>
27 // Gasket functions for EFI_UNIX_THUNK_PROTOCOL
32 GasketmsSleep (unsigned long Milliseconds
);
44 VOID (*CallBack
)(UINT64 DeltaMs
)
133 const char *pathname
,
222 const char *filename
,
223 const struct utimbuf
*buf
236 struct _EFI_UNIX_UGA_IO_PROTOCOL
**UgaIo
,
247 // ... is always an int or pointer to device specific data structure
254 unsigned long int __request
,
269 struct termios
*__termios_p
,
276 struct termios
*__termios_p
,
284 struct termios
*__termios_p
291 int __optional_actions
,
292 __const
struct termios
*__termios_p
299 const struct sigaction
*act
,
300 struct sigaction
*oact
306 struct ifaddrs
**ifap
325 GasketUnixEnableInterrupt (void);
329 GasketUnixDisableInterrupt (void);
333 GasketUnixPeCoffGetEntryPoint (
335 IN OUT VOID
**EntryPoint
340 GasketUnixPeCoffRelocateImageExtraAction (
341 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT
*ImageContext
346 GasketUnixPeCoffUnloadImageExtraAction (
347 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT
*ImageContext
375 GasketUintnUintnUintn (
384 GasketUintnUintnUintnUintn (
417 GasketUintnUint64Uintn (
439 ReverseGasketUint64 (
445 ReverseGasketUint64Uint64 (
452 // Gasket functions for EFI_UNIX_UGA_IO_PROTOCOL
459 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
465 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
,
473 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
479 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
,
485 GasketUgaKeySetState (
486 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
,
487 EFI_KEY_TOGGLE_STATE
*KeyToggleState
492 GasketUgaRegisterKeyNotify (
493 IN EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
,
494 IN UGA_REGISTER_KEY_NOTIFY_CALLBACK CallBack
,
501 IN EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
,
502 IN EFI_UGA_PIXEL
*BltBuffer OPTIONAL
,
503 IN EFI_UGA_BLT_OPERATION BltOperation
,
504 IN UGA_BLT_ARGS
*Args
509 GasketUgaCheckPointer (
510 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
515 GasketUgaGetPointerState (
516 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
,
517 EFI_SIMPLE_POINTER_STATE
*state
522 // Gasket functions for EFI_UNIX_UGA_IO_PROTOCOL C calls
529 EFI_UNIX_UGA_IO_PROTOCOL
**Uga
,
536 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
542 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
,
550 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
556 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
,
562 UgaRegisterKeyNotify (
563 IN EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
,
564 IN UGA_REGISTER_KEY_NOTIFY_CALLBACK CallBack
,
572 IN EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
,
573 IN EFI_UGA_PIXEL
*BltBuffer OPTIONAL
,
574 IN EFI_UGA_BLT_OPERATION BltOperation
,
575 IN UGA_BLT_ARGS
*Args
581 IN EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
587 IN EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
,
588 IN EFI_SIMPLE_POINTER_STATE
*State