2 * Mach Operating System
3 * Copyright (c) 1992, 1991 Carnegie Mellon University
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the
9 * software, derivative works or modified versions, and any portions
10 * thereof, and that both notices appear in supporting documentation.
12 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
16 * Carnegie Mellon requests users of this software to return to
18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 * School of Computer Science
20 * Carnegie Mellon University
21 * Pittsburgh PA 15213-3890
23 * any improvements or extensions that they make and grant Carnegie Mellon
24 * the rights to redistribute these changes.
26 * from: Mach, Revision 2.2 92/04/04 11:35:03 rpd
27 * $FreeBSD: src/sys/i386/boot/biosboot/boot.h,v 1.25 1999/08/28 00:43:12 peter Exp $
28 * $DragonFly: src/sys/i386/boot/biosboot/Attic/boot.h,v 1.3 2003/08/07 21:17:20 dillon Exp $
31 #include <sys/param.h>
34 #include <vfs/ufs/fs.h>
35 #include <vfs/ufs/quota.h>
36 #include <vfs/ufs/inode.h>
38 #define RB_DUAL 0x40000 /* XXX */
39 #define RB_PROBEKBD 0x80000 /* XXX */
44 extern struct inode inode;
45 extern int dosdev, unit, slice, part, maj, boff, poff;
46 extern unsigned tw_chars;
48 extern struct disklabel disklabel;
52 void real_to_prot(void);
53 void prot_to_real(void);
55 void startprog(unsigned int physaddr, int howto, int bootdev,
56 /* XXX struct bootinfo * */ unsigned int bootinfo);
57 void pcpy(const void *src, void *dst, size_t count);
60 int biosread(int dev, int cyl, int head, int sec, int nsec, void *offset);
64 int get_diskinfo(int drive);
65 int memsize(int extended);
66 void vesa_mode(int mode);
76 void devread(char *iodest, int sector, int cnt);
80 void printf(const char *format, ...);
84 int strcmp(const char *s1, const char *s2);
86 int strcasecmp(const char *s1, const char *s2);
88 void bcopy(const void *from, void *to, size_t len);
91 /* probe_keyboard.c */
92 int probe_keyboard(void);
95 void serial_putc(int ch);
96 int serial_getc(void);
97 int serial_ischar(void);
98 void init_serial(void);
101 void xread(char *addr, int size);
102 void read(char *buffer, int count);