From owner-freebsd-current Wed Jul 25 13: 8:35 2001 Delivered-To: freebsd-current@freebsd.org Received: from po3.wam.umd.edu (po3.wam.umd.edu [128.8.10.165]) by hub.freebsd.org (Postfix) with ESMTP id A97DB37B40D for ; Wed, 25 Jul 2001 13:08:30 -0700 (PDT) (envelope-from culverk@wam.umd.edu) Received: from rac2.wam.umd.edu (IDENT:root@rac2.wam.umd.edu [128.8.10.142]) by po3.wam.umd.edu (8.9.3/8.9.3) with ESMTP id QAA02800; Wed, 25 Jul 2001 16:08:27 -0400 (EDT) Received: from rac2.wam.umd.edu (IDENT:sendmail@localhost [127.0.0.1]) by rac2.wam.umd.edu (8.9.3/8.9.3) with SMTP id QAA17611; Wed, 25 Jul 2001 16:08:27 -0400 (EDT) Received: from localhost (culverk@localhost) by rac2.wam.umd.edu (8.9.3/8.9.3) with ESMTP id QAA17607; Wed, 25 Jul 2001 16:08:27 -0400 (EDT) X-Authentication-Warning: rac2.wam.umd.edu: culverk owned process doing -bs Date: Wed, 25 Jul 2001 16:08:27 -0400 (EDT) From: Kenneth Wayne Culver To: Juha.Nurmela@quicknet.inet.fi Cc: freebsd-current@freebsd.org Subject: Re: driver writing newbie In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I havn't checked, but I'll probably do that soon. Ken On Wed, 25 Jul 2001 Juha.Nurmela@quicknet.inet.fi wrote: > > > On Wed, 25 Jul 2001, Kenneth Wayne Culver wrote: > > > Well, I could do that, but I'd rather write a complete driver with all the > > regular interfaces... (open, close, ioctl, and a specific major/minor in > > the kernel, I'm going to add other chips to this driver eventually) The > > way you are suggesting just opens /dev/io and uses inb and outb to do some > > hacking around I believe. > > You are absolutely correct. I was not suggesting this as the proper > approach, but as a throw-away checkpoint only (the mapping registers > seemed inconsistent between OS/motherboard combinations). I suppose > 0x70 is for HWMon and 0x90 is for the SMBus function, in Via 686B. > > Have you checked NetBSD, the seem to have a framework for temperature > alarms etc. > > > Juha > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message