diff options
author | jhb <jhb@FreeBSD.org> | 2000-03-24 22:24:09 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2000-03-24 22:24:09 +0000 |
commit | 8c16543d9445bfdfdf39ec01f272921f5e88cde6 (patch) | |
tree | 82258ff99de9d670403b2228c717c4ffb80cb5ed /sys | |
parent | be6d92e8bf9eb4c46cca7d7ed3ff422e572a410c (diff) | |
download | FreeBSD-src-8c16543d9445bfdfdf39ec01f272921f5e88cde6.zip FreeBSD-src-8c16543d9445bfdfdf39ec01f272921f5e88cde6.tar.gz |
Update sysinstall to use struct uc_device instead of struct isa_device
for generating /boot/kernel.conf. Since this structure is shared, move
its definition out to a header file, just as struct isa_device was defined
in a header file. This fixes the sysinstall breakage in -current.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/i386/userconfig.c | 19 | ||||
-rw-r--r-- | sys/i386/include/uc_device.h | 73 |
2 files changed, 74 insertions, 18 deletions
diff --git a/sys/i386/i386/userconfig.c b/sys/i386/i386/userconfig.c index def75a3..6187db4 100644 --- a/sys/i386/i386/userconfig.c +++ b/sys/i386/i386/userconfig.c @@ -114,24 +114,6 @@ #define _I386_ISA_ISA_DEVICE_H_ -/* - * Per device structure. This just happens to resemble the old isa_device - * but that is by accident. It is NOT the same. - */ -struct uc_device { - int id_id; /* device id */ - char *id_name; /* device name */ - int id_iobase; /* base i/o address */ - u_int id_irq; /* interrupt request */ - int id_drq; /* DMA request */ - caddr_t id_maddr; /* physical i/o memory address on bus (if any)*/ - int id_msize; /* size of i/o memory */ - int id_unit; /* unit number */ - int id_flags; /* flags */ - int id_enabled; /* is device enabled */ - struct uc_device *id_next; /* used in uc_devlist in userconfig() */ -}; - #undef NPNP #define NPNP 0 @@ -141,6 +123,7 @@ struct uc_device { static MALLOC_DEFINE(M_DEVL, "uc_devlist", "uc_device lists in userconfig()"); +#include <machine/uc_device.h> static struct uc_device *uc_devlist; /* list read by kget to extract changes */ static struct uc_device *uc_devtab; /* fake uc_device table */ diff --git a/sys/i386/include/uc_device.h b/sys/i386/include/uc_device.h new file mode 100644 index 0000000..faa4e08 --- /dev/null +++ b/sys/i386/include/uc_device.h @@ -0,0 +1,73 @@ +/** + ** Copyright (c) 1995 + ** Michael Smith, msmith@freebsd.org. All rights reserved. + ** + ** This code contains a module marked : + + * Copyright (c) 1991 Regents of the University of California. + * All rights reserved. + * Copyright (c) 1994 Jordan K. Hubbard + * All rights reserved. + * Copyright (c) 1994 David Greenman + * All rights reserved. + * + * Many additional changes by Bruce Evans + * + * This code is derived from software contributed by the + * University of California Berkeley, Jordan K. Hubbard, + * David Greenman and Bruce Evans. + + ** As such, it contains code subject to the above copyrights. + ** The module and its copyright can be found below. + ** + ** Redistribution and use in source and binary forms, with or without + ** modification, are permitted provided that the following conditions + ** are met: + ** 1. Redistributions of source code must retain the above copyright + ** notice, this list of conditions and the following disclaimer as + ** the first lines of this file unmodified. + ** 2. Redistributions in binary form must reproduce the above copyright + ** notice, this list of conditions and the following disclaimer in the + ** documentation and/or other materials provided with the distribution. + ** 3. All advertising materials mentioning features or use of this software + ** must display the following acknowledgment: + ** This product includes software developed by Michael Smith. + ** 4. The name of the author may not be used to endorse or promote products + ** derived from this software without specific prior written permission. + ** + ** THIS SOFTWARE IS PROVIDED BY MICHAEL SMITH ``AS IS'' AND ANY EXPRESS OR + ** IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + ** OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + ** IN NO EVENT SHALL MICHAEL SMITH BE LIABLE FOR ANY DIRECT, INDIRECT, + ** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + ** NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + ** THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + ** + ** $FreeBSD$ + **/ + +#ifndef _I386_MACHINE_UC_DEVICE_H +#define _I386_MACHINE_UC_DEVICE_H + +/* + * Per device structure. This just happens to resemble the old isa_device + * but that is by accident. It is NOT the same. + */ +struct uc_device { + int id_id; /* device id */ + char *id_name; /* device name */ + int id_iobase; /* base i/o address */ + u_int id_irq; /* interrupt request */ + int id_drq; /* DMA request */ + caddr_t id_maddr; /* physical i/o memory address on bus (if any)*/ + int id_msize; /* size of i/o memory */ + int id_unit; /* unit number */ + int id_flags; /* flags */ + int id_enabled; /* is device enabled */ + struct uc_device *id_next; /* used in uc_devlist in userconfig() */ +}; + +#endif |