On Fri, 8 Jun 2001, Sergey Babkin wrote:

> j mckitrick wrote:
> >
> > Okay, there is something i'm not understanding here.  In the ed driver,
> > there are many possible cards, which each have different i/o ports, correct?
> > The driver has a lot of probe routines, and it looks like they are just
> > using different macros with hard-coded (#defined) port addresses.
> >
> > So, how do you CORRECTLY use the newbus calls to probe these ports?  I am
> > not running -current, so i do not have 'hints'.
>
> As Doug Rabson said, write an 'identify' routine. Look at the
> ep driver for an example. And my artile in DaemonNews
> (www.daemonnews.org) from I think August 2000 or somewhere around
> that time gives some description of the newbussified ISA drivers.
> It should also be included into the Handbook by now.

Actually, the ex driver does have an identify method. The issue is that
the identify method uses 'unallocated' ports to do its search. It ought to
allocate them, do its tests and release them for the real probe but it
gets messy due to the fact that a device instance doesn't exist yet.

-- 
Doug Rabson                             Mail:  [EMAIL PROTECTED]
                                        Phone: +44 20 8348 6160



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to