From owner-freebsd-hackers Wed Mar 21 1:18:20 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.dis.org (mass.dis.org [216.240.45.41]) by hub.freebsd.org (Postfix) with ESMTP id 66B1137B721 for ; Wed, 21 Mar 2001 01:18:18 -0800 (PST) (envelope-from msmith@mass.dis.org) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.2/8.11.2) with ESMTP id f2L9FG502274; Wed, 21 Mar 2001 01:15:16 -0800 (PST) (envelope-from msmith@mass.dis.org) Message-Id: <200103210915.f2L9FG502274@mass.dis.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Alexey Dokuchaev Cc: freebsd-hackers@freebsd.org Subject: Re: Some PCI-related programming things In-reply-to: Your message of "Wed, 21 Mar 2001 14:51:34 +0600." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 21 Mar 2001 01:15:16 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > Hey, that's not fair :-) I'd like to know how to do things the rigth way. > > > > You'll need to tell us what it is that you're actually doing, then, since > > it's hard to guess from a tiny snippet like that. 8) > > Well, but if you didn't know, how could you tell that I'm doing something > very wrong then? :-) Because dinking with PCI configuration space is usually the wrong thing to do from userland. > I was porting (that is, it's not mine) some linux code that walks thru PCI > bus, searches for a particular device, and when it finds any, figures out > their parameters and fills some structures. > > This code is used, actually, in char device driver. Mm, so what's it doing in userspace? 8) -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message