3 Copyright (c) 2008 - 2009, 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/UnixUgaIo.h>
26 // Gasket functions for EFI_UNIX_THUNK_PROTOCOL
31 GasketmsSleep (unsigned long Milliseconds
);
43 VOID (*CallBack
)(UINT64 DeltaMs
)
132 const char *pathname
,
180 Gasketstat (const char *path
, STAT_FIX
*buf
);
184 Gasketstatfs (const char *path
, struct statfs
*buf
);
215 const char *filename
,
216 const struct utimbuf
*buf
229 struct _EFI_UNIX_UGA_IO_PROTOCOL
**UgaIo
,
240 // ... is always an int or pointer to device specific data structure
247 unsigned long int __request
,
262 struct termios
*__termios_p
,
269 struct termios
*__termios_p
,
277 struct termios
*__termios_p
284 int __optional_actions
,
285 __const
struct termios
*__termios_p
292 const struct sigaction
*act
,
293 struct sigaction
*oact
298 GasketUnixPeCoffGetEntryPoint (
300 IN OUT VOID
**EntryPoint
305 GasketUnixPeCoffRelocateImageExtraAction (
306 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT
*ImageContext
311 GasketUnixPeCoffUnloadImageExtraAction (
312 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT
*ImageContext
340 GasketUintnUintnUintn (
349 GasketUintnUintnUintnUintn (
382 GasketUintnUint64Uintn (
404 ReverseGasketUint64 (
410 // Gasket functions for EFI_UNIX_UGA_IO_PROTOCOL
417 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
423 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
,
431 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
437 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
,
444 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
,
445 IN EFI_UGA_PIXEL
*BltBuffer OPTIONAL
,
446 IN EFI_UGA_BLT_OPERATION BltOperation
,
449 IN UINTN DestinationX
,
450 IN UINTN DestinationY
,
453 IN UINTN Delta OPTIONAL
459 EFI_UNIX_UGA_IO_PROTOCOL
**Uga
,
465 // Gasket functions for EFI_UNIX_UGA_IO_PROTOCOL
470 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
476 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
,
484 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
490 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
,
497 EFI_UNIX_UGA_IO_PROTOCOL
*UgaIo
,
498 IN EFI_UGA_PIXEL
*BltBuffer OPTIONAL
,
499 IN EFI_UGA_BLT_OPERATION BltOperation
,
502 IN UINTN DestinationX
,
503 IN UINTN DestinationY
,
506 IN UINTN Delta OPTIONAL