Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Mar 2001 14:51:34 +0600 (NOVT)
From:      Alexey Dokuchaev <danfe@inet.ssc.nsu.ru>
To:        Mike Smith <msmith@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Some PCI-related programming things 
Message-ID:  <Pine.LNX.4.10.10103211447030.13764-100000@inet.ssc.nsu.ru>
In-Reply-To: <200103210300.f2L30rO00891@mass.dis.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 20 Mar 2001, Mike Smith wrote:

> > > > Under linux, PCI stuff is generally done thru set of pci* functions, while
> > > > under FreeBSD there are ioctls provided by pci driver.  I've been doing
> > > > some code migration from linux to FreeBSD, and got thru most of it, except
> > > > for things like this one:
> > > 
> > > You are probably doing something very wrong here, but rather than try to 
> > > convince you to do it, right, I'll just answer your question. 8)
> > 
> > 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? :-)

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.

--
	Regs,
	Alexey


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.10.10103211447030.13764-100000>