]>
Commit | Line | Data |
---|---|---|
1 | \r | |
2 | #ifndef _GASKET_H_\r | |
3 | #define _GASKET_H_\r | |
4 | \r | |
5 | #include <Library/PeCoffLib.h>\r | |
6 | \r | |
7 | #include <Protocol/UgaDraw.h>\r | |
8 | #include <Protocol/SimpleTextIn.h>\r | |
9 | #include <Protocol/UnixUgaIo.h>\r | |
10 | \r | |
11 | \r | |
12 | //\r | |
13 | // Gasket functions for EFI_UNIX_THUNK_PROTOCOL\r | |
14 | //\r | |
15 | \r | |
16 | void GasketmsSleep (unsigned long Milliseconds);\r | |
17 | void Gasketexit (int status);\r | |
18 | void GasketSetTimer (UINT64 PeriodMs, VOID (*CallBack)(UINT64 DeltaMs));\r | |
19 | void GasketGetLocalTime (EFI_TIME *Time);\r | |
20 | struct tm *Gasketgmtime (const time_t *clock);\r | |
21 | long GasketGetTimeZone (void);\r | |
22 | int GasketGetDayLight (void);\r | |
23 | int Gasketpoll (struct pollfd *pfd, int nfds, int timeout);\r | |
24 | int Gasketread (int fd, void *buf, int count);\r | |
25 | int Gasketwrite (int fd, const void *buf, int count);\r | |
26 | char *Gasketgetenv (const char *name);\r | |
27 | int Gasketopen (const char *name, int flags, int mode);\r | |
28 | off_t Gasketlseek (int fd, off_t off, int whence);\r | |
29 | int Gasketftruncate (int fd, long int len);\r | |
30 | int Gasketclose (int fd);\r | |
31 | int Gasketmkdir (const char *pathname, mode_t mode);\r | |
32 | int Gasketrmdir (const char *pathname);\r | |
33 | int Gasketunlink (const char *pathname);\r | |
34 | int GasketGetErrno (void);\r | |
35 | DIR *Gasketopendir (const char *pathname);\r | |
36 | void *Gasketrewinddir (DIR *dir);\r | |
37 | struct dirent *Gasketreaddir (DIR *dir);\r | |
38 | int Gasketclosedir (DIR *dir);\r | |
39 | int Gasketstat (const char *path, STAT_FIX *buf);\r | |
40 | int Gasketstatfs (const char *path, struct statfs *buf);\r | |
41 | int Gasketrename (const char *oldpath, const char *newpath);\r | |
42 | time_t Gasketmktime (struct tm *tm);\r | |
43 | int Gasketfsync (int fd);\r | |
44 | int Gasketchmod (const char *path, mode_t mode);\r | |
45 | int Gasketutime (const char *filename, const struct utimbuf *buf);\r | |
46 | int Gaskettcflush (int fildes, int queue_selector);\r | |
47 | EFI_STATUS GasketUgaCreate(struct _EFI_UNIX_UGA_IO_PROTOCOL **UgaIo, CONST CHAR16 *Title);\r | |
48 | void Gasketperror (__const char *__s);\r | |
49 | \r | |
50 | //\r | |
51 | // ... is always an int or pointer to device specific data structure\r | |
52 | //\r | |
53 | int Gasketioctl (int fd, unsigned long int __request, ...);\r | |
54 | int Gasketfcntl (int __fd, int __cmd, ...);\r | |
55 | \r | |
56 | int Gasketcfsetispeed (struct termios *__termios_p, speed_t __speed);\r | |
57 | int Gasketcfsetospeed (struct termios *__termios_p, speed_t __speed);\r | |
58 | int Gaskettcgetattr (int __fd, struct termios *__termios_p); \r | |
59 | int Gaskettcsetattr (int __fd, int __optional_actions, __const struct termios *__termios_p);\r | |
60 | int Gasketsigaction (int sig, const struct sigaction *act, struct sigaction *oact);\r | |
61 | int Gasketsetcontext (const ucontext_t *ucp);\r | |
62 | int Gasketgetcontext (ucontext_t *ucp);\r | |
63 | int Gasketsigemptyset (sigset_t *set);\r | |
64 | int Gasketsigaltstack (const stack_t *ss, stack_t *oss);\r | |
65 | \r | |
66 | RETURN_STATUS\r | |
67 | GasketUnixPeCoffGetEntryPoint (\r | |
68 | IN VOID *Pe32Data,\r | |
69 | IN OUT VOID **EntryPoint\r | |
70 | );\r | |
71 | \r | |
72 | VOID\r | |
73 | GasketUnixPeCoffRelocateImageExtraAction (\r | |
74 | IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r | |
75 | );\r | |
76 | \r | |
77 | VOID\r | |
78 | GasketPeCoffLoaderUnloadImageExtraAction (\r | |
79 | IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r | |
80 | );\r | |
81 | \r | |
82 | \r | |
83 | int GasketVoid (void *api);\r | |
84 | int GasketUintn (void *api, UINTN a);\r | |
85 | int GasketUintnUintn (void *api, UINTN a, UINTN b);\r | |
86 | int GasketUintnUintnUintn (void *api, UINTN a, UINTN b, UINTN c);\r | |
87 | int GasketUintnUintnUintnUintn (void *api, UINTN a, UINTN b, UINTN c, UINTN d);\r | |
88 | int GasketUintn10Args (void *api, UINTN a, UINTN b, UINTN c, UINTN d, UINTN e, UINTN f, UINTN g, UINTN h, UINTN i, UINTN j);\r | |
89 | int GasketUint64Uintn (void *api, UINT64 a, UINTN b);\r | |
90 | UINT64 GasketUintnUint64Uintn (void *api, UINTN a, UINT64 b, UINTN c);\r | |
91 | int GasketUintnUint16 (void *api, UINTN a, UINT16 b);\r | |
92 | \r | |
93 | \r | |
94 | //\r | |
95 | // Gasket functions for EFI_UNIX_UGA_IO_PROTOCOL\r | |
96 | //\r | |
97 | \r | |
98 | EFI_STATUS EFIAPI GasketUgaClose (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo);\r | |
99 | EFI_STATUS EFIAPI GasketUgaSize (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, UINT32 Width, UINT32 Height);\r | |
100 | EFI_STATUS EFIAPI GasketUgaCheckKey (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo);\r | |
101 | EFI_STATUS EFIAPI GasketUgaGetKey (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, EFI_INPUT_KEY *key);\r | |
102 | EFI_STATUS EFIAPI GasketUgaBlt (\r | |
103 | EFI_UNIX_UGA_IO_PROTOCOL *UgaIo,\r | |
104 | IN EFI_UGA_PIXEL *BltBuffer OPTIONAL,\r | |
105 | IN EFI_UGA_BLT_OPERATION BltOperation,\r | |
106 | IN UINTN SourceX,\r | |
107 | IN UINTN SourceY,\r | |
108 | IN UINTN DestinationX,\r | |
109 | IN UINTN DestinationY,\r | |
110 | IN UINTN Width,\r | |
111 | IN UINTN Height,\r | |
112 | IN UINTN Delta OPTIONAL\r | |
113 | );\r | |
114 | \r | |
115 | EFI_STATUS UgaCreate (EFI_UNIX_UGA_IO_PROTOCOL **Uga, CONST CHAR16 *Title);\r | |
116 | \r | |
117 | \r | |
118 | //\r | |
119 | // Gasket functions for EFI_UNIX_UGA_IO_PROTOCOL\r | |
120 | //\r | |
121 | EFI_STATUS UgaClose (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo);\r | |
122 | EFI_STATUS UgaSize(EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, UINT32 Width, UINT32 Height);\r | |
123 | EFI_STATUS UgaCheckKey(EFI_UNIX_UGA_IO_PROTOCOL *UgaIo);\r | |
124 | EFI_STATUS UgaGetKey (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, EFI_INPUT_KEY *key);\r | |
125 | EFI_STATUS UgaBlt (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo,\r | |
126 | IN EFI_UGA_PIXEL *BltBuffer OPTIONAL,\r | |
127 | IN EFI_UGA_BLT_OPERATION BltOperation,\r | |
128 | IN UINTN SourceX,\r | |
129 | IN UINTN SourceY,\r | |
130 | IN UINTN DestinationX,\r | |
131 | IN UINTN DestinationY,\r | |
132 | IN UINTN Width,\r | |
133 | IN UINTN Height,\r | |
134 | IN UINTN Delta OPTIONAL\r | |
135 | );\r | |
136 | \r | |
137 | \r | |
138 | \r | |
139 | #endif\r | |
140 | \r | |
141 | \r |