From owner-freebsd-net@FreeBSD.ORG Tue Nov 4 11:43:19 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA37216A4CF for ; Tue, 4 Nov 2003 11:43:19 -0800 (PST) Received: from pandora.cs.kun.nl (pandora.cs.kun.nl [131.174.33.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19F3843FBF for ; Tue, 4 Nov 2003 11:43:18 -0800 (PST) (envelope-from adridg@cs.kun.nl) Received: from localhost by pandora.cs.kun.nl id hA4Jh0qs022913 (8.12.10/3.58); Tue, 4 Nov 2003 20:43:15 +0100 (MET) From: Adriaan de Groot To: freebsd-net@freebsd.org Date: Tue, 4 Nov 2003 20:43:12 +0100 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200311042043.12871.adridg@cs.kun.nl> Subject: if_ed(4) & kvtop() X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2003 19:43:19 -0000 [please bear with my relative n00bness; i'm trying to cut my teeth on some driver hackery] The ne2k driver ed(4) is disabled in amd64's kernel because it doesn't even compile. I gather that its use of kvtop() is deprecated as well (from the busdma project page). The pointer size problems with this driver I can deal with - there are some local variables declared int which need to be c(?)addr_t instead. But I have no idea what to do with kvtop(). Some googling yields hits about it being taken out, and about people being confused and the handbook section on the PCI bus containing an outdated section. But nothing about what the function does (well, I can guess virtual-to-physical address translation for kernelspace) or what is supposed to replace it. Barring a cvs log on some driver that's already made the transition to not using kvtop(), is there any documentation available on the issue? Or a hint, at least?