From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 4 08:20:01 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AAEDF16A40A for ; Sun, 4 Feb 2007 08:20:01 +0000 (UTC) (envelope-from freebsd-hackers@dino.sk) Received: from bsd.dino.sk (bsd.dino.sk [213.215.72.60]) by mx1.freebsd.org (Postfix) with ESMTP id 3A6EA13C474 for ; Sun, 4 Feb 2007 08:20:01 +0000 (UTC) (envelope-from freebsd-hackers@dino.sk) Received: from lex.dino.sk (home.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by bsd.dino.sk with esmtp; Sun, 04 Feb 2007 09:24:43 +0100 id 00000074.45C5984B.00016AFA From: Milan Obuch To: freebsd-hackers@freebsd.org Date: Sun, 4 Feb 2007 09:18:36 +0100 User-Agent: KMail/1.9.4 References: <200723171021.907086@poppa> <200702031940.00128.freebsd-hackers@dino.sk> <45c5270f.m+ovKhgdkb0p47OA%perryh@pluto.rain.com> In-Reply-To: <45c5270f.m+ovKhgdkb0p47OA%perryh@pluto.rain.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702040918.37825.freebsd-hackers@dino.sk> Subject: Re: Geode SC1100 i2c bus X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Feb 2007 08:20:01 -0000 On Sunday 04 February 2007 01:21, perryh@pluto.rain.com wrote: > > > The ACB is at the same level than Uart, so I had a look at sio > > > source and got a big headache. I'm not really used to drivers > > > nor kernel programming stuff, that's why I need your help. > > > > Why do you compare ACB and UART? In FreeBSD, sio is serial i/o > > controller, not superIO, maybe you are confused... ACB and UART > > does not have much in common... > > As I read the OP, both the ACB and the serial are in the same chip > (the superIO), so it would seem reasonable to expect that the method > of accessing the device registers in the (currently unsupported) ACB > might be similar to the method of accessing the device registers in > the (supported) serial port. > You are right from the point of view 'how to access registers'. But what OP wrote could be understand another way, too - he tried to modify sio to create acb driver, which would not achieve the correct results. There is i2c infrastructure in FreeBSD, acb driver should fit into its place there and it is not that easy - I tried to understand it, but nobody could/was willing to/did not care to help me understand it. > Note I said "reasonable" -- it may not be "accurate" -- and > this sort of analysis applies only to getting at the hardware. > Certainly the means of communicating with the rest of the OS > would be different, unless one wants the ACB to show up as sio7 > or some such :) > At hardware level, I consider it to be 'accurate', at OS level, they are completely different. Globally, at looks to me we basically do not disagree on subject, but that's just langauage ambiguity out there... Regards, Milan -- No need to mail me directly. Just reply to mailing list, please.