A number of minor changes for NDIS. (OK'd by phil)
1. Removed the makeoptions line from arch/i386/conf/GENERIC. Now ndis_driver_data.h is simply copied into the kernel build directory instead of editing the config file to specify its location. 2. Uncommented lines in files.i386 and files.pci related to NDIS. NDIS will not be compiled into the kernel unless the two lines are uncommented from GENERIC (I checked using nm), so there is no reason for this to be commented out. 3. Added ndiscvt to usr.sbin/Makefile.
This commit is contained in:
parent
1736325575
commit
be97fc5a95
@ -1,4 +1,4 @@
|
||||
# $NetBSD: GENERIC,v 1.743 2006/04/15 17:48:23 jmmv Exp $
|
||||
# $NetBSD: GENERIC,v 1.744 2006/04/18 16:49:19 rittera Exp $
|
||||
#
|
||||
# GENERIC machine description file
|
||||
#
|
||||
@ -22,7 +22,7 @@ include "arch/i386/conf/std.i386"
|
||||
|
||||
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#ident "GENERIC-$Revision: 1.743 $"
|
||||
#ident "GENERIC-$Revision: 1.744 $"
|
||||
|
||||
maxusers 32 # estimated number of users
|
||||
|
||||
@ -146,8 +146,7 @@ options COMPAT_FREEBSD # binary compatibility with FreeBSD
|
||||
#options COMPAT_MACH # binary compatibility with Mach binaries
|
||||
#options COMPAT_DARWIN # binary compatibility with Darwin binaries
|
||||
#options EXEC_MACHO # exec MACH-O binaries
|
||||
#options COMPAT_NDIS # NDIS network driver
|
||||
#makeoptions CFLAGS+="-DNDIS_DRV_DATA=\"ndis_data\""
|
||||
#options COMPAT_NDIS # NDIS network driver
|
||||
#options COMPAT_PECOFF # kernel support to run Win32 apps
|
||||
options COMPAT_BSDPTY # /dev/[pt]ty?? ptys.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: files.i386,v 1.285 2006/04/04 03:13:12 gdamore Exp $
|
||||
# $NetBSD: files.i386,v 1.286 2006/04/18 16:49:19 rittera Exp $
|
||||
#
|
||||
# new style config file for i386 architecture
|
||||
#
|
||||
@ -384,7 +384,7 @@ file arch/i386/i386/freebsd_sigcode.S compat_freebsd
|
||||
file arch/i386/i386/freebsd_syscall.c compat_freebsd
|
||||
|
||||
# NDIS compatibilty (COMPAT_NDIS)
|
||||
# include "compat/ndis/files.ndis"
|
||||
include "compat/ndis/files.ndis"
|
||||
|
||||
# Win32 binary compatibility (COMPAT_PECOFF)
|
||||
include "compat/pecoff/files.pecoff"
|
||||
|
@ -35,7 +35,7 @@
|
||||
__FBSDID("$FreeBSD: src/sys/dev/if_ndis/if_ndis.c,v 1.69.2.6 2005/03/31 04:24:36 wpaul Exp $");
|
||||
#endif
|
||||
#ifdef __NetBSD__
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_ndis.c,v 1.3 2006/03/31 03:20:20 rittera Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_ndis.c,v 1.4 2006/04/18 16:49:19 rittera Exp $");
|
||||
#endif
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
@ -123,7 +123,7 @@ __KERNEL_RCSID(0, "$NetBSD: if_ndis.c,v 1.3 2006/03/31 03:20:20 rittera Exp $");
|
||||
#define NDIS_IMAGE
|
||||
#define NDIS_REGVALS
|
||||
|
||||
#include NDIS_DRV_DATA
|
||||
#include "ndis_driver_data.h"
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
int ndis_attach (device_t);
|
||||
|
@ -75,7 +75,7 @@ __FBSDID("$FreeBSD: src/sys/dev/if_ndis/if_ndis_pci.c,v 1.8.2.3 2005/03/31 04:24
|
||||
#include <compat/ndis/cfg_var.h>
|
||||
#include <dev/if_ndis/if_ndisvar.h>
|
||||
|
||||
#include NDIS_DRV_DATA
|
||||
#include "ndis_driver_data.h"
|
||||
|
||||
#ifdef __NetBSD__
|
||||
#ifndef NDIS_LKM
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: files.pci,v 1.249 2006/04/17 17:31:43 rpaulo Exp $
|
||||
# $NetBSD: files.pci,v 1.250 2006/04/18 16:49:19 rittera Exp $
|
||||
#
|
||||
# Config file and device description for machine-independent PCI code.
|
||||
# Included by ports that need it. Requires that the SCSI files be
|
||||
@ -767,10 +767,10 @@ attach re at pci with re_pci
|
||||
file dev/pci/if_re_pci.c re_pci
|
||||
|
||||
# Windows NDIS drivers (Experimental)
|
||||
#device ndis
|
||||
#attach ndis at pci
|
||||
#file dev/if_ndis/if_ndis.c
|
||||
#file dev/if_ndis/if_ndis_pci.c
|
||||
device ndis
|
||||
attach ndis at pci
|
||||
file dev/if_ndis/if_ndis.c ndis
|
||||
file dev/if_ndis/if_ndis_pci.c ndis
|
||||
|
||||
# Intel PRO/Wireless 2100
|
||||
device ipw: ifnet, arp, wlan, firmload
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.212 2006/03/02 17:34:17 christos Exp $
|
||||
# $NetBSD: Makefile,v 1.213 2006/04/18 16:49:19 rittera Exp $
|
||||
# from: @(#)Makefile 5.20 (Berkeley) 6/12/93
|
||||
|
||||
.include <bsd.own.mk>
|
||||
@ -12,7 +12,7 @@ SUBDIR= ac accton altq amd apm apmd arp bad144 bind bootp catman \
|
||||
kgmon lastlogin link lmcconfig lpr mailwrapper makefs \
|
||||
map-mbone mdconfig memswitch mlxctl mopd mountd moused \
|
||||
mrinfo mrouted mscdlabel mtrace \
|
||||
mtree ndbootd netgroup_mkdb nfsd ntp pcictl pkg_install pppd \
|
||||
mtree ndbootd ndiscvt netgroup_mkdb nfsd ntp pcictl pkg_install pppd \
|
||||
pstat pwd_mkdb postinstall powerd quot quotacheck quotaon \
|
||||
rarpd rbootd rdate \
|
||||
repquota rmt rpc.bootparamd rpc.lockd rpc.pcnfsd \
|
||||
|
@ -2,7 +2,9 @@
|
||||
|
||||
.PATH: ${.CURDIR}/../../sys/compat/ndis
|
||||
|
||||
.if ${MACHINE} == "i386"
|
||||
PROG= ndiscvt
|
||||
.endif
|
||||
SRCS= ndiscvt.c
|
||||
SRCS+= subr_pe.c
|
||||
SRCS+= inf.c inf-token.l inf-parse.y
|
||||
|
@ -36,7 +36,7 @@
|
||||
__FBSDID("$FreeBSD: src/usr.sbin/ndiscvt/inf-parse.y,v 1.2 2004/01/02 04:31:06 wpaul Exp $");
|
||||
#endif
|
||||
#ifdef __NetBSD__
|
||||
__RCSID("$NetBSD: inf-parse.y,v 1.2 2006/03/30 23:21:06 rittera Exp $");
|
||||
__RCSID("$NetBSD: inf-parse.y,v 1.3 2006/04/18 16:49:19 rittera Exp $");
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
||||
__FBSDID("$FreeBSD: src/usr.sbin/ndiscvt/inf-token.l,v 1.3 2004/01/11 21:10:35 mdodd Exp $");
|
||||
#endif
|
||||
#ifdef __NetBSD__
|
||||
__RCSID("$NetBSD: inf-token.l,v 1.2 2006/03/30 23:21:06 rittera Exp $");
|
||||
__RCSID("$NetBSD: inf-token.l,v 1.3 2006/04/18 16:49:19 rittera Exp $");
|
||||
#endif
|
||||
|
||||
#include <regex.h>
|
||||
|
@ -35,7 +35,7 @@
|
||||
__FBSDID("$FreeBSD: src/usr.sbin/ndiscvt/inf.c,v 1.13.2.1 2005/02/18 16:30:10 wpaul Exp $");
|
||||
#endif
|
||||
#ifdef __NetBSD__
|
||||
__RCSID("$NetBSD: inf.c,v 1.2 2006/03/30 23:21:06 rittera Exp $");
|
||||
__RCSID("$NetBSD: inf.c,v 1.3 2006/04/18 16:49:19 rittera Exp $");
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: inf.h,v 1.1 2006/03/30 23:00:02 rittera Exp $
|
||||
* $Id: inf.h,v 1.2 2006/04/18 16:49:19 rittera Exp $
|
||||
*
|
||||
* $FreeBSD: src/usr.sbin/ndiscvt/inf.h,v 1.1 2003/12/11 22:38:14 wpaul Exp $
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user