source: bootcd/isolinux/syslinux-6.03/efi/fio.h @ 26ffad7

Last change on this file since 26ffad7 was e16e8f2, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

bootstuff

  • Property mode set to 100644
File size: 1.4 KB
Line 
1#ifndef _H_EFI_FIO_
2#define _H_EFI_FIO_
3
4/*
5 * Friendly interfaces for EFI file I/O and various EFI support functions
6 */
7
8/* MAX_EFI_ARGS - command line args for EFI executable
9 * WS(c16)      - check for CHAR16 white space
10 */
11#define MAX_EFI_ARGS            64
12#define WS(c16)         (c16 == L' ' || c16 == CHAR_TAB)
13
14/* VPrint is not in export declarations in gnu-efi lib yet
15 * although it is a global function; declare it here
16 */
17extern UINTN
18VPrint (
19    IN CHAR16   *fmt,
20    va_list     args
21    );
22
23extern EFI_STATUS efi_errno;
24
25void efi_memcpy(unsigned char *dst, unsigned char *src, size_t len);
26void efi_memmove(unsigned char *dst, unsigned char *src, size_t len);
27void efi_memset(unsigned char *dst, unsigned char val, size_t len);
28void *efi_alloc(int size);
29void efi_free(void *ptr);
30void efi_perror(CHAR16 *str);
31void efi_printerr(IN CHAR16 *fmt, ...);
32void efi_printout(IN CHAR16 *fmt, ...);
33EFI_STATUS efi_set_volroot(EFI_HANDLE device_handle);
34EFI_FILE_HANDLE efi_open(CHAR16 *file, UINT64 mode);
35void efi_close(EFI_FILE_HANDLE fd);
36void efi_sync(EFI_FILE_HANDLE fd);
37size_t efi_xpread(EFI_FILE_HANDLE fd, void *buf, size_t count, off_t offset);
38size_t efi_xpwrite(EFI_FILE_HANDLE fd, void *buf, size_t count, off_t offset);
39int efi_fstat(EFI_FILE_HANDLE fd, EFI_FILE_INFO *st);
40void efi_set_attributes(EFI_FILE_HANDLE fd);
41void efi_clear_attributes(EFI_FILE_HANDLE fd);
42
43#endif
Note: See TracBrowser for help on using the repository browser.