From owner-freebsd-current Wed Nov 25 01:42:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA15252 for freebsd-current-outgoing; Wed, 25 Nov 1998 01:42:49 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA15247 for ; Wed, 25 Nov 1998 01:42:46 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from herring.nlsystems.com (herring.nlsystems.com [10.0.0.2]) by nlsystems.com (8.9.1/8.8.5) with SMTP id JAA09736; Wed, 25 Nov 1998 09:23:09 GMT Date: Wed, 25 Nov 1998 09:23:08 +0000 (GMT) From: Doug Rabson To: Mike Smith cc: "Norman C. Rice" , Bruce Evans , mjacob@feral.com, current@FreeBSD.ORG Subject: Re: Location for driver includes (was Re: Breakage in -current for theALPHA) In-Reply-To: <199811250207.SAA02557@dingo.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 24 Nov 1998, Mike Smith wrote: > > Is it worth sorting includes based on the type of bus which the hardware > > is attached to? Something like: > > > > sys/dev/include non-bus-specific includes > > sys/dev/include/isa isa bus includes > > sys/dev/include/pci pci bus includes > > ... > > I don't think so; there's always the case where one device with several > different bus interfaces but a consistent user-space presentation will > spanner the works. > > IMHO, device-driver headers fall into two categories: > > - headers consumed only by the driver > These should live with the driver source files. > > - headers consumed by users-space driver users > These should be installed in a single location. They might want to > live with the driver source files as well, although this may > complicate the install process slightly. > > There should be a clear logical division between the two types of > files, even if they're kept together. > > I don't see any actual virtue in separating the user-consumed headers > from the driver source other than to make the install process easier. Apart from the install issues, I'm not too worried about where the external interface headers live in the source tree. The place where they are installed to needs to be agreed though. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 951 1891 Fax: +44 181 381 1039 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message