From owner-freebsd-current Mon Dec 14 17:37:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA16282 for freebsd-current-outgoing; Mon, 14 Dec 1998 17:37:06 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (goldfish.pht.co.jp [210.171.55.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA16083 for ; Mon, 14 Dec 1998 17:37:00 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id PAA00350; Sun, 13 Dec 1998 15:21:25 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199812132321.PAA00350@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Atsushi Furuta cc: dfr@nlsystems.com, mike@smith.net.au, y-nakaga@nwsl.mesh.ad.jp, nate@mt.sri.com, nathan@rtfm.net, current@FreeBSD.ORG Subject: Re: PAO Integration? In-reply-to: Your message of "Sun, 13 Dec 1998 19:23:08 +0900." <199812131023.TAA05525@sramhc.sra.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 13 Dec 1998 15:21:25 -0800 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > >> In article , > Doug Rabson writes: > > > The softc issue is addressed by the new device framework. The pci support > > code has not yet been updated to the new interface but when it is, it will > > get this for free. The flags field can also be easily added. > > I wonder how a user specifies flags to pci bus. I seems that there > is no generic way to specify flags in current subr_bus.c, and it is up > to each bus codes how to provide ivers and flags. Flags are bad. They exist at all because it was hard to specify meaningful options to drivers via config (which couldn't know anything about the driver structure). Drivers should export a set of options that are a union of the set of options the driver supports plus a subset of the options for a device provided by the bus. This can be determined by examining the driver and bus data at probe/attach time; something that's easy with KLD/ newbus/loader, but would require a bolt-on for newconfig. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message