From owner-cvs-all Tue Nov 5 23:41:38 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 69CC137B401; Tue, 5 Nov 2002 23:41:37 -0800 (PST) Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96E4243E75; Tue, 5 Nov 2002 23:41:35 -0800 (PST) (envelope-from doconnor@gsoft.com.au) Received: from localhost (localhost [127.0.0.1]) by cain.gsoft.com.au (8.12.4/8.12.6) with ESMTP id gA67fMiX009226; Wed, 6 Nov 2002 18:11:24 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Subject: Re: cvs commit: src/sys/conf majors From: "Daniel O'Connor" To: Poul-Henning Kamp Cc: Robert Watson , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG In-Reply-To: <92875.1036568079@critter.freebsd.dk> References: <92875.1036568079@critter.freebsd.dk> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 06 Nov 2002 18:11:22 +1030 Message-Id: <1036568487.55376.99.camel@chowder.localdomain> Mime-Version: 1.0 X-Spam-Score: -3.4 () IN_REP_TO X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 2002-11-06 at 18:04, Poul-Henning Kamp wrote: > That is still not a reason for cloning the driver. If you did it right > with a linedisc, it would also work on sparc64 which uses a siemens > chips, on multiport cards which use their own chips and on any future > serial port worth its salt. > > If you continue to clone the sio driver, you will get a driver which > conflicts with the sio driver, making life difficult for people who > want to mix and match normal serial and RS485. > > Trust me on this, I've cleaned up more "I'll just make a copy and > modify" code in the kernel than anybody else in this project. > > Please do it right, don't hack it. Could you perhaps suggest something helpful, like HOW I would write a line discipline? Where would I get information on it? Is there something similar I could copy? -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 9A8C 569F 685A D928 5140 AE4B 319B 41F4 5D17 FDD5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message