From owner-freebsd-hackers Thu Dec 21 8:26:20 2000 From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 21 08:26:18 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F84A37B400 for ; Thu, 21 Dec 2000 08:26:18 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id E97C66E3296 for ; Thu, 21 Dec 2000 08:25:46 -0800 (PST) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id RAA13165; Thu, 21 Dec 2000 17:24:11 +0100 (CET) (envelope-from des@ofug.org) Sender: des@ofug.org X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: seebs@plethora.net (Peter Seebach) Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Supporting VirtualPC... References: <200012211613.KAA26240@guild.plethora.net> From: Dag-Erling Smorgrav Date: 21 Dec 2000 17:24:10 +0100 In-Reply-To: seebs@plethora.net's message of "Thu, 21 Dec 2000 10:13:06 -0600" Message-ID: Lines: 16 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG seebs@plethora.net (Peter Seebach) writes: > Yeah, but in an ideal world, I wouldn't be calling strcmp on the CPU > type every time the ethernet card interrupts... Is there a good place to > add a dummy variable that can be tested? Perhaps md_var.h could have > #ifdef VPC_CPU > int cpu_is_vpc; > #endif > and not break anyone's heart? No. Check cpu_vendor at probe/attach time and set a flag in the interface's softc that indicates that it needs to be treated as a VPC emulated interface. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message