浏览代码

[misc] Remove long-obsolete header files dating from Etherboot 5.4

tags/v0.9.8
Michael Brown 15 年前
父节点
当前提交
5e51aaccaa
共有 2 个文件被更改,包括 0 次插入70 次删除
  1. 0
    28
      src/include/debug.h
  2. 0
    42
      src/include/lib.h

+ 0
- 28
src/include/debug.h 查看文件

@@ -1,28 +0,0 @@
1
-#ifndef DEBUG_H
2
-#define DEBUG_H
3
-
4
-//#include <lib.h>
5
-extern int last_putchar;
6
-
7
-/* Defining DEBUG_THIS before including this file enables debug() macro
8
- * for the file. DEBUG_ALL is for global control. */
9
-
10
-#if DEBUG_THIS || DEBUG_ALL
11
-#define DEBUG 1
12
-#else
13
-#undef DEBUG
14
-#endif
15
-
16
-#if DEBUG
17
-# define debug(...) \
18
-    ((last_putchar=='\n' ? printf("%s: ", __FUNCTION__) : 0), \
19
-    printf(__VA_ARGS__))
20
-# define debug_hexdump hexdump
21
-#else
22
-# define debug(...) /* nothing */
23
-# define debug_hexdump(...) /* nothing */
24
-#endif
25
-
26
-#define debugx debug
27
-
28
-#endif /* DEBUG_H */

+ 0
- 42
src/include/lib.h 查看文件

@@ -1,42 +0,0 @@
1
-#ifndef LIB_H
2
-#define LIB_H
3
-
4
-#include <stdint.h>
5
-
6
-int getline(char *buf, int max);
7
-
8
-extern struct pci_device *dev_list;
9
-extern int n_devs;
10
-
11
-extern void pci_init(void);
12
-extern struct pci_device *pci_find_device(int vendor, int device, int devclass,
13
-int prog_if, int index);
14
-
15
-void *calloc(size_t nmemb, size_t size);
16
-void *realloc(void *ptr, size_t size);
17
-
18
-char *strdup(const char *s);
19
-
20
-int isspace(int c);
21
-
22
-unsigned long long simple_strtoull(const char *cp,char **endp,unsigned int base);
23
-unsigned long long strtoull_with_suffix(const char *cp,char **endp,unsigned int base);
24
-
25
-unsigned int get_le32(const unsigned char *);
26
-unsigned int get_le16(const unsigned char *);
27
-void hexdump(const void *p, unsigned int len);
28
-
29
-long long simple_strtoll(const char *cp,char **endp,unsigned int base);
30
-
31
-#define LOADER_NOT_SUPPORT 0xbadf11e
32
-
33
-struct sys_info;
34
-int elf_load(struct sys_info *, const char *filename, const char *cmdline);
35
-
36
-#if LINUX_LOADER
37
-int 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 */

正在加载...
取消
保存