Subject: X-Bus match() routine
To: 'port-arm32@netbsd.org' <port-arm32@netbsd.org>
From: Bruce Martin <BruceM@cat.co.za>
List: port-arm32
Date: 04/28/1999 16:55:42
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------ =_NextPart_001_01BE9187.305C1B90
Content-Type: text/plain

I am currently writing the match() function for the X-Bus
driver for NetBSD/arm32. Problem is, how do I identify that
the device being probed is the X-Bus? Does the XBus have any
special registers/variables that can be checked? At the
moment I have a line reading:
	if(strcmp(xba->xba_busname, cf->cf_driver->cd_name))
return (0);

but it does not seems to pick up a xba->xba_busname (as it
would for iba->iba_busname for the isa bus, or
pba->pba_busname = "pci" for the pci bus.)

How do I match the xbus, so that I can set it up?

Thanks
  Bruce

------ =_NextPart_001_01BE9187.305C1B90
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.0.1460.9">
<TITLE>X-Bus match() routine</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>I am currently writing the match() function for the =
X-Bus driver for NetBSD/arm32. Problem is, how do I identify that the =
device being probed is the X-Bus? Does the XBus have any special =
registers/variables that can be checked? At the moment I have a line =
reading:</FONT></P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>if(strcmp(xba-&gt;xba_busname, cf-&gt;cf_driver-&gt;cd_name)) =
return (0);</FONT>
</P>

<P><FONT SIZE=3D2>but it does not seems to pick up a =
xba-&gt;xba_busname (as it would for iba-&gt;iba_busname for the isa =
bus, or pba-&gt;pba_busname =3D &quot;pci&quot; for the pci =
bus.)</FONT></P>

<P><FONT SIZE=3D2>How do I match the xbus, so that I can set it =
up?</FONT>
</P>

<P><FONT SIZE=3D2>Thanks</FONT>
<BR><FONT SIZE=3D2>&nbsp; Bruce</FONT>
</P>

</BODY>
</HTML>
------ =_NextPart_001_01BE9187.305C1B90--