From owner-freebsd-arch@FreeBSD.ORG Fri Jul 4 09:22:45 2008 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B19801065677; Fri, 4 Jul 2008 09:22:45 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id 702F78FC21; Fri, 4 Jul 2008 09:22:45 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id C82851CC64; Fri, 4 Jul 2008 11:22:44 +0200 (CEST) Date: Fri, 4 Jul 2008 11:22:44 +0200 From: Ed Schouten To: Peter Jeremy Message-ID: <20080704092244.GY14567@hoeg.nl> References: <20080702190901.GS14567@hoeg.nl> <20080703193406.GS29380@server.vk2pj.dyndns.org> <20080703205220.GW14567@hoeg.nl> <20080704022125.GA32475@server.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sKosZo66cxuwvnFI" Content-Disposition: inline In-Reply-To: <20080704022125.GA32475@server.vk2pj.dyndns.org> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: FreeBSD Arch , FreeBSD Current , Philip Paeps Subject: Re: MPSAFE TTY schedule X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2008 09:22:45 -0000 --sKosZo66cxuwvnFI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Peter, * Peter Jeremy wrote: > On 2008-Jul-03 22:52:20 +0200, Ed Schouten wrote: > >Well, even though I'd rather let other people assess me, I think I've > >been very proactive so far. As you can see, I sent my email to the list > >two days ago. In those two days I've fixed both umodem(4) and uftdi(4) > >to work with the new TTY layer again. >=20 > And I don't expect you to do all the work yourself - you can't be > expected to test hardware you don't have. But where is the documentation > to let someone else adapt the drivers? Well, right now documentation on the KPI is one of the things that is missing. As you mentioned in your first email, I am planning to add several man9 pages, but so far I haven't found any time to write them. I think there are already various (very small) drivers that could be used as examples. Below is a list of files, including their size in lines: | 241 /sys/dev/ofw/ofw_console.c | 181 /sys/ia64/ia64/ssc.c | 371 /sys/sun4v/sun4v/hvcons.c > >> cy(4), digi(4), rp(4), rc(4), si(4). > > > >Who actually owns one of these devices? If you do, please contact me. If > >I didn't make myself clear enough: I *am* willing to (assist in > >porting|port) these drivers. >=20 > I have access to a Digi Xem boards at work and have poked around > inside the digi(4) code in the past. My difficulty is that the cards > are all in use and upgrading to a FreeBSD-current that doesn't support > them and then porting the driver is probably not an option (whereas > converting it from using shims to access the TTY layer to doing so > directly would probably be acceptable - because I can get the board > going again in a hurry if needed). The problem with the old TTY layer, is that drivers tend to access the internals of the TTY structure very often. A good example of this is the clists, where TTY drivers tamper around inside the clist and cblock structures. There is not much room to implement a compatibility layer there. The digi(4) code shouldn't be very hard to port. As I said before, I am considering making most drivers at least compile before the code hits the tree, which should make it a lot easier for people to get their things working again. Yours, --=20 Ed Schouten WWW: http://80386.nl/ --sKosZo66cxuwvnFI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkht6+QACgkQ52SDGA2eCwXz7wCfRAlAhWFJgjBxW7hZUBExfOPi HrkAninxCBEUUS7jyOACE+BnpysrUCDW =b5xi -----END PGP SIGNATURE----- --sKosZo66cxuwvnFI--