From owner-freebsd-drivers@FreeBSD.ORG Sat Apr 24 08:50:20 2010 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03E2A106564A for ; Sat, 24 Apr 2010 08:50:20 +0000 (UTC) (envelope-from gljennjohn@googlemail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 849568FC16 for ; Sat, 24 Apr 2010 08:50:19 +0000 (UTC) Received: by fxm15 with SMTP id 15so11406fxm.13 for ; Sat, 24 Apr 2010 01:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:reply-to:x-mailer:mime-version :content-type:content-transfer-encoding; bh=17zak4fTiNS7ArZ0wxfYy4TmvO8KJA7H+GCHSg1VYzU=; b=HyBuhHjsTtxmBPSARVllYOrf3i8ENoAhRk5uqNcTL52Ft8lG5HOykVYSSJinfxrrwU ST6UImI0v8egxMmS3fXeL6rRS9fRcuUOSLP6FEzE4eIV1JxF0S6IKroQjyq6NShhTF1B TSIuDSN7bmXh9j3NZfy4XbC8keAKajuzGGN2E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :x-mailer:mime-version:content-type:content-transfer-encoding; b=BN8kfLiy8uT8UQflgmYRGjzA9lRgAtk/f1SRuP1pTauJt1RSWoxRM6NJp2sQVf1+Bj faM1VXDogxDwYxpz2jks+J9FLolqGnbFbz0+DkZC4qGxUsqF4+naVM/v2w5VT5CO8wEa fxWdNgQG0S9aEIrUQipQqcSWecyq6m945oM20= Received: by 10.102.243.26 with SMTP id q26mr608820muh.34.1272097377467; Sat, 24 Apr 2010 01:22:57 -0700 (PDT) Received: from ernst.jennejohn.org (p57AE1168.dip0.t-ipconnect.de [87.174.17.104]) by mx.google.com with ESMTPS id s10sm7592237mue.57.2010.04.24.01.22.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 24 Apr 2010 01:22:57 -0700 (PDT) Date: Sat, 24 Apr 2010 10:22:55 +0200 From: Gary Jennejohn To: Ted Mittelstaedt Message-ID: <20100424102255.12d782f8@ernst.jennejohn.org> In-Reply-To: <4BD22CD0.7030407@mittelstaedt.us> References: <4BD22CD0.7030407@mittelstaedt.us> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.7; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org Subject: Re: What tty changes - question on porting ltmdm and hcfmdm to FreeBSD 8 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gljennjohn@googlemail.com List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Apr 2010 08:50:20 -0000 On Fri, 23 Apr 2010 16:27:12 -0700 Ted Mittelstaedt wrote: > Setting aside the question of why do we break software that a lot of > people use > (these chips are in use on a lot of laptops) is there a document > somewhere that explains > what changes need to be made in code for this new tty setup? Or, is > there a set > of magic include files or a "conversion shim" library that will allow > these kinds > of programs to build without much work? > > Or is porting these drivers just so non-trivial that the only way is > to just delve into > the system manuals and delve into the driver code and try to figure out > what is > going on in each? If that's the case that's probably beyond my ability > but I'd > be happy to serve as a testbed. > The guy to ask about this would be Ed Schouten (ed@). AFAICR he did the new TTY stuff. I don't know whether he reads these lists. AFAIK there is no easy way to fix this and there are no backwards compati- bilty shims or magic header files. The fundamental problem with ltmdm is that it's a KLD and has to grovel around in the guts of the kernel. That makes fixing it decidely non- trivial. -- Gary Jennejohn