From owner-freebsd-current Wed Sep 27 6:45:46 2000 Delivered-To: freebsd-current@freebsd.org Received: from lucifer.ninth-circle.org (lucifer.bart.nl [194.158.168.74]) by hub.freebsd.org (Postfix) with ESMTP id 23E6F37B422 for ; Wed, 27 Sep 2000 06:45:32 -0700 (PDT) Received: (from asmodai@localhost) by lucifer.ninth-circle.org (8.11.0/8.9.3) id e8RDjNk66524; Wed, 27 Sep 2000 15:45:23 +0200 (CEST) (envelope-from asmodai) Date: Wed, 27 Sep 2000 15:45:23 +0200 From: Jeroen Ruigrok van der Werven To: Archie Cobbs Cc: freebsd-current@FreeBSD.ORG Subject: Re: smbus PCI device? Message-ID: <20000927154523.P10657@lucifer.bart.nl> References: <200009270105.SAA21356@bubba.whistle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200009270105.SAA21356@bubba.whistle.com>; from archie@whistle.com on Tue, Sep 26, 2000 at 06:05:08PM -0700 Organisation: VIA Net.Works The Netherlands Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -On [20000927 03:10], Archie Cobbs (archie@whistle.com) wrote: >I'm trying to understand this iic/smbus stuff in order to write >a driver for some new hardware. The PCI bus shows this device: > > found-> vendor=0x8086, dev=0x2413, revid=0x02 > class=0c-05-00, hdrtype=0x00, mfdev=0 > ^^^^^^^^ > subordinatebus=0 secondarybus=0 > intpin=b, irq=10 > map[20]: type 1, range 32, base 0000fe00, size 4 pciconf -l will probably show the class as 0x0c0500 I guess? >The class/sub-class/programming interface (highlighted above) >indicates a SMBus device as specified by PCI 2.2. > >However, I'm not sure what that is. Adding the "smbus" device and >friends to the kernel config doesn't cause this device to be >detected. You'd think all I needed to do then would be to add the >device ID to a list in the smbus driver somewhere, but I can't find >that list. Does "smbus_pci.c" not exist yet? Normally, that would be enough yes. I think you want: src/sys/dev/iicbus and src/sys/dev/smbus >Of course, you can't download the PCI 2.2 spec without being a >"member". Cute eh? >Am I going down the right path trying to write a driver for >this device? Normally adding the vid/rid combo should at least detect it yes. -- Jeroen Ruigrok van der Werven Network- and systemadministrator VIA Net.Works The Netherlands BSD: Technical excellence at its best http://www.via-net-works.nl Grant me the serenity to accept the things I cannot change, courage to change the things I can, and wisdom to know the difference... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message