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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message