UnixPkg: Added missing EFIAPI for many Gasket functions
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10923 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -146,50 +146,50 @@ typedef struct stat_fix {
|
|||||||
|
|
||||||
typedef
|
typedef
|
||||||
VOID
|
VOID
|
||||||
(*UnixSleep) (
|
(EFIAPI *UnixSleep) (
|
||||||
unsigned long Milliseconds
|
unsigned long Milliseconds
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
VOID
|
VOID
|
||||||
(*UnixExit) (
|
(EFIAPI *UnixExit) (
|
||||||
int status // exit code for all threads
|
int status // exit code for all threads
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
VOID
|
VOID
|
||||||
(*UnixSetTimer) (
|
(EFIAPI *UnixSetTimer) (
|
||||||
UINT64 PeriodMs,
|
UINT64 PeriodMs,
|
||||||
VOID (*CallBack)(UINT64 DeltaMs)
|
VOID (EFIAPI *CallBack)(UINT64 DeltaMs)
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
VOID
|
VOID
|
||||||
(*UnixGetLocalTime) (
|
(EFIAPI *UnixGetLocalTime) (
|
||||||
EFI_TIME *Time
|
EFI_TIME *Time
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct tm *
|
struct tm *
|
||||||
(*UnixGmTime)(
|
(EFIAPI *UnixGmTime)(
|
||||||
const time_t *timep
|
const time_t *timep
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
long
|
long
|
||||||
(*UnixGetTimeZone)(
|
(EFIAPI *UnixGetTimeZone)(
|
||||||
void
|
void
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixGetDayLight)(
|
(EFIAPI *UnixGetDayLight)(
|
||||||
void
|
void
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixPoll)(
|
(EFIAPI *UnixPoll)(
|
||||||
struct pollfd *pfd,
|
struct pollfd *pfd,
|
||||||
unsigned int nfds,
|
unsigned int nfds,
|
||||||
int timeout
|
int timeout
|
||||||
@ -197,7 +197,7 @@ int
|
|||||||
|
|
||||||
typedef
|
typedef
|
||||||
long
|
long
|
||||||
(*UnixRead) (
|
(EFIAPI *UnixRead) (
|
||||||
int fd,
|
int fd,
|
||||||
void *buf,
|
void *buf,
|
||||||
int count
|
int count
|
||||||
@ -205,7 +205,7 @@ long
|
|||||||
|
|
||||||
typedef
|
typedef
|
||||||
long
|
long
|
||||||
(*UnixWrite) (
|
(EFIAPI *UnixWrite) (
|
||||||
int fd,
|
int fd,
|
||||||
const void *buf,
|
const void *buf,
|
||||||
int count
|
int count
|
||||||
@ -213,125 +213,125 @@ long
|
|||||||
|
|
||||||
typedef
|
typedef
|
||||||
char *
|
char *
|
||||||
(*UnixGetenv) (const char *var);
|
(EFIAPI *UnixGetenv) (const char *var);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixOpen) (const char *name, int flags, int mode);
|
(EFIAPI *UnixOpen) (const char *name, int flags, int mode);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
off_t
|
off_t
|
||||||
(*UnixSeek) (int fd, off_t off, int whence);
|
(EFIAPI *UnixSeek) (int fd, off_t off, int whence);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixFtruncate) (int fd, long int len);
|
(EFIAPI *UnixFtruncate) (int fd, long int len);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixClose) (int fd);
|
(EFIAPI *UnixClose) (int fd);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixMkdir)(const char *pathname, mode_t mode);
|
(EFIAPI *UnixMkdir)(const char *pathname, mode_t mode);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixRmDir)(const char *pathname);
|
(EFIAPI *UnixRmDir)(const char *pathname);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixUnLink)(const char *pathname);
|
(EFIAPI *UnixUnLink)(const char *pathname);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixGetErrno)(VOID);
|
(EFIAPI *UnixGetErrno)(VOID);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
DIR *
|
DIR *
|
||||||
(*UnixOpenDir)(const char *pathname);
|
(EFIAPI *UnixOpenDir)(const char *pathname);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
void
|
void
|
||||||
(*UnixRewindDir)(DIR *dir);
|
(EFIAPI *UnixRewindDir)(DIR *dir);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct dirent *
|
struct dirent *
|
||||||
(*UnixReadDir)(DIR *dir);
|
(EFIAPI *UnixReadDir)(DIR *dir);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixCloseDir)(DIR *dir);
|
(EFIAPI *UnixCloseDir)(DIR *dir);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixStat)(const char *path, STAT_FIX *buf);
|
(EFIAPI *UnixStat)(const char *path, STAT_FIX *buf);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixStatFs)(const char *path, struct statfs *buf);
|
(EFIAPI *UnixStatFs)(const char *path, struct statfs *buf);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixRename)(const char *oldpath, const char *newpath);
|
(EFIAPI *UnixRename)(const char *oldpath, const char *newpath);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
time_t
|
time_t
|
||||||
(*UnixMkTime)(struct tm *tm);
|
(EFIAPI *UnixMkTime)(struct tm *tm);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixFSync)(int fd);
|
(EFIAPI *UnixFSync)(int fd);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixChmod)(const char *path, mode_t mode);
|
(EFIAPI *UnixChmod)(const char *path, mode_t mode);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixUTime)(const char *filename, const struct utimbuf *buf);
|
(EFIAPI *UnixUTime)(const char *filename, const struct utimbuf *buf);
|
||||||
|
|
||||||
struct _EFI_UNIX_UGA_IO_PROTOCOL;
|
struct _EFI_UNIX_UGA_IO_PROTOCOL;
|
||||||
typedef
|
typedef
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
(*UnixUgaCreate)(struct _EFI_UNIX_UGA_IO_PROTOCOL **UgaIo,
|
(EFIAPI *UnixUgaCreate)(struct _EFI_UNIX_UGA_IO_PROTOCOL **UgaIo,
|
||||||
CONST CHAR16 *Title);
|
CONST CHAR16 *Title);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixTcflush) (int fildes, int queue_selector);
|
(EFIAPI *UnixTcflush) (int fildes, int queue_selector);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
void
|
void
|
||||||
(*UnixPerror) (__const char *__s);
|
(EFIAPI *UnixPerror) (__const char *__s);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
#if __CYGWIN__
|
#if __CYGWIN__
|
||||||
(*UnixIoCtl) (int fd, int __request, UINTN Arg);
|
(EFIAPI *UnixIoCtl) (int fd, int __request, UINTN Arg);
|
||||||
#else
|
#else
|
||||||
(*UnixIoCtl) (int fd, unsigned long int __request, void *Arg);
|
(EFIAPI *UnixIoCtl) (int fd, unsigned long int __request, void *Arg);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixFcntl) (int __fd, int __cmd, void *Arg);
|
(EFIAPI *UnixFcntl) (int __fd, int __cmd, void *Arg);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixCfsetispeed) (struct termios *__termios_p, speed_t __speed);
|
(EFIAPI *UnixCfsetispeed) (struct termios *__termios_p, speed_t __speed);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixCfsetospeed) (struct termios *__termios_p, speed_t __speed);
|
(EFIAPI *UnixCfsetospeed) (struct termios *__termios_p, speed_t __speed);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixTcgetattr) (int __fd, struct termios *__termios_p);
|
(EFIAPI *UnixTcgetattr) (int __fd, struct termios *__termios_p);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
int
|
int
|
||||||
(*UnixTcsetattr) (int __fd, int __optional_actions,
|
(EFIAPI *UnixTcsetattr) (int __fd, int __optional_actions,
|
||||||
__const struct termios *__termios_p);
|
__const struct termios *__termios_p);
|
||||||
|
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@ Abstract:
|
|||||||
EFI_UNIX_THUNK_PROTOCOL *gUnix;
|
EFI_UNIX_THUNK_PROTOCOL *gUnix;
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
UnixLibConstructor (
|
UnixLibConstructor (
|
||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN EFI_SYSTEM_TABLE *SystemTable
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
|
@ -109,6 +109,7 @@ extern EFI_HII_HANDLE mHiiHandle;
|
|||||||
// Prototypes
|
// Prototypes
|
||||||
//
|
//
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
MiscSubclassDriverEntryPoint (
|
MiscSubclassDriverEntryPoint (
|
||||||
IN EFI_HANDLE ImageHandle,
|
IN EFI_HANDLE ImageHandle,
|
||||||
IN EFI_SYSTEM_TABLE *SystemTable
|
IN EFI_SYSTEM_TABLE *SystemTable
|
||||||
|
@ -26,92 +26,421 @@
|
|||||||
// Gasket functions for EFI_UNIX_THUNK_PROTOCOL
|
// Gasket functions for EFI_UNIX_THUNK_PROTOCOL
|
||||||
//
|
//
|
||||||
|
|
||||||
void GasketmsSleep (unsigned long Milliseconds);
|
void
|
||||||
void Gasketexit (int status);
|
EFIAPI
|
||||||
void GasketSetTimer (UINT64 PeriodMs, VOID (*CallBack)(UINT64 DeltaMs));
|
GasketmsSleep (unsigned long Milliseconds);
|
||||||
void GasketGetLocalTime (EFI_TIME *Time);
|
|
||||||
struct tm *Gasketgmtime (const time_t *clock);
|
void
|
||||||
long GasketGetTimeZone (void);
|
EFIAPI
|
||||||
int GasketGetDayLight (void);
|
Gasketexit (
|
||||||
int Gasketpoll (struct pollfd *pfd, unsigned int nfds, int timeout);
|
int status
|
||||||
long Gasketread (int fd, void *buf, int count);
|
);
|
||||||
long Gasketwrite (int fd, const void *buf, int count);
|
|
||||||
char *Gasketgetenv (const char *name);
|
void
|
||||||
int Gasketopen (const char *name, int flags, int mode);
|
EFIAPI
|
||||||
off_t Gasketlseek (int fd, off_t off, int whence);
|
GasketSetTimer (
|
||||||
int Gasketftruncate (int fd, long int len);
|
UINT64 PeriodMs,
|
||||||
int Gasketclose (int fd);
|
VOID (*CallBack)(UINT64 DeltaMs)
|
||||||
int Gasketmkdir (const char *pathname, mode_t mode);
|
);
|
||||||
int Gasketrmdir (const char *pathname);
|
|
||||||
int Gasketunlink (const char *pathname);
|
void
|
||||||
int GasketGetErrno (void);
|
EFIAPI
|
||||||
DIR *Gasketopendir (const char *pathname);
|
GasketGetLocalTime (
|
||||||
void Gasketrewinddir (DIR *dir);
|
EFI_TIME *Time
|
||||||
struct dirent *Gasketreaddir (DIR *dir);
|
);
|
||||||
int Gasketclosedir (DIR *dir);
|
|
||||||
int Gasketstat (const char *path, STAT_FIX *buf);
|
struct tm *
|
||||||
int Gasketstatfs (const char *path, struct statfs *buf);
|
EFIAPI
|
||||||
int Gasketrename (const char *oldpath, const char *newpath);
|
Gasketgmtime (
|
||||||
time_t Gasketmktime (struct tm *tm);
|
const time_t *clock
|
||||||
int Gasketfsync (int fd);
|
);
|
||||||
int Gasketchmod (const char *path, mode_t mode);
|
|
||||||
int Gasketutime (const char *filename, const struct utimbuf *buf);
|
long
|
||||||
int Gaskettcflush (int fildes, int queue_selector);
|
EFIAPI
|
||||||
EFI_STATUS GasketUgaCreate(struct _EFI_UNIX_UGA_IO_PROTOCOL **UgaIo, CONST CHAR16 *Title);
|
GasketGetTimeZone (
|
||||||
void Gasketperror (__const char *__s);
|
void
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
GasketGetDayLight (
|
||||||
|
void
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gasketpoll (
|
||||||
|
struct pollfd *pfd,
|
||||||
|
unsigned int nfds,
|
||||||
|
int timeout
|
||||||
|
);
|
||||||
|
|
||||||
|
long
|
||||||
|
EFIAPI
|
||||||
|
Gasketread (
|
||||||
|
int fd,
|
||||||
|
void *buf,
|
||||||
|
int count);
|
||||||
|
|
||||||
|
long
|
||||||
|
EFIAPI
|
||||||
|
Gasketwrite (
|
||||||
|
int fd,
|
||||||
|
const void *buf,
|
||||||
|
int count
|
||||||
|
);
|
||||||
|
|
||||||
|
char *
|
||||||
|
EFIAPI
|
||||||
|
Gasketgetenv (
|
||||||
|
const char *name
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gasketopen (
|
||||||
|
const char *name,
|
||||||
|
int flags,
|
||||||
|
int mode
|
||||||
|
);
|
||||||
|
|
||||||
|
off_t
|
||||||
|
EFIAPI
|
||||||
|
Gasketlseek (
|
||||||
|
int fd,
|
||||||
|
off_t off,
|
||||||
|
int whence
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gasketftruncate (
|
||||||
|
int fd,
|
||||||
|
long int len
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gasketclose (
|
||||||
|
int fd
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gasketmkdir (
|
||||||
|
const char *pathname,
|
||||||
|
mode_t mode
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gasketrmdir (
|
||||||
|
const char *pathname
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gasketunlink (
|
||||||
|
const char *pathname
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
GasketGetErrno (
|
||||||
|
void
|
||||||
|
);
|
||||||
|
|
||||||
|
DIR *
|
||||||
|
EFIAPI
|
||||||
|
Gasketopendir (
|
||||||
|
const char *pathname
|
||||||
|
);
|
||||||
|
|
||||||
|
void
|
||||||
|
EFIAPI
|
||||||
|
Gasketrewinddir (
|
||||||
|
DIR *dir
|
||||||
|
);
|
||||||
|
|
||||||
|
struct dirent *
|
||||||
|
EFIAPI
|
||||||
|
Gasketreaddir (
|
||||||
|
DIR *dir
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gasketclosedir (
|
||||||
|
DIR *dir
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gasketstat (const char *path, STAT_FIX *buf);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gasketstatfs (const char *path, struct statfs *buf);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gasketrename (
|
||||||
|
const char *oldpath,
|
||||||
|
const char *newpath
|
||||||
|
);
|
||||||
|
|
||||||
|
time_t
|
||||||
|
EFIAPI
|
||||||
|
Gasketmktime (
|
||||||
|
struct tm *tm
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gasketfsync (
|
||||||
|
int fd
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gasketchmod (
|
||||||
|
const char *path,
|
||||||
|
mode_t mode
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gasketutime (
|
||||||
|
const char *filename,
|
||||||
|
const struct utimbuf *buf
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gaskettcflush (
|
||||||
|
int fildes,
|
||||||
|
int queue_selector
|
||||||
|
);
|
||||||
|
|
||||||
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
|
GasketUgaCreate (
|
||||||
|
struct _EFI_UNIX_UGA_IO_PROTOCOL **UgaIo,
|
||||||
|
CONST CHAR16 *Title
|
||||||
|
);
|
||||||
|
|
||||||
|
void
|
||||||
|
EFIAPI
|
||||||
|
Gasketperror (
|
||||||
|
__const char *__s
|
||||||
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
// ... is always an int or pointer to device specific data structure
|
// ... is always an int or pointer to device specific data structure
|
||||||
//
|
//
|
||||||
int Gasketioctl (int fd, unsigned long int __request, void *Arg);
|
|
||||||
int Gasketfcntl (int __fd, int __cmd, void *Arg);
|
|
||||||
|
|
||||||
int Gasketcfsetispeed (struct termios *__termios_p, speed_t __speed);
|
int
|
||||||
int Gasketcfsetospeed (struct termios *__termios_p, speed_t __speed);
|
EFIAPI
|
||||||
int Gaskettcgetattr (int __fd, struct termios *__termios_p);
|
Gasketioctl (
|
||||||
int Gaskettcsetattr (int __fd, int __optional_actions, __const struct termios *__termios_p);
|
int fd,
|
||||||
int Gasketsigaction (int sig, const struct sigaction *act, struct sigaction *oact);
|
unsigned long int __request,
|
||||||
|
void *Arg
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gasketfcntl (
|
||||||
|
int __fd,
|
||||||
|
int __cmd,
|
||||||
|
void *Arg
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gasketcfsetispeed (
|
||||||
|
struct termios *__termios_p,
|
||||||
|
speed_t __speed
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gasketcfsetospeed (
|
||||||
|
struct termios *__termios_p,
|
||||||
|
speed_t __speed
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gaskettcgetattr (
|
||||||
|
int __fd,
|
||||||
|
struct termios *__termios_p
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gaskettcsetattr (
|
||||||
|
int __fd,
|
||||||
|
int __optional_actions,
|
||||||
|
__const struct termios *__termios_p
|
||||||
|
);
|
||||||
|
|
||||||
|
int
|
||||||
|
EFIAPI
|
||||||
|
Gasketsigaction (
|
||||||
|
int sig,
|
||||||
|
const struct sigaction *act,
|
||||||
|
struct sigaction *oact
|
||||||
|
);
|
||||||
|
|
||||||
RETURN_STATUS
|
RETURN_STATUS
|
||||||
|
EFIAPI
|
||||||
GasketUnixPeCoffGetEntryPoint (
|
GasketUnixPeCoffGetEntryPoint (
|
||||||
IN VOID *Pe32Data,
|
IN VOID *Pe32Data,
|
||||||
IN OUT VOID **EntryPoint
|
IN OUT VOID **EntryPoint
|
||||||
);
|
);
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
EFIAPI
|
||||||
GasketUnixPeCoffRelocateImageExtraAction (
|
GasketUnixPeCoffRelocateImageExtraAction (
|
||||||
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
|
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
|
||||||
);
|
);
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
EFIAPI
|
||||||
GasketUnixPeCoffUnloadImageExtraAction (
|
GasketUnixPeCoffUnloadImageExtraAction (
|
||||||
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
|
IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
UINTN GasketVoid (void *api);
|
|
||||||
UINTN GasketUintn (void *api, UINTN a);
|
|
||||||
UINTN GasketUintnUintn (void *api, UINTN a, UINTN b);
|
|
||||||
UINTN GasketUintnUintnUintn (void *api, UINTN a, UINTN b, UINTN c);
|
|
||||||
UINTN GasketUintnUintnUintnUintn (void *api, UINTN a, UINTN b, UINTN c, UINTN d);
|
|
||||||
UINTN GasketUintn10Args (void *api, UINTN a, UINTN b, UINTN c, UINTN d, UINTN e, UINTN f, UINTN g, UINTN h, UINTN i, UINTN j);
|
|
||||||
UINTN GasketUint64Uintn (void *api, UINT64 a, UINTN b);
|
|
||||||
UINT64 GasketUintnUint64Uintn (void *api, UINTN a, UINT64 b, UINTN c);
|
|
||||||
UINTN GasketUintnUint16 (void *api, UINTN a, UINT16 b);
|
|
||||||
|
|
||||||
typedef void (*CALL_BACK) (UINT64 Delta);
|
UINTN
|
||||||
|
EFIAPI
|
||||||
|
GasketVoid (
|
||||||
|
void *api
|
||||||
|
);
|
||||||
|
|
||||||
UINTN ReverseGasketUint64 (CALL_BACK CallBack, UINT64 a);
|
UINTN
|
||||||
|
EFIAPI
|
||||||
|
GasketUintn (
|
||||||
|
void *api,
|
||||||
|
UINTN a
|
||||||
|
);
|
||||||
|
|
||||||
|
UINTN
|
||||||
|
EFIAPI
|
||||||
|
GasketUintnUintn (
|
||||||
|
void *api,
|
||||||
|
UINTN a,
|
||||||
|
UINTN b
|
||||||
|
);
|
||||||
|
|
||||||
|
UINTN
|
||||||
|
EFIAPI
|
||||||
|
GasketUintnUintnUintn (
|
||||||
|
void *api,
|
||||||
|
UINTN a,
|
||||||
|
UINTN b,
|
||||||
|
UINTN c
|
||||||
|
);
|
||||||
|
|
||||||
|
UINTN
|
||||||
|
EFIAPI
|
||||||
|
GasketUintnUintnUintnUintn (
|
||||||
|
void *api,
|
||||||
|
UINTN a,
|
||||||
|
UINTN b,
|
||||||
|
UINTN c,
|
||||||
|
UINTN d
|
||||||
|
);
|
||||||
|
|
||||||
|
UINTN
|
||||||
|
EFIAPI
|
||||||
|
GasketUintn10Args (
|
||||||
|
void *api,
|
||||||
|
UINTN a,
|
||||||
|
UINTN b,
|
||||||
|
UINTN c,
|
||||||
|
UINTN d,
|
||||||
|
UINTN e,
|
||||||
|
UINTN f,
|
||||||
|
UINTN g,
|
||||||
|
UINTN h,
|
||||||
|
UINTN i,
|
||||||
|
UINTN j
|
||||||
|
);
|
||||||
|
|
||||||
|
UINTN
|
||||||
|
EFIAPI
|
||||||
|
GasketUint64Uintn (
|
||||||
|
void *api,
|
||||||
|
UINT64 a,
|
||||||
|
UINTN b);
|
||||||
|
|
||||||
|
UINT64
|
||||||
|
EFIAPI
|
||||||
|
GasketUintnUint64Uintn (
|
||||||
|
void *api,
|
||||||
|
UINTN a,
|
||||||
|
UINT64 b,
|
||||||
|
UINTN c
|
||||||
|
);
|
||||||
|
|
||||||
|
UINTN
|
||||||
|
EFIAPI
|
||||||
|
GasketUintnUint16 (
|
||||||
|
void *api,
|
||||||
|
UINTN a,
|
||||||
|
UINT16 b
|
||||||
|
);
|
||||||
|
|
||||||
|
typedef
|
||||||
|
void
|
||||||
|
(*CALL_BACK) (
|
||||||
|
UINT64 Delta
|
||||||
|
);
|
||||||
|
|
||||||
|
UINTN
|
||||||
|
ReverseGasketUint64 (
|
||||||
|
CALL_BACK CallBack,
|
||||||
|
UINT64 a
|
||||||
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Gasket functions for EFI_UNIX_UGA_IO_PROTOCOL
|
// Gasket functions for EFI_UNIX_UGA_IO_PROTOCOL
|
||||||
//
|
//
|
||||||
|
|
||||||
EFI_STATUS EFIAPI GasketUgaClose (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo);
|
|
||||||
EFI_STATUS EFIAPI GasketUgaSize (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, UINT32 Width, UINT32 Height);
|
EFI_STATUS
|
||||||
EFI_STATUS EFIAPI GasketUgaCheckKey (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo);
|
EFIAPI
|
||||||
EFI_STATUS EFIAPI GasketUgaGetKey (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, EFI_INPUT_KEY *key);
|
GasketUgaClose (
|
||||||
EFI_STATUS EFIAPI GasketUgaBlt (
|
EFI_UNIX_UGA_IO_PROTOCOL *UgaIo
|
||||||
|
);
|
||||||
|
|
||||||
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
|
GasketUgaSize (
|
||||||
|
EFI_UNIX_UGA_IO_PROTOCOL *UgaIo,
|
||||||
|
UINT32 Width,
|
||||||
|
UINT32 Height
|
||||||
|
);
|
||||||
|
|
||||||
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
|
GasketUgaCheckKey (
|
||||||
|
EFI_UNIX_UGA_IO_PROTOCOL *UgaIo
|
||||||
|
);
|
||||||
|
|
||||||
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
|
GasketUgaGetKey (
|
||||||
|
EFI_UNIX_UGA_IO_PROTOCOL *UgaIo,
|
||||||
|
EFI_INPUT_KEY *key
|
||||||
|
);
|
||||||
|
|
||||||
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
|
GasketUgaBlt (
|
||||||
EFI_UNIX_UGA_IO_PROTOCOL *UgaIo,
|
EFI_UNIX_UGA_IO_PROTOCOL *UgaIo,
|
||||||
IN EFI_UGA_PIXEL *BltBuffer OPTIONAL,
|
IN EFI_UGA_PIXEL *BltBuffer OPTIONAL,
|
||||||
IN EFI_UGA_BLT_OPERATION BltOperation,
|
IN EFI_UGA_BLT_OPERATION BltOperation,
|
||||||
@ -124,17 +453,48 @@ EFI_STATUS EFIAPI GasketUgaBlt (
|
|||||||
IN UINTN Delta OPTIONAL
|
IN UINTN Delta OPTIONAL
|
||||||
);
|
);
|
||||||
|
|
||||||
EFI_STATUS UgaCreate (EFI_UNIX_UGA_IO_PROTOCOL **Uga, CONST CHAR16 *Title);
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
|
UgaCreate (
|
||||||
|
EFI_UNIX_UGA_IO_PROTOCOL **Uga,
|
||||||
|
CONST CHAR16 *Title
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Gasket functions for EFI_UNIX_UGA_IO_PROTOCOL
|
// Gasket functions for EFI_UNIX_UGA_IO_PROTOCOL
|
||||||
//
|
//
|
||||||
EFI_STATUS UgaClose (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo);
|
EFI_STATUS
|
||||||
EFI_STATUS UgaSize(EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, UINT32 Width, UINT32 Height);
|
EFIAPI
|
||||||
EFI_STATUS UgaCheckKey(EFI_UNIX_UGA_IO_PROTOCOL *UgaIo);
|
UgaClose (
|
||||||
EFI_STATUS UgaGetKey (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, EFI_INPUT_KEY *key);
|
EFI_UNIX_UGA_IO_PROTOCOL *UgaIo
|
||||||
EFI_STATUS UgaBlt (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo,
|
);
|
||||||
|
|
||||||
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
|
UgaSize(
|
||||||
|
EFI_UNIX_UGA_IO_PROTOCOL *UgaIo,
|
||||||
|
UINT32 Width,
|
||||||
|
UINT32 Height
|
||||||
|
);
|
||||||
|
|
||||||
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
|
UgaCheckKey(
|
||||||
|
EFI_UNIX_UGA_IO_PROTOCOL *UgaIo
|
||||||
|
);
|
||||||
|
|
||||||
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
|
UgaGetKey (
|
||||||
|
EFI_UNIX_UGA_IO_PROTOCOL *UgaIo,
|
||||||
|
EFI_INPUT_KEY *key
|
||||||
|
);
|
||||||
|
|
||||||
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
|
UgaBlt (
|
||||||
|
EFI_UNIX_UGA_IO_PROTOCOL *UgaIo,
|
||||||
IN EFI_UGA_PIXEL *BltBuffer OPTIONAL,
|
IN EFI_UGA_PIXEL *BltBuffer OPTIONAL,
|
||||||
IN EFI_UGA_BLT_OPERATION BltOperation,
|
IN EFI_UGA_BLT_OPERATION BltOperation,
|
||||||
IN UINTN SourceX,
|
IN UINTN SourceX,
|
||||||
|
@ -62,6 +62,7 @@ UINT64 mTimerPeriodMs;
|
|||||||
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
EFIAPI
|
||||||
TimerCallback (UINT64 DeltaMs)
|
TimerCallback (UINT64 DeltaMs)
|
||||||
/*++
|
/*++
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user