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.6 1998/09/26 10:51:38 dfr 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
66extern int bd_bios2unit(int biosdev); /* xlate BIOS device -> biosdisk unit */
67extern int bd_unit2bios(int unit); /* xlate biosdisk unit -> BIOS device */
68extern int bd_getdev(struct i386_devdesc *dev); /* return dev_t for (dev) */
69
70extern int i386_copyin(void *src, vm_offset_t dest, size_t len);
71extern int i386_copyout(vm_offset_t src, void *dest, size_t len);
72extern int i386_readin(int fd, vm_offset_t dest, size_t len);
73
74extern int getbasemem(void);
75extern int getextmem(void);
76extern vm_offset_t memtop;
77
78extern void gateA20(void);
79
80extern int i386_autoload(void);
81
--- 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.6 1998/09/26 10:51:38 dfr 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
66extern int bd_bios2unit(int biosdev); /* xlate BIOS device -> biosdisk unit */
67extern int bd_unit2bios(int unit); /* xlate biosdisk unit -> BIOS device */
68extern int bd_getdev(struct i386_devdesc *dev); /* return dev_t for (dev) */
69
70extern int i386_copyin(void *src, vm_offset_t dest, size_t len);
71extern int i386_copyout(vm_offset_t src, void *dest, size_t len);
72extern int i386_readin(int fd, vm_offset_t dest, size_t len);
73
74extern int getbasemem(void);
75extern int getextmem(void);
76extern vm_offset_t memtop;
77
78extern void gateA20(void);
79
80extern int i386_autoload(void);
81
--- 13 unchanged lines hidden ---