Adjust the #ifdef KERNEL so that pnp_cinfo is available for sbin/dset.c

Other ways around this might be to #define KERNEL in dset.c for the
"i386/isa/pnp.h" include.
This commit is contained in:
Peter Wemm 1997-09-20 06:26:28 +00:00
parent 87b462a276
commit ab71361364
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=29635

View File

@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: pnp.h,v 1.2 1997/09/18 08:04:13 jmg Exp $
* $Id: pnp.h,v 1.3 1997/09/19 15:20:25 jmg Exp $
*/
#ifndef _I386_ISA_PNP_H_
@ -228,10 +228,6 @@
#define _32BIT_FIXED_LOC_DESC 0x6
#define LG_RES_RESERVED 0x7-0x7f
#ifdef KERNEL
#include <i386/isa/isa_device.h>
/*
* pnp_cinfo contains Configuration Information. They are used
* to communicate to the device driver the actual configuration
@ -258,6 +254,10 @@ struct pnp_cinfo {
} mem[4];
};
#ifdef KERNEL
#include <i386/isa/isa_device.h>
struct pnp_device {
char *pd_name;
char * (*pd_probe ) (u_long csn, u_long vendor_id);