From owner-cvs-all Wed Nov 22 16:28:46 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id F1D0A37B4CF; Wed, 22 Nov 2000 16:28:43 -0800 (PST) Received: (from wpaul@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id QAA45004; Wed, 22 Nov 2000 16:28:43 -0800 (PST) (envelope-from wpaul@FreeBSD.org) Message-Id: <200011230028.QAA45004@freefall.freebsd.org> From: Bill Paul Date: Wed, 22 Nov 2000 16:28:43 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/pci if_pcn.c if_pcnreg.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG wpaul 2000/11/22 16:28:43 PST Modified files: sys/pci if_pcn.c if_pcnreg.h Log: Update the probe some more to deal with 16/32 bit issues. If the chip is already in 32-bit mode, we need to be able to detect this and still read the chip ID code. Detecting 32-bit mode is actually a little tricky, since we want to avoid turning it on accidentally. The easiest way to do it is to just try and read the PCI subsystem ID from the bus control registers using 16-bit accesses and compare that with the value read from PCI config space. If they match, then we know we're in 16-bit mode, otherwise we assume 32-bit mode. Revision Changes Path 1.13 +33 -4 src/sys/pci/if_pcn.c 1.6 +2 -2 src/sys/pci/if_pcnreg.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message