From owner-freebsd-stable@FreeBSD.ORG Wed Feb 9 15:24:39 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE59B16A4CE for ; Wed, 9 Feb 2005 15:24:39 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4480A43D2F for ; Wed, 9 Feb 2005 15:24:39 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by wproxy.gmail.com with SMTP id 58so1095835wri for ; Wed, 09 Feb 2005 07:24:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=CQZ++aVbI5VsI4MmAmsS2/9Fo90w9IeO4HUSE/2XYRvFsNueVeMMBgNyqHZh0YKfy+pOhkcJvvImFumlXHaIrOV6wwBHlI9MYuVlYCkSXUDvtAivEFr4g8hKM/w9BmZ+Pnw56Oby8qiNRrFRMfR01zVJxGvtEVN1jICkWyC6uRA= Received: by 10.54.42.49 with SMTP id p49mr139055wrp; Wed, 09 Feb 2005 07:24:29 -0800 (PST) Received: by 10.54.29.8 with HTTP; Wed, 9 Feb 2005 07:24:29 -0800 (PST) Message-ID: <790a9fff050209072441f874f1@mail.gmail.com> Date: Wed, 9 Feb 2005 09:24:29 -0600 From: Scot Hetzel To: W.K.Offermans@tue.nl In-Reply-To: <20050209120827.GD39864@tom.chem.tue.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20050209120827.GD39864@tom.chem.tue.nl> cc: freebsd-stable@freebsd.org Subject: Re: NetMos NM9805 1284 Printer port X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Scot Hetzel List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2005 15:24:39 -0000 On Wed, 9 Feb 2005 13:08:27 +0100, Willy Offermans wrote: > Dear FreeBSD friends, > > I have sent the following e-mail 3 times before. I believe always to > freebsd-hackers, but I'm not sure. > : > I have an additional LPT port: > > puc0@pci3:13:0: class=0x078000 card=0x00101000 chip=0x98059710 rev=0x01 hdr=0x00 > vendor = 'MosChip Semiconductors (Was: Netmos Technology)' > device = 'Nm9805 PCI + 1284 Printer Port' > class = simple comms > > I was able to get it work by adding the following to /usr/src/sys/dev/puc/pucdata.c > > /* Added by Willy@Rompen.nl 06/05/2004 */ > /* recommended by john@feith.com */ > > /* NetMos 0S1P PCI : 0S, 1P */ > { "NetMos NM9805 1284 Printer port", > { 0x9710, 0x9805, 0, 0 }, > { 0xffff, 0xffff, 0, 0 }, > { > { PUC_PORT_TYPE_LPT, 0x10, 0x00, 0x00 }, > }, > }, > > and to enable the puc driver in the kernel of course. > > Is it possible to add the data to /usr/src/sys/dev/puc/pucdata.c permanently? > Just a FYI: When you have an addition to the sources, you need to create a diff between the original file and your modifications: diff -u pucdata.c-orig pucdata.c > pucdata.diff Then use send-pr to submit the update. You may also send a message to freebsd-current or freebsd-stable with the PR number. This way your patch won't get lost in the mailing lists. Then after a week to a month if no-one has commited your patch, post a follow message. Scot