From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 8 19:23:39 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E17116A4DE for ; Tue, 8 Aug 2006 19:23:39 +0000 (UTC) (envelope-from nike_d@cytexbg.com) Received: from office.suresupport.com (office.suresupport.com [213.145.98.15]) by mx1.FreeBSD.org (Postfix) with SMTP id 4337243D6B for ; Tue, 8 Aug 2006 19:23:37 +0000 (GMT) (envelope-from nike_d@cytexbg.com) Received: (qmail 37571 invoked by uid 1026); 8 Aug 2006 19:25:34 -0000 Received: from 213.145.98.14 by office.suresupport.com (envelope-from , uid 1004) with qmail-scanner-1.23 (f-prot: 4.4.2/3.14.11. Clear:RC:1(213.145.98.14):. Processed in 0.119829 secs); 08 Aug 2006 19:25:34 -0000 Received: from unknown (HELO ndenev.office.suresupport.com) (213.145.98.14) by office.suresupport.com with SMTP; 8 Aug 2006 19:25:33 -0000 From: Niki Denev To: freebsd-hackers@freebsd.org Date: Tue, 8 Aug 2006 22:20:24 +0300 User-Agent: KMail/1.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608082220.25048.nike_d@cytexbg.com> Subject: provide ttys from device driver 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: Tue, 08 Aug 2006 19:23:39 -0000 Hi, The cardbus hsdpa/umts adapter which driver i'm trying to port from linux to\ freebsd should look as four port serial device. The part of the driver that speaks with the hardware is more or less ready and working, i have setup a interrupt handler and can talk to the card and catch and service interrupts. Now the tricky part is to connect this to the tty layer... So, what is the best place to look for examples to provide ttys from a device driver? (apart from reading the code of existing serial drivers, which i'm doing right now :) ) Thanks! --niki