|
@@ -1,6 +1,26 @@
|
1
|
1
|
#ifndef ETHERBOOT_H
|
2
|
2
|
#define ETHERBOOT_H
|
3
|
3
|
|
|
4
|
+/*
|
|
5
|
+ * Standard includes that we always want
|
|
6
|
+ *
|
|
7
|
+ */
|
|
8
|
+
|
|
9
|
+#include "compiler.h"
|
|
10
|
+#include "stddef.h"
|
|
11
|
+#include "stdint.h"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+/*
|
|
15
|
+ * IMPORTANT!!!!!!!!!!!!!!
|
|
16
|
+ *
|
|
17
|
+ * Everything below this point is cruft left over from older versions
|
|
18
|
+ * of Etherboot. Do not add *anything* below this point. Things are
|
|
19
|
+ * gradually being moved to individual header files.
|
|
20
|
+ *
|
|
21
|
+ */
|
|
22
|
+
|
|
23
|
+
|
4
|
24
|
#include <stdarg.h>
|
5
|
25
|
#include "osdep.h"
|
6
|
26
|
|
|
@@ -205,9 +225,6 @@ extern long rfc2131_sleep_interval P((long base, int exp));
|
205
|
225
|
extern long rfc1112_sleep_interval P((long base, int exp));
|
206
|
226
|
extern void cleanup P((void));
|
207
|
227
|
|
208
|
|
-/* config.c */
|
209
|
|
-extern void print_config(void);
|
210
|
|
-
|
211
|
228
|
/* osloader.c */
|
212
|
229
|
/* Be careful with sector_t it is an unsigned long long on x86 */
|
213
|
230
|
typedef uint64_t sector_t;
|
|
@@ -271,15 +288,6 @@ extern int elf_start(unsigned long machine, unsigned long entry, unsigned long p
|
271
|
288
|
extern unsigned long currticks P((void));
|
272
|
289
|
extern void exit P((int status));
|
273
|
290
|
|
274
|
|
-/* serial.c */
|
275
|
|
-extern int serial_getc P((void));
|
276
|
|
-extern void serial_putc P((int));
|
277
|
|
-extern int serial_ischar P((void));
|
278
|
|
-extern int serial_init P((void));
|
279
|
|
-extern void serial_fini P((void));
|
280
|
|
-
|
281
|
|
-/* floppy.c */
|
282
|
|
-extern int bootdisk P((int dev,int part));
|
283
|
291
|
|
284
|
292
|
/***************************************************************************
|
285
|
293
|
External variables
|
|
@@ -309,14 +317,6 @@ extern int freebsd_howto;
|
309
|
317
|
extern char freebsd_kernel_env[FREEBSD_KERNEL_ENV_SIZE];
|
310
|
318
|
#endif
|
311
|
319
|
|
312
|
|
-/* bootmenu.c */
|
313
|
|
-
|
314
|
|
-/* osloader.c */
|
315
|
|
-
|
316
|
|
-/* created by linker */
|
317
|
|
-extern char _virt_start[], _text[], _etext[], _text16[], _etext16[];
|
318
|
|
-extern char _data[], _edata[], _bss[], _ebss[], _end[];
|
319
|
|
-
|
320
|
320
|
|
321
|
321
|
/*
|
322
|
322
|
* Local variables:
|