Remove unused variable and function
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2606 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -1,52 +1,52 @@
|
||||
/*++
|
||||
|
||||
Copyright (c) 2004, Intel Corporation
|
||||
All rights reserved. This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
Module Name:
|
||||
|
||||
UnixThunk.h
|
||||
|
||||
Abstract:
|
||||
|
||||
This protocol allows an EFI driver in the Unix emulation environment
|
||||
to make Posix calls.
|
||||
|
||||
NEVER make an Unix call directly, always make the call via this protocol.
|
||||
|
||||
There are no This pointers on the protocol member functions as they map
|
||||
exactly into Unix system calls.
|
||||
|
||||
--*/
|
||||
|
||||
#ifndef _UNIX_THUNK_H_
|
||||
#define _UNIX_THUNK_H_
|
||||
|
||||
#include <sys/termios.h>
|
||||
/*++
|
||||
|
||||
#define EFI_UNIX_THUNK_PROTOCOL_GUID \
|
||||
{ \
|
||||
Copyright (c) 2004, Intel Corporation
|
||||
All rights reserved. This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
Module Name:
|
||||
|
||||
UnixThunk.h
|
||||
|
||||
Abstract:
|
||||
|
||||
This protocol allows an EFI driver in the Unix emulation environment
|
||||
to make Posix calls.
|
||||
|
||||
NEVER make an Unix call directly, always make the call via this protocol.
|
||||
|
||||
There are no This pointers on the protocol member functions as they map
|
||||
exactly into Unix system calls.
|
||||
|
||||
--*/
|
||||
|
||||
#ifndef _UNIX_THUNK_H_
|
||||
#define _UNIX_THUNK_H_
|
||||
|
||||
#include <sys/termios.h>
|
||||
|
||||
#define EFI_UNIX_THUNK_PROTOCOL_GUID \
|
||||
{ \
|
||||
0xf2e98868, 0x8985, 0x11db, {0x9a, 0x59, 0x00, 0x40, 0xd0, 0x2b, 0x18, 0x35 } \
|
||||
}
|
||||
|
||||
typedef
|
||||
VOID
|
||||
(*UnixSleep) (
|
||||
unsigned long Milliseconds
|
||||
);
|
||||
|
||||
typedef
|
||||
VOID
|
||||
(*UnixExit) (
|
||||
int status // exit code for all threads
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
typedef
|
||||
VOID
|
||||
(*UnixSleep) (
|
||||
unsigned long Milliseconds
|
||||
);
|
||||
|
||||
typedef
|
||||
VOID
|
||||
(*UnixExit) (
|
||||
int status // exit code for all threads
|
||||
);
|
||||
|
||||
typedef
|
||||
VOID
|
||||
(*UnixSetTimer) (UINT64 PeriodMs, VOID (*CallBack)(UINT64 DeltaMs));
|
||||
@ -138,55 +138,51 @@ typedef
|
||||
EFI_STATUS
|
||||
(*UnixUgaCreate)(struct _EFI_UNIX_UGA_IO_PROTOCOL **UgaIo,
|
||||
CONST CHAR16 *Title);
|
||||
|
||||
typedef
|
||||
int
|
||||
(*UnixTcflush) (int fildes, int queue_selector);
|
||||
|
||||
typedef
|
||||
void
|
||||
(*UnixPerror) (__const char *__s);
|
||||
|
||||
typedef
|
||||
void
|
||||
(*UnixPrintf) (const char* format, ...);
|
||||
|
||||
typedef
|
||||
int
|
||||
(*UnixIoCtl) (int fd, unsigned long int __request, ...);
|
||||
|
||||
typedef
|
||||
int
|
||||
(*UnixFcntl) (int __fd, int __cmd, ...);
|
||||
|
||||
typedef
|
||||
int
|
||||
(*UnixCfsetispeed) (struct termios *__termios_p, speed_t __speed);
|
||||
|
||||
typedef
|
||||
int
|
||||
(*UnixCfsetospeed) (struct termios *__termios_p, speed_t __speed);
|
||||
|
||||
typedef
|
||||
int
|
||||
(*UnixTcgetattr) (int __fd, struct termios *__termios_p);
|
||||
|
||||
typedef
|
||||
int
|
||||
(*UnixTcsetattr) (int __fd, int __optional_actions,
|
||||
__const struct termios *__termios_p);
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
#define EFI_UNIX_THUNK_PROTOCOL_SIGNATURE EFI_SIGNATURE_32 ('L', 'N', 'X', 'T')
|
||||
|
||||
typedef struct _EFI_UNIX_THUNK_PROTOCOL {
|
||||
UINT64 Signature;
|
||||
typedef
|
||||
int
|
||||
(*UnixTcflush) (int fildes, int queue_selector);
|
||||
|
||||
UnixSleep Sleep;
|
||||
UnixExit Exit;
|
||||
typedef
|
||||
void
|
||||
(*UnixPerror) (__const char *__s);
|
||||
|
||||
typedef
|
||||
int
|
||||
(*UnixIoCtl) (int fd, unsigned long int __request, ...);
|
||||
|
||||
typedef
|
||||
int
|
||||
(*UnixFcntl) (int __fd, int __cmd, ...);
|
||||
|
||||
typedef
|
||||
int
|
||||
(*UnixCfsetispeed) (struct termios *__termios_p, speed_t __speed);
|
||||
|
||||
typedef
|
||||
int
|
||||
(*UnixCfsetospeed) (struct termios *__termios_p, speed_t __speed);
|
||||
|
||||
typedef
|
||||
int
|
||||
(*UnixTcgetattr) (int __fd, struct termios *__termios_p);
|
||||
|
||||
typedef
|
||||
int
|
||||
(*UnixTcsetattr) (int __fd, int __optional_actions,
|
||||
__const struct termios *__termios_p);
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
#define EFI_UNIX_THUNK_PROTOCOL_SIGNATURE EFI_SIGNATURE_32 ('L', 'N', 'X', 'T')
|
||||
|
||||
typedef struct _EFI_UNIX_THUNK_PROTOCOL {
|
||||
UINT64 Signature;
|
||||
|
||||
UnixSleep Sleep;
|
||||
UnixExit Exit;
|
||||
UnixSetTimer SetTimer;
|
||||
UnixGetLocalTime GetLocalTime;
|
||||
UnixGmTime GmTime;
|
||||
@ -217,16 +213,15 @@ typedef struct _EFI_UNIX_THUNK_PROTOCOL {
|
||||
UnixUTime UTime;
|
||||
UnixTcflush Tcflush;
|
||||
UnixUgaCreate UgaCreate;
|
||||
UnixPerror Perror;
|
||||
UnixPrintf Printf;
|
||||
UnixIoCtl IoCtl;
|
||||
UnixFcntl Fcntl;
|
||||
UnixCfsetispeed Cfsetispeed;
|
||||
UnixCfsetospeed Cfsetospeed;
|
||||
UnixTcgetattr Tcgetattr;
|
||||
UnixTcsetattr Tcsetattr;
|
||||
UnixPerror Perror;
|
||||
UnixIoCtl IoCtl;
|
||||
UnixFcntl Fcntl;
|
||||
UnixCfsetispeed Cfsetispeed;
|
||||
UnixCfsetospeed Cfsetospeed;
|
||||
UnixTcgetattr Tcgetattr;
|
||||
UnixTcsetattr Tcsetattr;
|
||||
} EFI_UNIX_THUNK_PROTOCOL;
|
||||
|
||||
extern EFI_GUID gEfiUnixThunkProtocolGuid;
|
||||
|
||||
#endif
|
||||
|
||||
extern EFI_GUID gEfiUnixThunkProtocolGuid;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user