VirtualBox

source: vbox/trunk/src/VBox/Devices/PC/Etherboot-src/include/lib.h@ 13295

最後變更 在這個檔案從13295是 1,由 vboxsync 提交於 55 年 前

import

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.1 KB
 
1#ifndef LIB_H
2#define LIB_H
3
4#include <stdint.h>
5
6int getline(char *buf, int max);
7
8extern struct pci_device *dev_list;
9extern int n_devs;
10
11extern void pci_init(void);
12extern struct pci_device *pci_find_device(int vendor, int device, int devclass,
13int prog_if, int index);
14
15void *calloc(size_t nmemb, size_t size);
16void *realloc(void *ptr, size_t size);
17
18char *strdup(const char *s);
19
20int isspace(int c);
21
22unsigned long long simple_strtoull(const char *cp,char **endp,unsigned int base);
23unsigned long long strtoull_with_suffix(const char *cp,char **endp,unsigned int base);
24
25unsigned int get_le32(const unsigned char *);
26unsigned int get_le16(const unsigned char *);
27void hexdump(const void *p, unsigned int len);
28
29long long simple_strtoll(const char *cp,char **endp,unsigned int base);
30
31#define LOADER_NOT_SUPPORT 0xbadf11e
32
33struct sys_info;
34int elf_load(struct sys_info *, const char *filename, const char *cmdline);
35
36#if LINUX_LOADER
37int linux_load(struct sys_info *, const char *filename, const char *cmdline);
38#else
39#define linux_load(x,y,z) LOADER_NOT_SUPPORT /* nop */
40#endif
41
42#endif /* LIB_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette