From owner-freebsd-sparc64@FreeBSD.ORG Mon Jul 12 08:55:33 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9A2616A4CE for ; Mon, 12 Jul 2004 08:55:33 +0000 (GMT) Received: from ns.kt-is.co.kr (ns.kt-is.co.kr [211.218.149.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AB6343D1F for ; Mon, 12 Jul 2004 08:55:33 +0000 (GMT) (envelope-from yongari@kt-is.co.kr) Received: from michelle.kt-is.co.kr (ns2.kt-is.co.kr [220.76.118.193]) (authenticated bits=128) by ns.kt-is.co.kr (8.12.10/8.12.10) with ESMTP id i6C8o8Ah034069 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Mon, 12 Jul 2004 17:50:08 +0900 (KST) Received: from michelle.kt-is.co.kr (localhost.kt-is.co.kr [127.0.0.1]) i6C8tTjH001803 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 12 Jul 2004 17:55:30 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Received: (from yongari@localhost) by michelle.kt-is.co.kr (8.12.10/8.12.10/Submit) id i6C8tTjv001802 for freebsd-sparc64@freebsd.org; Mon, 12 Jul 2004 17:55:29 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Date: Mon, 12 Jul 2004 17:55:29 +0900 From: Pyun YongHyeon To: freebsd-sparc64@freebsd.org Message-ID: <20040712085529.GD656@kt-is.co.kr> References: <20040712081042.GB656@kt-is.co.kr> <20040712081700.GA43691@ida.interface-business.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20040712081700.GA43691@ida.interface-business.de> User-Agent: Mutt/1.4.1i X-Filter-Version: 1.11a (ns.kt-is.co.kr) Subject: Re: SBus/EBus auxio driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: yongari@kt-is.co.kr List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jul 2004 08:55:34 -0000 On Mon, Jul 12, 2004 at 10:17:00AM +0200, Joerg Wunsch wrote: > As Pyun YongHyeon wrote: > > > This is an auxio driver for SBus/EBus based sparc64 systems. > > The driver controls front panel LED. By setting an OID > > "machdep.auxio_led_blink" with sysctl(8), the LED is made to > > blink based on system load average. > > I once wrote my own auxio driver, basically as a first attempt to get > acquainted to FreeBSD/sparc64 drivers at all, since is really > a fairly simple hardware to handle. > > Now that I've noticed FreeBSD's led(4) driver, I think it would be > done better by registering a led instance on auxio, as opposed to > hardcoding some functionality into the driver. > Yes, LED itself is very simple. But, as you know, there are other auxio ports are defined in PCI address space.(SBus has a just one auxio, LED.) I can't find available documentation for these I/O ports. > Anyway, my (currently stalled) attempts to access all the I²C hardware > using a pcf(4) instance of SUNW,envctrl made me dismiss the idea of an > auxio driver: while auxio can only drive one out of the six LEDs on > the front panel of my E450, the I²C-controlled parallel port could > drive all of them. All the remaining ports assigned to are > quite uninteresting anyway. > It seems that led(4) is for user-land applications and just for LED only. I guess additional coding for auxio(4) is possible if I can get more documentation. Don't know the existence of iicbus(4), atm. Ultra2 doesn't have it. > -- > J"org Wunsch Unix support engineer > joerg_wunsch@interface-systems.de http://www.interface-systems.de/~j/ Regards, Pyun YongHyeon -- Pyun YongHyeon