1/*-
2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
--- 9 unchanged lines hidden (view full) ---
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $Id: libi386.h,v 1.5 1998/09/17 23:52:10 msmith Exp $
27 */
28
29
30/*
31 * i386 fully-qualified device descriptor.
32 * Note, this must match the 'struct devdesc' declaration
33 * in bootstrap.h.
34 */
--- 23 unchanged lines hidden (view full) ---
58
59extern struct devdesc currdev; /* our current device */
60
61#define MAXDEV 31 /* maximum number of distinct devices */
62
63/* exported devices XXX rename? */
64extern struct devsw biosdisk;
65
66/* from crt module */
67#if 0 /* BTX */
68extern void vpbcopy(void *src, vm_offset_t dest, size_t size);
69extern void pvbcopy(vm_offset_t src, void *dest, size_t size);
70extern void pbzero(vm_offset_t dest, size_t size);
71extern vm_offset_t vtophys(void *addr);
72#endif
73
74extern int i386_copyin(void *src, vm_offset_t dest, size_t len);
75extern int i386_copyout(vm_offset_t src, void *dest, size_t len);
76extern int i386_readin(int fd, vm_offset_t dest, size_t len);
77
78#if 0 /* BTX */
79extern void startprog(vm_offset_t entry, int argc, u_int32_t *argv, vm_offset_t stack);
80#endif
81
82extern int getbasemem(void);
83extern int getextmem(void);
84extern vm_offset_t memtop;
85
86extern void gateA20(void);
87
88extern int i386_autoload(void);
89
--- 13 unchanged lines hidden ---
2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
--- 9 unchanged lines hidden (view full) ---
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $Id: libi386.h,v 1.5 1998/09/17 23:52:10 msmith Exp $
27 */
28
29
30/*
31 * i386 fully-qualified device descriptor.
32 * Note, this must match the 'struct devdesc' declaration
33 * in bootstrap.h.
34 */
--- 23 unchanged lines hidden (view full) ---
58
59extern struct devdesc currdev; /* our current device */
60
61#define MAXDEV 31 /* maximum number of distinct devices */
62
63/* exported devices XXX rename? */
64extern struct devsw biosdisk;
65
66/* from crt module */
67#if 0 /* BTX */
68extern void vpbcopy(void *src, vm_offset_t dest, size_t size);
69extern void pvbcopy(vm_offset_t src, void *dest, size_t size);
70extern void pbzero(vm_offset_t dest, size_t size);
71extern vm_offset_t vtophys(void *addr);
72#endif
73
74extern int i386_copyin(void *src, vm_offset_t dest, size_t len);
75extern int i386_copyout(vm_offset_t src, void *dest, size_t len);
76extern int i386_readin(int fd, vm_offset_t dest, size_t len);
77
78#if 0 /* BTX */
79extern void startprog(vm_offset_t entry, int argc, u_int32_t *argv, vm_offset_t stack);
80#endif
81
82extern int getbasemem(void);
83extern int getextmem(void);
84extern vm_offset_t memtop;
85
86extern void gateA20(void);
87
88extern int i386_autoload(void);
89
--- 13 unchanged lines hidden ---