From owner-freebsd-drivers@FreeBSD.ORG Thu May 24 06:26:07 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 437CA16A41F for ; Thu, 24 May 2007 06:26:07 +0000 (UTC) (envelope-from marc.loerner@hob.de) Received: from mailgate.hob.de (mailgate.hob.de [212.185.199.3]) by mx1.freebsd.org (Postfix) with ESMTP id F250A13C455 for ; Thu, 24 May 2007 06:26:06 +0000 (UTC) (envelope-from marc.loerner@hob.de) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate.hob.de (Postfix) with ESMTP id 01AE627ADB for ; Thu, 24 May 2007 08:26:05 +0200 (CEST) Received: from mailgate.hob.de ([127.0.0.1]) by localhost (mailgate.hob.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13738-10 for ; Thu, 24 May 2007 08:26:04 +0200 (CEST) Received: from imap.hob.de (mail2.hob.de [172.25.1.102]) by mailgate.hob.de (Postfix) with ESMTP id C64BA27BA1 for ; Thu, 24 May 2007 08:26:04 +0200 (CEST) Received: from linux03.hob.de (linux03.hob.de [172.22.0.190]) by imap.hob.de (Postfix on SuSE eMail Server 2.0) with ESMTP id 66410C47F6 for ; Thu, 24 May 2007 08:26:04 +0200 (CEST) From: Marc =?iso-8859-1?q?L=F6rner?= Organization: hob To: freebsd-drivers@freebsd.org Date: Thu, 24 May 2007 07:26:01 +0100 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200705240826.01063.marc.loerner@hob.de> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at hob.de Subject: driver writing to serial console X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2007 06:26:07 -0000 Hi, at the moment I'm writing a driver that should control a serial console. That means I want to open/write/read to a serial console from within my (dummy) driver. Googling for this topic and reading Chapter 10 of "The Design and Implementation of the FreeBSD Operating System" yielded not the appropriate results. Now I only now that I can overwrite the linesw->l_rint handler to get input from keyboard. I hope someone can give me some pointers in the right direction or has a/some examples. Thanks in advance, Marc