libi386.h (39902) | libi386.h (48083) |
---|---|
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 * | 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.7 1998/10/02 16:32:45 msmith Exp $ | 26 * $Id: libi386.h,v 1.8 1998/10/02 20:53:17 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 | 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 |
66u_int32_t bd_getbigeom(int bunit); /* return geometry in bootinfo format */ |
|
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 --- 13 unchanged lines hidden --- | 67extern int bd_bios2unit(int biosdev); /* xlate BIOS device -> biosdisk unit */ 68extern int bd_unit2bios(int unit); /* xlate biosdisk unit -> BIOS device */ 69extern int bd_getdev(struct i386_devdesc *dev); /* return dev_t for (dev) */ 70 71extern int i386_copyin(void *src, vm_offset_t dest, size_t len); 72extern int i386_copyout(vm_offset_t src, void *dest, size_t len); 73extern int i386_readin(int fd, vm_offset_t dest, size_t len); 74 --- 13 unchanged lines hidden --- |