<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-6603</id>
	<title>Nabble - freebsd-new-bus</title>
	<updated>2009-11-30T03:08:03Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/freebsd-new-bus-f6603.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/freebsd-new-bus-f6603.html" />
	<subtitle type="html">FreeBSD's new-bus architecture</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26573235</id>
	<title>link exchange</title>
	<published>2009-11-30T03:08:03Z</published>
	<updated>2009-11-30T03:08:03Z</updated>
	<author>
		<name>Karan Singh-2</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; I'm webmaster of this websites :- &lt;a href=&quot;http://www.bluedelightconsultant.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bluedelightconsultant.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;i'm making some links for this projects to get more visitors and to get high
&lt;br&gt;populirity to this site.So would you like to link exchange with this site.?
&lt;br&gt;I'm looking for reciprocal links but in deep case i will be agree to add 3
&lt;br&gt;way sites. This will be benifit for both of us.
&lt;br&gt;&lt;br&gt;My detail is:-
&lt;br&gt;&lt;br&gt;Title:- SEO Company
&lt;br&gt;Url:- &lt;a href=&quot;http://www.bluedelightconsultant.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bluedelightconsultant.com/&lt;/a&gt;&lt;br&gt;Desc:- Professional Search Engine Optimization(Seo) Services Placement
&lt;br&gt;Company India.
&lt;br&gt;&lt;br&gt;After add my let me know via mail here- &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26573235&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;karan.nathawat@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;I'll give you backlink at following pages.....
&lt;br&gt;&lt;br&gt;&lt;br&gt;Link Back:-&lt;a href=&quot;http://www.bluedelightconsultant.com/seo_sites.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bluedelightconsultant.com/seo_sites.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;I'm waiting a positive reply from your side..
&lt;br&gt;&lt;br&gt;&lt;br&gt;Best regards !
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Karan Singh
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26573235&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;karan.nathawat@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26573235&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26573235&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/link-exchange-tp26573235p26573235.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26260275</id>
	<title>Re: Collapsing device_state_t with devinfo_state_t</title>
	<published>2009-11-08T18:02:21Z</published>
	<updated>2009-11-08T18:02:21Z</updated>
	<author>
		<name>Attilio Rao-2</name>
	</author>
	<content type="html">2009/11/9 Scott Long &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26260275&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scottl@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Nov 8, 2009, at 9:53 AM, Attilio Rao wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; This patch should collpase device_state_t with devinfo_state_t and
&lt;br&gt;&amp;gt;&amp;gt; remove a bogus replication of this struct:
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.freebsd.org/~attilio/devinfo.diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.freebsd.org/~attilio/devinfo.diff&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; This patch breaks ABI so it cannot be MFC'ed (and it is not intended to
&lt;br&gt;&amp;gt;&amp;gt; do).
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Does this hinder FreeBSD 8 from ever getting a Giant-free newbus?
&lt;/div&gt;&lt;br&gt;As foretold in several e-mails and threads, FreeBSD-8 has all the
&lt;br&gt;needed support for Giant-free newbus, that's just an improvement I
&lt;br&gt;couldn't let happen before because we had to maintain ABI stability
&lt;br&gt;over the release process, but it doesn't compromise at all possibility
&lt;br&gt;to MFC Giant-free newbus.
&lt;br&gt;&lt;br&gt;Attilio
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Peace can only be achieved by understanding - A. Einstein
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26260275&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26260275&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Collapsing-device_state_t-with-devinfo_state_t-tp26255504p26260275.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26260316</id>
	<title>Re: Collapsing device_state_t with devinfo_state_t</title>
	<published>2009-11-08T17:40:48Z</published>
	<updated>2009-11-08T17:40:48Z</updated>
	<author>
		<name>Scott Long-2</name>
	</author>
	<content type="html">On Nov 8, 2009, at 9:53 AM, Attilio Rao wrote:
&lt;br&gt;&amp;gt; This patch should collpase device_state_t with devinfo_state_t and
&lt;br&gt;&amp;gt; remove a bogus replication of this struct:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.freebsd.org/~attilio/devinfo.diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.freebsd.org/~attilio/devinfo.diff&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This patch breaks ABI so it cannot be MFC'ed (and it is not intended &amp;nbsp;
&lt;br&gt;&amp;gt; to do).
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Does this hinder FreeBSD 8 from ever getting a Giant-free newbus?
&lt;br&gt;&lt;br&gt;Scott
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26260316&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26260316&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Collapsing-device_state_t-with-devinfo_state_t-tp26255504p26260316.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26260083</id>
	<title>Re: Collapsing device_state_t with devinfo_state_t</title>
	<published>2009-11-08T17:25:56Z</published>
	<updated>2009-11-08T17:25:56Z</updated>
	<author>
		<name>M. Warner Losh</name>
	</author>
	<content type="html">In message: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26260083&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;3bbf2fe10911080854x64d18e40hf639634e625dd11b@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attilio Rao &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26260083&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;attilio@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;: 2009/11/8 Attilio Rao &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26260083&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;attilio@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;: &amp;gt; This patch should collpase device_state_t with devinfo_state_t and
&lt;br&gt;: &amp;gt; remove a bogus replication of this struct:
&lt;br&gt;: &amp;gt; &lt;a href=&quot;http://www.freebsd.org/~attilio/devinfo.diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.freebsd.org/~attilio/devinfo.diff&lt;/a&gt;&lt;br&gt;: 
&lt;br&gt;: Sorry, forgot to mention:
&lt;br&gt;: I thought about adding _bus.h interface because I thought that
&lt;br&gt;: devinfo.h wanted to avoid a namespace pollution, but that's not really
&lt;br&gt;: the case as 85% of the bus.h is already under _KERNEL labels. That
&lt;br&gt;: means the pollution is minimal and restricted to 1-2 further structs.
&lt;br&gt;&lt;br&gt;I'm cool with this patch, and that decision.
&lt;br&gt;&lt;br&gt;Warner
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26260083&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26260083&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Collapsing-device_state_t-with-devinfo_state_t-tp26255504p26260083.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26255518</id>
	<title>Re: Collapsing device_state_t with devinfo_state_t</title>
	<published>2009-11-08T08:54:50Z</published>
	<updated>2009-11-08T08:54:50Z</updated>
	<author>
		<name>Attilio Rao-2</name>
	</author>
	<content type="html">2009/11/8 Attilio Rao &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26255518&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;attilio@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; This patch should collpase device_state_t with devinfo_state_t and
&lt;br&gt;&amp;gt; remove a bogus replication of this struct:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.freebsd.org/~attilio/devinfo.diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.freebsd.org/~attilio/devinfo.diff&lt;/a&gt;&lt;br&gt;&lt;br&gt;Sorry, forgot to mention:
&lt;br&gt;I thought about adding _bus.h interface because I thought that
&lt;br&gt;devinfo.h wanted to avoid a namespace pollution, but that's not really
&lt;br&gt;the case as 85% of the bus.h is already under _KERNEL labels. That
&lt;br&gt;means the pollution is minimal and restricted to 1-2 further structs.
&lt;br&gt;&lt;br&gt;Attilio
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Peace can only be achieved by understanding - A. Einstein
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26255518&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26255518&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Collapsing-device_state_t-with-devinfo_state_t-tp26255504p26255518.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26255504</id>
	<title>Collapsing device_state_t with devinfo_state_t</title>
	<published>2009-11-08T08:53:20Z</published>
	<updated>2009-11-08T08:53:20Z</updated>
	<author>
		<name>Attilio Rao-2</name>
	</author>
	<content type="html">This patch should collpase device_state_t with devinfo_state_t and
&lt;br&gt;remove a bogus replication of this struct:
&lt;br&gt;&lt;a href=&quot;http://www.freebsd.org/~attilio/devinfo.diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.freebsd.org/~attilio/devinfo.diff&lt;/a&gt;&lt;br&gt;&lt;br&gt;This patch breaks ABI so it cannot be MFC'ed (and it is not intended to do).
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Attilio
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Peace can only be achieved by understanding - A. Einstein
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26255504&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26255504&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Collapsing-device_state_t-with-devinfo_state_t-tp26255504p26255504.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26235058</id>
	<title>Re: Buffer overflow in devclass_add_device()</title>
	<published>2009-11-06T08:45:18Z</published>
	<updated>2009-11-06T08:45:18Z</updated>
	<author>
		<name>John Baldwin</name>
	</author>
	<content type="html">On Friday 06 November 2009 11:15:43 am M. Warner Losh wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; In message: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235058&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;3bbf2fe10911060720m6d6919ffw91dcc5b6c1c2016a@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attilio Rao &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235058&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;attilio@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; : A buffer overflow is possible in devclass_add_device().
&lt;br&gt;&amp;gt; : More specifically, the dev nameunit construction is based on the
&lt;br&gt;&amp;gt; : assumption that the unit linked with the device is invariant but that
&lt;br&gt;&amp;gt; : can change when calling devclass_alloc_unit() (because -1 is passed
&lt;br&gt;&amp;gt; : or, more simply, because the unit choosen is beyond the table limits).
&lt;br&gt;&amp;gt; : This results in a buffer overflow if the bug is too short on the
&lt;br&gt;&amp;gt; : second snprintf().
&lt;br&gt;&amp;gt; : This patch should fix it:
&lt;br&gt;&amp;gt; : &lt;a href=&quot;http://www.freebsd.org/~attilio/Sandvine/STABLE_8/subr_bus/subr_bus.diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.freebsd.org/~attilio/Sandvine/STABLE_8/subr_bus/subr_bus.diff&lt;/a&gt;&lt;br&gt;&amp;gt; : 
&lt;br&gt;&amp;gt; : aiming for the max possible number of digits necessary.
&lt;br&gt;&amp;gt; : This bug has been found by Sandvine Incorporated.
&lt;br&gt;&amp;gt; : Please reivew.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I don't see a problem with it, except you'd want -INT_MAX to be
&lt;br&gt;&amp;gt; paranoid, since it is one character longer (or just add 1) :)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; However, it might be better to just allocate strlen(dc-&amp;gt;name) +
&lt;br&gt;&amp;gt; log10(INT_MAX) + 2 and not have snprintf do that calculation. &amp;nbsp;But it
&lt;br&gt;&amp;gt; doesn't look like there's a compile-time constant for that...
&lt;/div&gt;&lt;br&gt;In this case I think the snprintf() is fine as code-wise I think it is simpler 
&lt;br&gt;(it matches up well with the later snprintf() to fill out the buffer). &amp;nbsp;Given 
&lt;br&gt;that adding devices isn't generally a critical-path, I think the clarity is 
&lt;br&gt;worth the probably quite small additional cost of snprintf().
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;John Baldwin
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235058&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235058&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Buffer-overflow-in-devclass_add_device%28%29-tp26234265p26235058.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26235127</id>
	<title>Re: Buffer overflow in devclass_add_device()</title>
	<published>2009-11-06T08:38:47Z</published>
	<updated>2009-11-06T08:38:47Z</updated>
	<author>
		<name>M. Warner Losh</name>
	</author>
	<content type="html">In message: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235127&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;3bbf2fe10911060822g35b81099ib6fa53473d7c20fe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attilio Rao &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235127&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;attilio@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;: 2009/11/6 M. Warner Losh &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235127&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;imp@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;: &amp;gt; In message: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235127&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;3bbf2fe10911060720m6d6919ffw91dcc5b6c1c2016a@...&lt;/a&gt;&amp;gt;
&lt;br&gt;: &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Attilio Rao &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235127&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;attilio@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;: &amp;gt; : A buffer overflow is possible in devclass_add_device().
&lt;br&gt;: &amp;gt; : More specifically, the dev nameunit construction is based on the
&lt;br&gt;: &amp;gt; : assumption that the unit linked with the device is invariant but that
&lt;br&gt;: &amp;gt; : can change when calling devclass_alloc_unit() (because -1 is passed
&lt;br&gt;: &amp;gt; : or, more simply, because the unit choosen is beyond the table limits).
&lt;br&gt;: &amp;gt; : This results in a buffer overflow if the bug is too short on the
&lt;br&gt;: &amp;gt; : second snprintf().
&lt;br&gt;: &amp;gt; : This patch should fix it:
&lt;br&gt;: &amp;gt; : &lt;a href=&quot;http://www.freebsd.org/~attilio/Sandvine/STABLE_8/subr_bus/subr_bus.diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.freebsd.org/~attilio/Sandvine/STABLE_8/subr_bus/subr_bus.diff&lt;/a&gt;&lt;br&gt;: &amp;gt; :
&lt;br&gt;: &amp;gt; : aiming for the max possible number of digits necessary.
&lt;br&gt;: &amp;gt; : This bug has been found by Sandvine Incorporated.
&lt;br&gt;: &amp;gt; : Please reivew.
&lt;br&gt;: &amp;gt;
&lt;br&gt;: &amp;gt; I don't see a problem with it, except you'd want -INT_MAX to be
&lt;br&gt;: &amp;gt; paranoid, since it is one character longer (or just add 1) :)
&lt;br&gt;: 
&lt;br&gt;: I don't think that unit number can grow negative, can they?
&lt;br&gt;&lt;br&gt;They can't, but this is about an abundance of caution, right?
&lt;br&gt;&lt;br&gt;Warner
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235127&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26235127&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Buffer-overflow-in-devclass_add_device%28%29-tp26234265p26235127.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26234710</id>
	<title>Re: Buffer overflow in devclass_add_device()</title>
	<published>2009-11-06T08:22:36Z</published>
	<updated>2009-11-06T08:22:36Z</updated>
	<author>
		<name>Attilio Rao-2</name>
	</author>
	<content type="html">2009/11/6 M. Warner Losh &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234710&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;imp@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; In message: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234710&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;3bbf2fe10911060720m6d6919ffw91dcc5b6c1c2016a@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Attilio Rao &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234710&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;attilio@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; : A buffer overflow is possible in devclass_add_device().
&lt;br&gt;&amp;gt; : More specifically, the dev nameunit construction is based on the
&lt;br&gt;&amp;gt; : assumption that the unit linked with the device is invariant but that
&lt;br&gt;&amp;gt; : can change when calling devclass_alloc_unit() (because -1 is passed
&lt;br&gt;&amp;gt; : or, more simply, because the unit choosen is beyond the table limits).
&lt;br&gt;&amp;gt; : This results in a buffer overflow if the bug is too short on the
&lt;br&gt;&amp;gt; : second snprintf().
&lt;br&gt;&amp;gt; : This patch should fix it:
&lt;br&gt;&amp;gt; : &lt;a href=&quot;http://www.freebsd.org/~attilio/Sandvine/STABLE_8/subr_bus/subr_bus.diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.freebsd.org/~attilio/Sandvine/STABLE_8/subr_bus/subr_bus.diff&lt;/a&gt;&lt;br&gt;&amp;gt; :
&lt;br&gt;&amp;gt; : aiming for the max possible number of digits necessary.
&lt;br&gt;&amp;gt; : This bug has been found by Sandvine Incorporated.
&lt;br&gt;&amp;gt; : Please reivew.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I don't see a problem with it, except you'd want -INT_MAX to be
&lt;br&gt;&amp;gt; paranoid, since it is one character longer (or just add 1) :)
&lt;/div&gt;&lt;br&gt;I don't think that unit number can grow negative, can they?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Attilio
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Peace can only be achieved by understanding - A. Einstein
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234710&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234710&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Buffer-overflow-in-devclass_add_device%28%29-tp26234265p26234710.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26234695</id>
	<title>Re: Buffer overflow in devclass_add_device()</title>
	<published>2009-11-06T08:15:43Z</published>
	<updated>2009-11-06T08:15:43Z</updated>
	<author>
		<name>M. Warner Losh</name>
	</author>
	<content type="html">In message: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234695&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;3bbf2fe10911060720m6d6919ffw91dcc5b6c1c2016a@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attilio Rao &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234695&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;attilio@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;: A buffer overflow is possible in devclass_add_device().
&lt;br&gt;: More specifically, the dev nameunit construction is based on the
&lt;br&gt;: assumption that the unit linked with the device is invariant but that
&lt;br&gt;: can change when calling devclass_alloc_unit() (because -1 is passed
&lt;br&gt;: or, more simply, because the unit choosen is beyond the table limits).
&lt;br&gt;: This results in a buffer overflow if the bug is too short on the
&lt;br&gt;: second snprintf().
&lt;br&gt;: This patch should fix it:
&lt;br&gt;: &lt;a href=&quot;http://www.freebsd.org/~attilio/Sandvine/STABLE_8/subr_bus/subr_bus.diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.freebsd.org/~attilio/Sandvine/STABLE_8/subr_bus/subr_bus.diff&lt;/a&gt;&lt;br&gt;: 
&lt;br&gt;: aiming for the max possible number of digits necessary.
&lt;br&gt;: This bug has been found by Sandvine Incorporated.
&lt;br&gt;: Please reivew.
&lt;br&gt;&lt;br&gt;I don't see a problem with it, except you'd want -INT_MAX to be
&lt;br&gt;paranoid, since it is one character longer (or just add 1) :)
&lt;br&gt;&lt;br&gt;However, it might be better to just allocate strlen(dc-&amp;gt;name) +
&lt;br&gt;log10(INT_MAX) + 2 and not have snprintf do that calculation. &amp;nbsp;But it
&lt;br&gt;doesn't look like there's a compile-time constant for that...
&lt;br&gt;&lt;br&gt;Warner
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234695&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234695&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Buffer-overflow-in-devclass_add_device%28%29-tp26234265p26234695.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26234230</id>
	<title>Re: Buffer overflow in devclass_add_device()</title>
	<published>2009-11-06T07:43:52Z</published>
	<updated>2009-11-06T07:43:52Z</updated>
	<author>
		<name>John Baldwin</name>
	</author>
	<content type="html">On Friday 06 November 2009 10:20:35 am Attilio Rao wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; A buffer overflow is possible in devclass_add_device().
&lt;br&gt;&amp;gt; More specifically, the dev nameunit construction is based on the
&lt;br&gt;&amp;gt; assumption that the unit linked with the device is invariant but that
&lt;br&gt;&amp;gt; can change when calling devclass_alloc_unit() (because -1 is passed
&lt;br&gt;&amp;gt; or, more simply, because the unit choosen is beyond the table limits).
&lt;br&gt;&amp;gt; This results in a buffer overflow if the bug is too short on the
&lt;br&gt;&amp;gt; second snprintf().
&lt;br&gt;&amp;gt; This patch should fix it:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.freebsd.org/~attilio/Sandvine/STABLE_8/subr_bus/subr_bus.diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.freebsd.org/~attilio/Sandvine/STABLE_8/subr_bus/subr_bus.diff&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; aiming for the max possible number of digits necessary.
&lt;br&gt;&amp;gt; This bug has been found by Sandvine Incorporated.
&lt;br&gt;&amp;gt; Please reivew.
&lt;/div&gt;&lt;br&gt;Looks ok to me.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;John Baldwin
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234230&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234230&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Buffer-overflow-in-devclass_add_device%28%29-tp26234265p26234230.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26234265</id>
	<title>Buffer overflow in devclass_add_device()</title>
	<published>2009-11-06T07:20:35Z</published>
	<updated>2009-11-06T07:20:35Z</updated>
	<author>
		<name>Attilio Rao-2</name>
	</author>
	<content type="html">A buffer overflow is possible in devclass_add_device().
&lt;br&gt;More specifically, the dev nameunit construction is based on the
&lt;br&gt;assumption that the unit linked with the device is invariant but that
&lt;br&gt;can change when calling devclass_alloc_unit() (because -1 is passed
&lt;br&gt;or, more simply, because the unit choosen is beyond the table limits).
&lt;br&gt;This results in a buffer overflow if the bug is too short on the
&lt;br&gt;second snprintf().
&lt;br&gt;This patch should fix it:
&lt;br&gt;&lt;a href=&quot;http://www.freebsd.org/~attilio/Sandvine/STABLE_8/subr_bus/subr_bus.diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.freebsd.org/~attilio/Sandvine/STABLE_8/subr_bus/subr_bus.diff&lt;/a&gt;&lt;br&gt;&lt;br&gt;aiming for the max possible number of digits necessary.
&lt;br&gt;This bug has been found by Sandvine Incorporated.
&lt;br&gt;Please reivew.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Attilio
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Peace can only be achieved by understanding - A. Einstein
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234265&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26234265&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Buffer-overflow-in-devclass_add_device%28%29-tp26234265p26234265.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24371098</id>
	<title>Bank Of America Online Alert : Verify Your Information ID# d885f20cbd1f2d7442e324bc1bcdb689</title>
	<published>2009-07-07T01:19:25Z</published>
	<updated>2009-07-07T01:19:25Z</updated>
	<author>
		<name>Bank of America-54</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp;[mhd_reg_logo.gif]
&lt;br&gt;&amp;nbsp; &amp;nbsp;[em_title_red.gif]
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Dear customer, 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Protecting the security of our customers and the Bank of America !
&lt;br&gt;&amp;nbsp; &amp;nbsp;network , as a preventative measure, we have temporarily limited
&lt;br&gt;&amp;nbsp; &amp;nbsp;access to sensitive account features.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;To restore your account access, please take the following steps to
&lt;br&gt;&amp;nbsp; &amp;nbsp;ensure that your account has not been compromised:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;After updates :
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;1.Login to your Bank of America Online Banking account. In case you
&lt;br&gt;&amp;nbsp; &amp;nbsp;are not enrolled for Online Banking, you will have to fill in all the
&lt;br&gt;&amp;nbsp; &amp;nbsp;required information, including your name and you account number.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;2. Review your recent account history for any unauthorized withdrawals
&lt;br&gt;&amp;nbsp; &amp;nbsp;or deposits, and check you account profile to make sure not changes
&lt;br&gt;&amp;nbsp; &amp;nbsp;have been made. If any unauthorized activity has taken place on your
&lt;br&gt;&amp;nbsp; &amp;nbsp;account, report this to Bank of America staff immediately.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;To get started, please click the link below:
&lt;br&gt;&amp;nbsp; &amp;nbsp;!
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;[1]&lt;a href=&quot;https://sitekey.bankofamerica.com/sas/signon.do?&amp;detect=3&amp;p=d41d8cd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sitekey.bankofamerica.com/sas/signon.do?&amp;detect=3&amp;p=d41d8cd&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;98f00b204e9800998ecf8427e3265464
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;_________________________________________________________________
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;This alert has been sent to you based on your preferences. If you
&lt;br&gt;&amp;nbsp; &amp;nbsp;would like to make any changes to your Online Banking Alerts service,
&lt;br&gt;&amp;nbsp; &amp;nbsp;please sign in to Online Banking and visit the Manage Alerts section.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Because your reply will not be transmitted via secure e-mail, the
&lt;br&gt;&amp;nbsp; &amp;nbsp;e-mail address that generated this alert will not accept replies. If
&lt;br&gt;&amp;nbsp; &amp;nbsp;you would like to contact Bank of America with questions or comments,
&lt;br&gt;&amp;nbsp; &amp;nbsp;please sign in to Online Banking and visit the customer service
&lt;br&gt;&amp;nbsp; &amp;nbsp;section.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;_________________________________________________________________
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Bank of America, N.A. Member FDIC. Equal Housing Lender
&lt;br&gt;&amp;nbsp; &amp;nbsp;© 2009 Bank of America Corporation. All rights reserved
&lt;br&gt;&amp;nbsp; &amp;nbsp;d885f20cbd1f2d7442e324bc1bcdb689
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;_________________________________________________________________
&lt;br&gt;&lt;br&gt;References
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;1. &lt;a href=&quot;http://indietones.net/preview/Onlineid.bankofameri!ca.com/cgi-bini/668d93445065081fa9f2b085cbde792e0d2e0da50a9b4260a03c403a83c60055efdf4a1c/c7206040b068b58cba7fadd6a5b4e341/bofa/ibdIAS/bankofamerica/signon.php?section=signinpage&amp;update=&amp;cookiecheck=yes&amp;destination=nba/signin&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://indietones.net/preview/Onlineid.bankofameri!ca.com/cgi-bini/668d93445065081fa9f2b085cbde792e0d2e0da50a9b4260a03c403a83c60055efdf4a1c/c7206040b068b58cba7fadd6a5b4e341/bofa/ibdIAS/bankofamerica/signon.php?section=signinpage&amp;update=&amp;cookiecheck=yes&amp;destination=nba/signin&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24371098&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=24371098&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Bank-Of-America-Online-Alert-%3A-Verify-Your-Information-ID--d885f20cbd1f2d7442e324bc1bcdb689-tp24371098p24371098.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23622541</id>
	<title>Adding support for multiple boot-time passes of the device tree</title>
	<published>2009-05-19T12:10:22Z</published>
	<updated>2009-05-19T12:10:22Z</updated>
	<author>
		<name>John Baldwin</name>
	</author>
	<content type="html">If you were at BSDCan a few weeks ago you may have seen my proposal for 
&lt;br&gt;extending new-bus to support multiple scans of the device tree during 
&lt;br&gt;boot-time probing. &amp;nbsp;This patch is the infrastructure work to allow multiple 
&lt;br&gt;passes. &amp;nbsp;It does not move any drivers (except root0 which is already special) 
&lt;br&gt;into an early pass, so all devices will still probe as a single pass for now. &amp;nbsp;
&lt;br&gt;However, getting this in now before 8.0 will enable folks to start working on 
&lt;br&gt;other problems such as resource discovery and management and will get the ABI 
&lt;br&gt;set before the 8.0 feature freeze. &amp;nbsp;The paper where I go into greater detail 
&lt;br&gt;about the rationale and implementation is available at 
&lt;br&gt;&lt;a href=&quot;http://www.FreeBSD.org/~jhb/papers/bsdcan/2009/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.FreeBSD.org/~jhb/papers/bsdcan/2009/&lt;/a&gt;. &amp;nbsp;The actual patch is 
&lt;br&gt;available for review at &lt;a href=&quot;http://www.FreeBSD.org/~jhb/patches/multipass.patch&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.FreeBSD.org/~jhb/patches/multipass.patch&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;John Baldwin
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23622541&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=23622541&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Adding-support-for-multiple-boot-time-passes-of-the-device-tree-tp23622541p23622541.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22185559</id>
	<title>Web Design Logo Design Related Link Exchange Request</title>
	<published>2009-02-24T06:43:51Z</published>
	<updated>2009-02-24T06:43:51Z</updated>
	<author>
		<name>Gord-5</name>
	</author>
	<content type="html">Dear owner of &lt;a href=&quot;http://lists.freebsd.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org&lt;/a&gt;,
&lt;br&gt;&lt;br&gt;I'm the webmaster of &lt;a href=&quot;http://www.onlinemarketingseo.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.onlinemarketingseo.com/&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;We came across your site on the Internet and feel that it would fit
&lt;br&gt;perfectly into our collection of quality web design-related links at
&lt;br&gt;&lt;a href=&quot;http://www.onlinemarketingseo.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.onlinemarketingseo.com/&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;The Google PR of this site is currently 3.
&lt;br&gt;&lt;br&gt;We've already placed a link to your web site along with a description
&lt;br&gt;at our site on the &lt;a href=&quot;http://www.onlinemarketingseo.com/partners-logo-designer10.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.onlinemarketingseo.com/partners-logo-designer10.html&lt;/a&gt;&amp;nbsp;page, 
&lt;br&gt;which we encourage you to check for accuracy.
&lt;br&gt;&lt;br&gt;We'd appreciate it if you place a link back to our site using the
&lt;br&gt;following HTML code (just copy and paste it into your links page):
&lt;br&gt;&lt;br&gt;&amp;lt;a href=&amp;quot;&lt;a href=&quot;http://www.onlinemarketingseo.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.onlinemarketingseo.com/&lt;/a&gt;&amp;quot; title=&amp;quot;OMNI Marketing provides effective Internet marketing and web visibility to generate quality traffic, leads, and sales. &amp;nbsp;Because of the recent downturn in the economy, the market is less competitive than ever before. &amp;nbsp;Now is the best time for your business to achieve top rankings and outstanding ROI.&amp;quot;&amp;gt;Los Angeles Internet Marketing Company&amp;lt;/a&amp;gt;
&lt;br&gt;&amp;lt;br&amp;gt;OMNI Marketing provides effective Internet marketing and web visibility to generate quality traffic, leads, and sales. &amp;nbsp;Because of the recent downturn in the economy, the market is less competitive than ever before. &amp;nbsp;Now is the best time for your business to achieve top rankings and outstanding ROI.
&lt;br&gt;&lt;br&gt;On your page, the code will look like this:
&lt;br&gt;Los Angeles Internet Marketing Company
&lt;br&gt;OMNI Marketing provides effective Internet marketing and web visibility to generate quality traffic, leads, and sales. &amp;nbsp;Because of the recent downturn in the economy, the market is less competitive than ever before. &amp;nbsp;Now is the best time for your business to achieve top rankings and outstanding ROI.
&lt;br&gt;&lt;br&gt;&lt;br&gt;If you'd like the description of your site modified, the category
&lt;br&gt;changed, or if you have any other cross-promotion ideas, feel free to
&lt;br&gt;email us.
&lt;br&gt;&lt;br&gt;Please link to us using the code above,and let us know where we can find the link.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;Gord
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22185559&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;optitrex1@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;This is NOT SPAM -- this is a one-time reciprocal link request. We
&lt;br&gt;have NO INTENTION to email you again. You can also reply to this email
&lt;br&gt;with REMOVE in the subject line to make sure we'll NEVER send you any
&lt;br&gt;more e-mails in the future.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22185559&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22185559&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Web-Design-Logo-Design-Related-Link-Exchange-Request-tp22185559p22185559.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-14582993</id>
	<title>Re: Newbus help</title>
	<published>2008-01-02T09:36:40Z</published>
	<updated>2008-01-02T09:36:40Z</updated>
	<author>
		<name>John Baldwin</name>
	</author>
	<content type="html">On Monday 31 December 2007 11:44:59 pm Tiffany Snyder wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Dec 31, 2007 9:52 AM, John Baldwin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=14582993&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jhb@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Saturday 29 December 2007 02:39:41 pm Tiffany Snyder wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I'm bringing up a system with FreeBSD-6.2 that has 2 Host Bridges. 1
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; host-PCI and the other is host-Hypertransport bridge. Currently only
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; the host-PCI bridge gets recognized and cleanly attaches all the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; devices underneath it. The questions are;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; (1) Can you tell or point to a piece of code that adds a second host
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; bridge? I assume this get added as a child of nexus
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; (2) How do I go about defining bus methods for the host-HT bridge and
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; automatically enabling the newbus system to probe and attach child
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; devices and bridges below it? Again, pointer to example code is
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; welcome.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Are you using ACPI or a custom BIOS of some sort?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Custom BIOS that only sets up the PCI host bridge. SW has to manually
&lt;br&gt;&amp;gt; bootstrap the HT host bridge, attach and manage resources for all the
&lt;br&gt;&amp;gt; children below it.
&lt;/div&gt;&lt;br&gt;Ok. &amp;nbsp;Right now that's not easy to do. &amp;nbsp;I'm working on changing x86 to have a 
&lt;br&gt;logical platform device to handle the non-ACPI and non-PC-AT cases. &amp;nbsp;Probably 
&lt;br&gt;this will show up as each platform having its own nexus(4) driver and you can 
&lt;br&gt;then enumerate platform-specific devices like PCI host bridges in your nexus 
&lt;br&gt;driver's attach routine. &amp;nbsp;Right now what you'd have to do is create your 
&lt;br&gt;own 'foo0' that attaches to nexus0 and overrides acpi0 and legacy0 
&lt;br&gt;(unfortunately that means hacking legacy0 as it only checks for acpi0 
&lt;br&gt;currently).
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;John Baldwin
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=14582993&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=14582993&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Newbus-help-tp14540995p14582993.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-14564711</id>
	<title>Re: Newbus help</title>
	<published>2007-12-31T21:31:15Z</published>
	<updated>2007-12-31T21:31:15Z</updated>
	<author>
		<name>M. Warner Losh</name>
	</author>
	<content type="html">In message: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=14564711&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;b63e753b0712312044o1528e57dsa8aad1ce8c952d71@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;Tiffany Snyder&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=14564711&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tiffany.snyder@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;: On Dec 31, 2007 9:52 AM, John Baldwin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=14564711&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jhb@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;: &amp;gt;
&lt;br&gt;: &amp;gt; On Saturday 29 December 2007 02:39:41 pm Tiffany Snyder wrote:
&lt;br&gt;: &amp;gt; &amp;gt; Hi,
&lt;br&gt;: &amp;gt; &amp;gt; I'm bringing up a system with FreeBSD-6.2 that has 2 Host Bridges. 1
&lt;br&gt;: &amp;gt; &amp;gt; host-PCI and the other is host-Hypertransport bridge. Currently only
&lt;br&gt;: &amp;gt; &amp;gt; the host-PCI bridge gets recognized and cleanly attaches all the
&lt;br&gt;: &amp;gt; &amp;gt; devices underneath it. The questions are;
&lt;br&gt;: &amp;gt; &amp;gt; (1) Can you tell or point to a piece of code that adds a second host
&lt;br&gt;: &amp;gt; &amp;gt; bridge? I assume this get added as a child of nexus
&lt;br&gt;: &amp;gt; &amp;gt; (2) How do I go about defining bus methods for the host-HT bridge and
&lt;br&gt;: &amp;gt; &amp;gt; automatically enabling the newbus system to probe and attach child
&lt;br&gt;: &amp;gt; &amp;gt; devices and bridges below it? Again, pointer to example code is
&lt;br&gt;: &amp;gt; &amp;gt; welcome.
&lt;br&gt;: &amp;gt;
&lt;br&gt;: &amp;gt; Are you using ACPI or a custom BIOS of some sort?
&lt;br&gt;: 
&lt;br&gt;: Custom BIOS that only sets up the PCI host bridge. SW has to manually
&lt;br&gt;: bootstrap the HT host bridge, attach and manage resources for all the
&lt;br&gt;: children below it.
&lt;br&gt;&lt;br&gt;FreeBSD's pci bridge driver doesn't do all the things needed to do
&lt;br&gt;this. &amp;nbsp;We'd be happy to help you add them to the driver. &amp;nbsp;It is
&lt;br&gt;something that's been needed for a while, and blocking on another
&lt;br&gt;long-term feature, but something that could be done without it
&lt;br&gt;(although less eloquently).
&lt;br&gt;&lt;br&gt;Warner
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=14564711&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=14564711&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Newbus-help-tp14540995p14564711.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-14564566</id>
	<title>Re: Newbus help</title>
	<published>2007-12-31T20:44:59Z</published>
	<updated>2007-12-31T20:44:59Z</updated>
	<author>
		<name>Tiffany Snyder</name>
	</author>
	<content type="html">On Dec 31, 2007 9:52 AM, John Baldwin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=14564566&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jhb@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Saturday 29 December 2007 02:39:41 pm Tiffany Snyder wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt; I'm bringing up a system with FreeBSD-6.2 that has 2 Host Bridges. 1
&lt;br&gt;&amp;gt; &amp;gt; host-PCI and the other is host-Hypertransport bridge. Currently only
&lt;br&gt;&amp;gt; &amp;gt; the host-PCI bridge gets recognized and cleanly attaches all the
&lt;br&gt;&amp;gt; &amp;gt; devices underneath it. The questions are;
&lt;br&gt;&amp;gt; &amp;gt; (1) Can you tell or point to a piece of code that adds a second host
&lt;br&gt;&amp;gt; &amp;gt; bridge? I assume this get added as a child of nexus
&lt;br&gt;&amp;gt; &amp;gt; (2) How do I go about defining bus methods for the host-HT bridge and
&lt;br&gt;&amp;gt; &amp;gt; automatically enabling the newbus system to probe and attach child
&lt;br&gt;&amp;gt; &amp;gt; devices and bridges below it? Again, pointer to example code is
&lt;br&gt;&amp;gt; &amp;gt; welcome.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Are you using ACPI or a custom BIOS of some sort?
&lt;/div&gt;&lt;br&gt;Custom BIOS that only sets up the PCI host bridge. SW has to manually
&lt;br&gt;bootstrap the HT host bridge, attach and manage resources for all the
&lt;br&gt;children below it.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Tiffany Snyder
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=14564566&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=14564566&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Newbus-help-tp14540995p14564566.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-14560791</id>
	<title>Re: Newbus help</title>
	<published>2007-12-31T09:52:05Z</published>
	<updated>2007-12-31T09:52:05Z</updated>
	<author>
		<name>John Baldwin</name>
	</author>
	<content type="html">On Saturday 29 December 2007 02:39:41 pm Tiffany Snyder wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; I'm bringing up a system with FreeBSD-6.2 that has 2 Host Bridges. 1
&lt;br&gt;&amp;gt; host-PCI and the other is host-Hypertransport bridge. Currently only
&lt;br&gt;&amp;gt; the host-PCI bridge gets recognized and cleanly attaches all the
&lt;br&gt;&amp;gt; devices underneath it. The questions are;
&lt;br&gt;&amp;gt; (1) Can you tell or point to a piece of code that adds a second host
&lt;br&gt;&amp;gt; bridge? I assume this get added as a child of nexus
&lt;br&gt;&amp;gt; (2) How do I go about defining bus methods for the host-HT bridge and
&lt;br&gt;&amp;gt; automatically enabling the newbus system to probe and attach child
&lt;br&gt;&amp;gt; devices and bridges below it? Again, pointer to example code is
&lt;br&gt;&amp;gt; welcome.
&lt;/div&gt;&lt;br&gt;Are you using ACPI or a custom BIOS of some sort?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;John Baldwin
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=14560791&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=14560791&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Newbus-help-tp14540995p14560791.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-14540995</id>
	<title>Newbus help</title>
	<published>2007-12-29T11:39:41Z</published>
	<updated>2007-12-29T11:39:41Z</updated>
	<author>
		<name>Tiffany Snyder</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;I'm bringing up a system with FreeBSD-6.2 that has 2 Host Bridges. 1
&lt;br&gt;host-PCI and the other is host-Hypertransport bridge. Currently only
&lt;br&gt;the host-PCI bridge gets recognized and cleanly attaches all the
&lt;br&gt;devices underneath it. The questions are;
&lt;br&gt;(1) Can you tell or point to a piece of code that adds a second host
&lt;br&gt;bridge? I assume this get added as a child of nexus
&lt;br&gt;(2) How do I go about defining bus methods for the host-HT bridge and
&lt;br&gt;automatically enabling the newbus system to probe and attach child
&lt;br&gt;devices and bridges below it? Again, pointer to example code is
&lt;br&gt;welcome.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Tiffany Snyder.
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=14540995&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=14540995&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Newbus-help-tp14540995p14540995.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-13617889</id>
	<title>iicbus ivars and BUS_ADD_CHILD</title>
	<published>2007-11-06T14:22:27Z</published>
	<updated>2007-11-06T14:22:27Z</updated>
	<author>
		<name>Jason Harmening</name>
	</author>
	<content type="html">Hi everyone,
&lt;br&gt;&lt;br&gt;I've been looking over the 7.0 iicbus code, and I see that the iicbus
&lt;br&gt;driver now uses an ivar to store the address for each child device
&lt;br&gt;(cool!). &amp;nbsp;The ivar is malloc'ed in the iicbus implementation of
&lt;br&gt;BUS_ADD_CHILD, but it doesn't ever appear to be freed. &amp;nbsp;And bus_if.m
&lt;br&gt;doesn't appear to contain a reciprocal for BUS_ADD_CHILD (e.g.
&lt;br&gt;BUS_DELETE_CHILD) that would take care of bus-specific cleanup. &amp;nbsp;Are
&lt;br&gt;ivars just leaked right now when device_delete_child() is called on
&lt;br&gt;the child device, or is the caller of device_delete_child() expected
&lt;br&gt;to free them?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Jason
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=13617889&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=13617889&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/iicbus-ivars-and-BUS_ADD_CHILD-tp13617889p13617889.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7421596</id>
	<title>cites</title>
	<published>2006-11-18T09:29:50Z</published>
	<updated>2006-11-18T09:29:50Z</updated>
	<author>
		<name>Lanka-2</name>
	</author>
	<content type="html">Stocks Quotes in attachement
&lt;br&gt;&lt;br&gt;Toward Muslim minorities was drop Auto of driver in two.
&lt;br&gt;Nikhat a Kazmitimes another is film promotes in sanctity in marriage a affairs of arent?
&lt;br&gt;Smith spots of chink armoury.
&lt;br&gt;Ltte Fresh violence sri kills.
&lt;br&gt;Corus and above Tatacorus set merger deadline is match in Mittal or?
&lt;br&gt;Flow tops help.&lt;br /&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7421596&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7421596&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/cites-tp7421596p7421596.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7252986</id>
	<title>Help with &quot;mono_time&quot;</title>
	<published>2006-11-08T22:07:48Z</published>
	<updated>2006-11-08T22:07:48Z</updated>
	<author>
		<name>Alok Barsode</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;I am working on FreeBSD 4.10. 
&lt;br&gt;I am looking at /net/hostcache.c. 
&lt;br&gt;The functions hc_insert(), hc_timeout, hc_rele and 
&lt;br&gt;hc_timeout access a structure called mono_time.
&lt;br&gt;The search for this structure did not yield much
&lt;br&gt;information.
&lt;br&gt;I couldn't find the declaration of this particular
&lt;br&gt;structure.(in FreeBSD6 its declared in
&lt;br&gt;sys/netinet6/ipsec.c) &amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Am I missing something? 
&lt;br&gt;&lt;br&gt;Thanks, 
&lt;br&gt;Alok.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;____________________________________________________________________________________
&lt;br&gt;Sponsored Link
&lt;br&gt;&lt;br&gt;Degrees online in as fast as 1 Yr - MBA, Bachelor's, Master's, Associate
&lt;br&gt;Click now to apply &lt;a href=&quot;http://yahoo.degrees.info&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://yahoo.degrees.info&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7252986&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7252986&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Device-enumeration-tp6543888p7252986.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7060448</id>
	<title>Working on new-bus</title>
	<published>2006-10-29T04:29:34Z</published>
	<updated>2006-10-29T04:29:34Z</updated>
	<author>
		<name>Mark Eiransen</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;I would like to know if there are open items about new-bus, where I can find
&lt;br&gt;documentation in order to improve it, etc.
&lt;br&gt;&lt;br&gt;Thanks for the help!
&lt;br&gt;Mark
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7060448&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7060448&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Working-on-new-bus-tp7060448p7060448.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7020287</id>
	<title>Re: Network device driver issues.</title>
	<published>2006-10-26T13:04:16Z</published>
	<updated>2006-10-26T13:04:16Z</updated>
	<author>
		<name>M. Warner Losh</name>
	</author>
	<content type="html">In message: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7020287&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;20061026132453.48510.qmail@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Alok Barsode &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7020287&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;namaskar_alok@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;: Hello,
&lt;br&gt;: I am porting freeBSD 4.10 to a embedded board. 
&lt;br&gt;: The board has 2 Three speed Ethernet Controller and a
&lt;br&gt;: Cicada PHY.
&lt;br&gt;: I have implemented a pseudo-bus (called mpcbus) which
&lt;br&gt;: attaches itself to nexus.
&lt;br&gt;: i plan to attach all the devices to the mpcbus. (i
&lt;br&gt;: will be calling the IDENTIFY function for each
&lt;br&gt;: device-driver).All the devices are memory 
&lt;br&gt;: mapped.
&lt;br&gt;: Now i have 2 TSEC(Three-Speed Ethernet Controller)on
&lt;br&gt;: the board(say TSEC0 and TSEC1). 
&lt;br&gt;: During the IDENTIFY routine, should the function
&lt;br&gt;: BUS_ADD_CHILD() called twice ,once for each TSEC?
&lt;br&gt;&lt;br&gt;Yes, that would work. &amp;nbsp;Actaully, you need to write a more real bus
&lt;br&gt;that adds the children, but short of that, calling bus_add_child would
&lt;br&gt;be a short-term workaround.
&lt;br&gt;&lt;br&gt;: I also dont what the PHY to be configured sepatately.
&lt;br&gt;: (I right now dont want any &amp;quot;mii&amp;quot; stuff) I will
&lt;br&gt;: configure the PHY manually. is this fine 
&lt;br&gt;: with the freeBSD point of view?
&lt;br&gt;&lt;br&gt;: I dont understand the
&lt;br&gt;: struct xxx_mii_frame. 
&lt;br&gt;: i am looking at the National Semiconductor
&lt;br&gt;: DP83820/DP83821 gigabit 
&lt;br&gt;: ethernet driver (i.e /dev/nge/if_nge.c)
&lt;br&gt;: 
&lt;br&gt;: &amp;nbsp;The frame structure is: 
&lt;br&gt;: struct nge_mii_frame {
&lt;br&gt;: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;u_int8_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mii_stdelim;
&lt;br&gt;: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;u_int8_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mii_opcode;
&lt;br&gt;: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;u_int8_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mii_phyaddr;
&lt;br&gt;: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;u_int8_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mii_regaddr;
&lt;br&gt;: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;u_int8_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mii_turnaround;
&lt;br&gt;: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;u_int16_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mii_data;
&lt;br&gt;: &amp;nbsp;};All the drivers use this kind of frame structure. 
&lt;br&gt;: Is this a generic one? how does one use it? 
&lt;br&gt;&lt;br&gt;That looks like it might be left over from ports to other OSes. &amp;nbsp;What
&lt;br&gt;you are seeing in the nge driver is that it is reading/writing the
&lt;br&gt;registers and doing the transactions in a rather long way. &amp;nbsp;It is best
&lt;br&gt;viewed as bitbanging the information out.
&lt;br&gt;&lt;br&gt;: is there a simple driver i can look at? or a simple
&lt;br&gt;: tutorial on network drivers?
&lt;br&gt;: the National Semiconductor driver is a bit complex.
&lt;br&gt;&lt;br&gt;Generally, one just lets the MII bus do its thing. &amp;nbsp;If you look at the
&lt;br&gt;if_ate driver, you can see this in operation:
&lt;br&gt;&lt;br&gt;#include &amp;lt;dev/mii/mii.h&amp;gt;
&lt;br&gt;#include &amp;lt;dev/mii/miivar.h&amp;gt;
&lt;br&gt;...
&lt;br&gt;#include &amp;quot;miibus_if.h&amp;quot;
&lt;br&gt;...
&lt;br&gt;/* in softc */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; device_t miibus;		/* My child miibus */
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;after allocating the ifp:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (mii_phy_probe(dev, &amp;sc-&amp;gt;miibus, ate_ifmedia_upd, ate_ifmedia_sts)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; device_printf(dev, &amp;quot;Cannot find my PHY.\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; err = ENXIO;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; goto out;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;...
&lt;br&gt;/*
&lt;br&gt;&amp;nbsp;* Change media according to request.
&lt;br&gt;&amp;nbsp;*/
&lt;br&gt;static int
&lt;br&gt;ate_ifmedia_upd(struct ifnet *ifp)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct ate_softc *sc = ifp-&amp;gt;if_softc;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct mii_data *mii;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mii = device_get_softc(sc-&amp;gt;miibus);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ATE_LOCK(sc);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mii_mediachg(mii);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ATE_UNLOCK(sc);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (0);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;/*
&lt;br&gt;&amp;nbsp;* Notify the world which media we're using.
&lt;br&gt;&amp;nbsp;*/
&lt;br&gt;static void
&lt;br&gt;ate_ifmedia_sts(struct ifnet *ifp, struct ifmediareq *ifmr)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct ate_softc *sc = ifp-&amp;gt;if_softc;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct mii_data *mii;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mii = device_get_softc(sc-&amp;gt;miibus);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ATE_LOCK(sc);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mii_pollstat(mii);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ifmr-&amp;gt;ifm_active = mii-&amp;gt;mii_media_active;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ifmr-&amp;gt;ifm_status = mii-&amp;gt;mii_media_status;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ATE_UNLOCK(sc);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;static void
&lt;br&gt;ate_tick(void *xsc)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct ate_softc *sc = xsc;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct mii_data *mii;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int active;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* The KB920x boot loader tests ETH_SR &amp; ETH_SR_LINK and will ask
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* the MII if there's a link if this bit is clear. &amp;nbsp;Not sure if we
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* should do the same thing here or not.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ATE_ASSERT_LOCKED(sc);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (sc-&amp;gt;miibus != NULL) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mii = device_get_softc(sc-&amp;gt;miibus);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; active = mii-&amp;gt;mii_media_active;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mii_tick(mii);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (mii-&amp;gt;mii_media_status &amp; IFM_ACTIVE &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;active != mii-&amp;gt;mii_media_active) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* The speed and full/half-duplex state needs
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* to be reflected in the ETH_CFG register, it
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* seems.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (IFM_SUBTYPE(mii-&amp;gt;mii_media_active) == IFM_10_T)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WR4(sc, ETH_CFG, RD4(sc, ETH_CFG) &amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ~ETH_CFG_SPD);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WR4(sc, ETH_CFG, RD4(sc, ETH_CFG) |
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ETH_CFG_SPD);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (mii-&amp;gt;mii_media_active &amp; IFM_FDX)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WR4(sc, ETH_CFG, RD4(sc, ETH_CFG) |
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ETH_CFG_FD);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WR4(sc, ETH_CFG, RD4(sc, ETH_CFG) &amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ~ETH_CFG_FD);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Schedule another timeout one second from now.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; callout_reset(&amp;sc-&amp;gt;tick_ch, hz, ate_tick, sc);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;At the end of the if_init routine, you need to start the ticker:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; callout_reset(&amp;sc-&amp;gt;tick_ch, hz, ate_tick, sc);
&lt;br&gt;&lt;br&gt;You also need to implement the read/write regitser stuff
&lt;br&gt;&lt;br&gt;Add this to your device's method table:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* MII interface */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DEVMETHOD(miibus_readreg,	ate_miibus_readreg),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DEVMETHOD(miibus_writereg,	ate_miibus_writereg),
&lt;br&gt;&lt;br&gt;For comparison, here's the ate read/write routines:
&lt;br&gt;&lt;br&gt;/*
&lt;br&gt;&amp;nbsp;* MII bus support routines.
&lt;br&gt;&amp;nbsp;*/
&lt;br&gt;static int
&lt;br&gt;ate_miibus_readreg(device_t dev, int phy, int reg)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct ate_softc *sc;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int val;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* XXX if we implement agressive power savings, then we need
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* XXX to make sure that the clock to the emac is on here
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (phy != 0)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (0xffff);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sc = device_get_softc(dev);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DELAY(1);	/* Hangs w/o this delay really 30.5us atm */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WR4(sc, ETH_MAN, ETH_MAN_REG_RD(phy, reg));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while ((RD4(sc, ETH_SR) &amp; ETH_SR_IDLE) == 0)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; continue;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; val = RD4(sc, ETH_MAN) &amp; ETH_MAN_VALUE_MASK;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (val);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;static void
&lt;br&gt;ate_miibus_writereg(device_t dev, int phy, int reg, int data)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct ate_softc *sc;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* XXX if we implement agressive power savings, then we need
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* XXX to make sure that the clock to the emac is on here
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sc = device_get_softc(dev);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WR4(sc, ETH_MAN, ETH_MAN_REG_WR(phy, reg, data));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while ((RD4(sc, ETH_SR) &amp; ETH_SR_IDLE) == 0)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; continue;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;The ate hardware does the bit-banging for you...
&lt;br&gt;&lt;br&gt;FreeBSD doesn't directly program the PHY. &amp;nbsp;Your driver still needs to
&lt;br&gt;do that, as illustrated above. &amp;nbsp;This just takes the drudgery out of
&lt;br&gt;it.
&lt;br&gt;&lt;br&gt;Warner
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7020287&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7020287&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Network-device-driver-issues.-tp7011036p7020287.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-7011036</id>
	<title>Network device driver issues.</title>
	<published>2006-10-26T07:24:53Z</published>
	<updated>2006-10-26T07:24:53Z</updated>
	<author>
		<name>Alok Barsode</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;I am porting freeBSD 4.10 to a embedded board. 
&lt;br&gt;The board has 2 Three speed Ethernet Controller and a
&lt;br&gt;Cicada PHY.
&lt;br&gt;I have implemented a pseudo-bus (called mpcbus) which
&lt;br&gt;attaches itself to nexus.
&lt;br&gt;i plan to attach all the devices to the mpcbus. (i
&lt;br&gt;will be calling the IDENTIFY function for each
&lt;br&gt;device-driver).All the devices are memory 
&lt;br&gt;mapped.
&lt;br&gt;Now i have 2 TSEC(Three-Speed Ethernet Controller)on
&lt;br&gt;the board(say TSEC0 and TSEC1). 
&lt;br&gt;During the IDENTIFY routine, should the function
&lt;br&gt;BUS_ADD_CHILD() called twice ,once for each TSEC?
&lt;br&gt;&lt;br&gt;I also dont what the PHY to be configured sepatately.
&lt;br&gt;(I right now dont want any &amp;quot;mii&amp;quot; stuff) I will
&lt;br&gt;configure the PHY manually. is this fine 
&lt;br&gt;with the freeBSD point of view? I dont understand the
&lt;br&gt;struct xxx_mii_frame. 
&lt;br&gt;i am looking at the National Semiconductor
&lt;br&gt;DP83820/DP83821 gigabit 
&lt;br&gt;ethernet driver (i.e /dev/nge/if_nge.c)
&lt;br&gt;&lt;br&gt;&amp;nbsp;The frame structure is: 
&lt;br&gt;struct nge_mii_frame {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;u_int8_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mii_stdelim;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;u_int8_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mii_opcode;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;u_int8_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mii_phyaddr;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;u_int8_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mii_regaddr;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;u_int8_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mii_turnaround;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;u_int16_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mii_data;
&lt;br&gt;&amp;nbsp;};All the drivers use this kind of frame structure. 
&lt;br&gt;Is this a generic one? how does one use it? 
&lt;br&gt;&lt;br&gt;is there a simple driver i can look at? or a simple
&lt;br&gt;tutorial on network drivers?
&lt;br&gt;the National Semiconductor driver is a bit complex.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;alok.
&lt;br&gt;&lt;br&gt;__________________________________________________
&lt;br&gt;Do You Yahoo!?
&lt;br&gt;Tired of spam? &amp;nbsp;Yahoo! Mail has the best spam protection around 
&lt;br&gt;&lt;a href=&quot;http://mail.yahoo.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.yahoo.com&lt;/a&gt;&amp;nbsp;
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7011036&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=7011036&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Network-device-driver-issues.-tp7011036p7011036.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-6681885</id>
	<title>Re: Device enumeration process</title>
	<published>2006-10-06T09:42:31Z</published>
	<updated>2006-10-06T09:42:31Z</updated>
	<author>
		<name>M. Warner Losh</name>
	</author>
	<content type="html">In message: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6681885&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;20061006073434.71730.qmail@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Alok Barsode &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6681885&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;namaskar_alok@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;: Thanks for ur earliers replies. They helped me a lot
&lt;br&gt;: in understanding the newbus architecture. 
&lt;br&gt;: I am involved in a freeBSD port to a freescale board. 
&lt;br&gt;&lt;br&gt;Cool! &amp;nbsp;Remind me: is the freescale an arm design or a Power PC one?
&lt;br&gt;&lt;br&gt;: When i/o configuration is in progress during startup,
&lt;br&gt;: are the drivers for specific busses alreay assosciated
&lt;br&gt;: with them or the association happens at run time ?
&lt;br&gt;&lt;br&gt;The drivers are associated with the busses at compile time (as
&lt;br&gt;extended via modules that are loaded). &amp;nbsp;The assignment of specific
&lt;br&gt;device nodes to drivers is done at run time.
&lt;br&gt;&lt;br&gt;: for example : 
&lt;br&gt;: when nexus is being attached to root_bus,
&lt;br&gt;: the method devclass_find_internal(&amp;quot;nexus&amp;quot;, 0, TRUE) is
&lt;br&gt;: invoked(in method make_device).Now does a nexus
&lt;br&gt;: devclass already exist ( it is created through the
&lt;br&gt;: macro DRIVER_MODULE(nexus, root, nexus_driver,
&lt;br&gt;: nexus_devclass, 0, 0);) or it is created at runtime ? 
&lt;br&gt;: 
&lt;br&gt;: if it is created at runtime how the nexus_driver get
&lt;br&gt;: assciated with nexus? 
&lt;br&gt;&lt;br&gt;nexus_driver gets associated with nexus here:
&lt;br&gt;&lt;br&gt;/*
&lt;br&gt;&amp;nbsp;* Determine i/o configuration for a machine.
&lt;br&gt;&amp;nbsp;*/
&lt;br&gt;static void
&lt;br&gt;configure_first(dummy)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; void *dummy;
&lt;br&gt;{
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* nexus0 is the top of the i386 device tree */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; device_add_child(root_bus, &amp;quot;nexus&amp;quot;, 0);
&lt;br&gt;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;at least tenatively associated. &amp;nbsp;configure_first is run via the
&lt;br&gt;SYSINIT at SI_SUB_CONFIGURE as the first thing. &amp;nbsp;In fact, all the
&lt;br&gt;autoconf look similar in this respect. &amp;nbsp;The arm one does the same
&lt;br&gt;thing.
&lt;br&gt;&lt;br&gt;If you look at sys/arm/at91/at91.c, you'll see code:
&lt;br&gt;&lt;br&gt;static void
&lt;br&gt;at91_identify(driver_t *drv, device_t parent)
&lt;br&gt;{
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BUS_ADD_CHILD(parent, 0, &amp;quot;atmelarm&amp;quot;, 0);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;which is how the atmelbus gets added to nexus. &amp;nbsp;Again, the atmelbus is
&lt;br&gt;about the best example I can easily find in the tree...
&lt;br&gt;&lt;br&gt;Warner
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6681885&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6681885&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Device-enumeration-tp6543888p6681885.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-6674532</id>
	<title>Device enumeration process</title>
	<published>2006-10-06T01:34:34Z</published>
	<updated>2006-10-06T01:34:34Z</updated>
	<author>
		<name>Alok Barsode</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;Thanks for ur earliers replies. They helped me a lot
&lt;br&gt;in understanding the newbus architecture. 
&lt;br&gt;I am involved in a freeBSD port to a freescale board. 
&lt;br&gt;&lt;br&gt;I still had a few doubts:
&lt;br&gt;I am looking at the autoconf.c file for the i386
&lt;br&gt;architecture. 
&lt;br&gt;&lt;br&gt;When i/o configuration is in progress during startup,
&lt;br&gt;are the drivers for specific busses alreay assosciated
&lt;br&gt;with them or the association happens at run time ?
&lt;br&gt;for example : 
&lt;br&gt;when nexus is being attached to root_bus,
&lt;br&gt;the method devclass_find_internal(&amp;quot;nexus&amp;quot;, 0, TRUE) is
&lt;br&gt;invoked(in method make_device).Now does a nexus
&lt;br&gt;devclass already exist ( it is created through the
&lt;br&gt;macro DRIVER_MODULE(nexus, root, nexus_driver,
&lt;br&gt;nexus_devclass, 0, 0);) or it is created at runtime ? 
&lt;br&gt;&lt;br&gt;if it is created at runtime how the nexus_driver get
&lt;br&gt;assciated with nexus? 
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Alok.
&lt;br&gt;&lt;br&gt;&lt;br&gt;__________________________________________________
&lt;br&gt;Do You Yahoo!?
&lt;br&gt;Tired of spam? &amp;nbsp;Yahoo! Mail has the best spam protection around 
&lt;br&gt;&lt;a href=&quot;http://mail.yahoo.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.yahoo.com&lt;/a&gt;&amp;nbsp;
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6674532&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6674532&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Device-enumeration-tp6543888p6674532.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-6609765</id>
	<title>Re: Properly managing sub-allocations</title>
	<published>2006-10-02T15:08:12Z</published>
	<updated>2006-10-02T15:08:12Z</updated>
	<author>
		<name>M. Warner Losh</name>
	</author>
	<content type="html">In message: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6609765&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;200610021620.44185.john@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; John Baldwin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6609765&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;john@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;: On Monday 02 October 2006 15:42, M. Warner Losh wrote:
&lt;br&gt;: &amp;gt; In message: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6609765&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;200610021403.50339.john@...&lt;/a&gt;&amp;gt;
&lt;br&gt;: &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; John Baldwin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6609765&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;john@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;: &amp;gt; : &amp;gt; However, this may break some existing drivers that allocate a BAR,
&lt;br&gt;: &amp;gt; : &amp;gt; peek at its type and then either activate it or allocate another
&lt;br&gt;: &amp;gt; : &amp;gt; BAR... &amp;nbsp;The TAG is valid, but the handle isn't.
&lt;br&gt;: &amp;gt; : 
&lt;br&gt;: &amp;gt; : They generally peak at the BAR register itself though, not the value of 
&lt;br&gt;: &amp;gt; : rman_get_bustag() though, right?
&lt;br&gt;: &amp;gt; 
&lt;br&gt;: &amp;gt; Some do, some get the resource and look at it. &amp;nbsp;There's a lot of
&lt;br&gt;: &amp;gt; variance here. &amp;nbsp;Do you put knowledge of how to decode PCI bars into
&lt;br&gt;: &amp;gt; every driver, or do you let the pci bus take care of it? &amp;nbsp;Since the
&lt;br&gt;: &amp;gt; knowledge is nearly trivial, different people decide differenly. &amp;nbsp;It
&lt;br&gt;: &amp;gt; is still a technique that has been used, and you'll need to be careful
&lt;br&gt;: &amp;gt; to make sure you don't break anything. &amp;nbsp;After all, 0 is a valid I/O
&lt;br&gt;: &amp;gt; tag and it is also the default value...
&lt;br&gt;: 
&lt;br&gt;: Err, how can code examine the actual bus tag value of a non-active resource? &amp;nbsp;
&lt;br&gt;: By definition it's set an opaque MD value. &amp;nbsp;You can't compare it against 
&lt;br&gt;: SYS_RES_MEMORY for example. &amp;nbsp;On i386 systems it happens to be an int, on some 
&lt;br&gt;: other systems (alpha maybe?) I think it can be a pointer to a structure of 
&lt;br&gt;: function pointers for the different bus space operations. &amp;nbsp;I don't think any 
&lt;br&gt;: MI code should ever be examining the bus tag or handle except to pass them as 
&lt;br&gt;: opaque parameters to bus_space_*().
&lt;br&gt;&lt;br&gt;Actually, you are right. &amp;nbsp;I'm confusing success/failure of allocating
&lt;br&gt;a I/O and/or Memory bar with this...
&lt;br&gt;&lt;br&gt;Warner
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6609765&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6609765&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Properly-managing-sub-allocations-tp6605840p6609765.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-6609137</id>
	<title>Re: Properly managing sub-allocations</title>
	<published>2006-10-02T14:20:43Z</published>
	<updated>2006-10-02T14:20:43Z</updated>
	<author>
		<name>John Baldwin-2</name>
	</author>
	<content type="html">On Monday 02 October 2006 15:42, M. Warner Losh wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; In message: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6609137&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;200610021403.50339.john@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; John Baldwin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6609137&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;john@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; : &amp;gt; However, this may break some existing drivers that allocate a BAR,
&lt;br&gt;&amp;gt; : &amp;gt; peek at its type and then either activate it or allocate another
&lt;br&gt;&amp;gt; : &amp;gt; BAR... &amp;nbsp;The TAG is valid, but the handle isn't.
&lt;br&gt;&amp;gt; : 
&lt;br&gt;&amp;gt; : They generally peak at the BAR register itself though, not the value of 
&lt;br&gt;&amp;gt; : rman_get_bustag() though, right?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Some do, some get the resource and look at it. &amp;nbsp;There's a lot of
&lt;br&gt;&amp;gt; variance here. &amp;nbsp;Do you put knowledge of how to decode PCI bars into
&lt;br&gt;&amp;gt; every driver, or do you let the pci bus take care of it? &amp;nbsp;Since the
&lt;br&gt;&amp;gt; knowledge is nearly trivial, different people decide differenly. &amp;nbsp;It
&lt;br&gt;&amp;gt; is still a technique that has been used, and you'll need to be careful
&lt;br&gt;&amp;gt; to make sure you don't break anything. &amp;nbsp;After all, 0 is a valid I/O
&lt;br&gt;&amp;gt; tag and it is also the default value...
&lt;/div&gt;&lt;br&gt;Err, how can code examine the actual bus tag value of a non-active resource? &amp;nbsp;
&lt;br&gt;By definition it's set an opaque MD value. &amp;nbsp;You can't compare it against 
&lt;br&gt;SYS_RES_MEMORY for example. &amp;nbsp;On i386 systems it happens to be an int, on some 
&lt;br&gt;other systems (alpha maybe?) I think it can be a pointer to a structure of 
&lt;br&gt;function pointers for the different bus space operations. &amp;nbsp;I don't think any 
&lt;br&gt;MI code should ever be examining the bus tag or handle except to pass them as 
&lt;br&gt;opaque parameters to bus_space_*().
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;John Baldwin
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6609137&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6609137&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Properly-managing-sub-allocations-tp6605840p6609137.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-6608548</id>
	<title>Re: Properly managing sub-allocations</title>
	<published>2006-10-02T13:42:04Z</published>
	<updated>2006-10-02T13:42:04Z</updated>
	<author>
		<name>M. Warner Losh</name>
	</author>
	<content type="html">In message: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6608548&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;200610021403.50339.john@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; John Baldwin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6608548&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;john@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;: &amp;gt; However, this may break some existing drivers that allocate a BAR,
&lt;br&gt;: &amp;gt; peek at its type and then either activate it or allocate another
&lt;br&gt;: &amp;gt; BAR... &amp;nbsp;The TAG is valid, but the handle isn't.
&lt;br&gt;: 
&lt;br&gt;: They generally peak at the BAR register itself though, not the value of 
&lt;br&gt;: rman_get_bustag() though, right?
&lt;br&gt;&lt;br&gt;Some do, some get the resource and look at it. &amp;nbsp;There's a lot of
&lt;br&gt;variance here. &amp;nbsp;Do you put knowledge of how to decode PCI bars into
&lt;br&gt;every driver, or do you let the pci bus take care of it? &amp;nbsp;Since the
&lt;br&gt;knowledge is nearly trivial, different people decide differenly. &amp;nbsp;It
&lt;br&gt;is still a technique that has been used, and you'll need to be careful
&lt;br&gt;to make sure you don't break anything. &amp;nbsp;After all, 0 is a valid I/O
&lt;br&gt;tag and it is also the default value...
&lt;br&gt;&lt;br&gt;: &amp;gt; This specific problem will never happen in pc98, since there are no
&lt;br&gt;: &amp;gt; ACPI pc98 machines and can never be.
&lt;br&gt;: 
&lt;br&gt;: Yeah, but I can cleanup the stuff in ACPI a good bit if I can get it
&lt;br&gt;: to stop peeking at the &amp;quot;real&amp;quot; resource to get the bus tag. &amp;nbsp;Also, I
&lt;br&gt;: think fixing this would be important for a driver that wanted to
&lt;br&gt;: sub-alloc its resources out to children (like vgapci, which
&lt;br&gt;: currently cheats on that).
&lt;br&gt;&lt;br&gt;Good point. &amp;nbsp;I don't dispute this is a good thing, just that it will
&lt;br&gt;solve a problem we're currently having. &amp;nbsp;Given the push for embedded,
&lt;br&gt;this is a problem worth solving.
&lt;br&gt;&lt;br&gt;Warner
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6608548&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6608548&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Properly-managing-sub-allocations-tp6605840p6608548.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-6606943</id>
	<title>Re: Properly managing sub-allocations</title>
	<published>2006-10-02T12:03:50Z</published>
	<updated>2006-10-02T12:03:50Z</updated>
	<author>
		<name>John Baldwin-2</name>
	</author>
	<content type="html">On Monday 02 October 2006 13:39, M. Warner Losh wrote:
&lt;br&gt;&amp;gt; In message: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6606943&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;200610021323.50997.john@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; John Baldwin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6606943&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;john@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; : I'm trying to cleanup a few things in apci and I ran into what I think is 
&lt;br&gt;a 
&lt;br&gt;&amp;gt; : new-bus architecture issue. &amp;nbsp;Specifically, acpi likes to allocate system 
&lt;br&gt;&amp;gt; : resource resources from its parent, and then turn around and sub-alloc 
&lt;br&gt;those 
&lt;br&gt;&amp;gt; : out to children. &amp;nbsp;This mostly works fine except for the bus space details 
&lt;br&gt;of 
&lt;br&gt;&amp;gt; : the bus tag and bus handle. &amp;nbsp;Currently acpi(4) just copies the tag from 
&lt;br&gt;the 
&lt;br&gt;&amp;gt; : corresponding resource from the parent and sets the handle to the start of 
&lt;br&gt;&amp;gt; : the resource. &amp;nbsp;This just happens to work currently because i386 and amd64 
&lt;br&gt;use 
&lt;br&gt;&amp;gt; : the start of the resource for the handle for SYS_RES_IO and overwrite the 
&lt;br&gt;&amp;gt; : handle in nexus_activate_resource() for SYS_RES_MEMORY. &amp;nbsp;This does add 
&lt;br&gt;some 
&lt;br&gt;&amp;gt; : ugliness though in that acpi needs to go find the parent resouce to copy 
&lt;br&gt;the 
&lt;br&gt;&amp;gt; : bus tag. &amp;nbsp;However, it's current algorithm wouldn't work in general (PC98 
&lt;br&gt;&amp;gt; : needs to alloc bus handles, and it does so in nexus_alloc_resource() for 
&lt;br&gt;&amp;gt; : example).
&lt;br&gt;&amp;gt; : 
&lt;br&gt;&amp;gt; : To solve this, I think we need to stop setting bus tags and handles in 
&lt;br&gt;&amp;gt; : bus_alloc_resource(). &amp;nbsp;One solution might be to add a new bus method to 
&lt;br&gt;set 
&lt;br&gt;&amp;gt; : those for a resource, but I think the better solution would be to set the 
&lt;br&gt;bus 
&lt;br&gt;&amp;gt; : tags and handles in bus_activate_resource(). &amp;nbsp;It already sort of does this 
&lt;br&gt;&amp;gt; : for some cases (SYS_RES_MEMORY on x86 for example) and will work with the 
&lt;br&gt;&amp;gt; : existing ACPI model (it already passes up activate_resource to the parent, 
&lt;br&gt;so 
&lt;br&gt;&amp;gt; : we would just have to remove the explicit setting of the bus tag and 
&lt;br&gt;handle).
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; : 
&lt;br&gt;&amp;gt; : I actually wonder if this isn't how things are supposed to be in the first 
&lt;br&gt;&amp;gt; : place and that the current aberrations are just bugs?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I think you are right. &amp;nbsp;Thinking about it, you can't access the
&lt;br&gt;&amp;gt; resources until you've activated them...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; However, this may break some existing drivers that allocate a BAR,
&lt;br&gt;&amp;gt; peek at its type and then either activate it or allocate another
&lt;br&gt;&amp;gt; BAR... &amp;nbsp;The TAG is valid, but the handle isn't.
&lt;/div&gt;&lt;br&gt;They generally peak at the BAR register itself though, not the value of 
&lt;br&gt;rman_get_bustag() though, right?
&lt;br&gt;&lt;br&gt;&amp;gt; This specific problem will never happen in pc98, since there are no
&lt;br&gt;&amp;gt; ACPI pc98 machines and can never be.
&lt;br&gt;&lt;br&gt;Yeah, but I can cleanup the stuff in ACPI a good bit if I can get it to stop 
&lt;br&gt;peeking at the &amp;quot;real&amp;quot; resource to get the bus tag. &amp;nbsp;Also, I think fixing this 
&lt;br&gt;would be important for a driver that wanted to sub-alloc its resources out to 
&lt;br&gt;children (like vgapci, which currently cheats on that).
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;John Baldwin
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6606943&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6606943&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Properly-managing-sub-allocations-tp6605840p6606943.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-6606166</id>
	<title>Re: Properly managing sub-allocations</title>
	<published>2006-10-02T11:39:54Z</published>
	<updated>2006-10-02T11:39:54Z</updated>
	<author>
		<name>M. Warner Losh</name>
	</author>
	<content type="html">In message: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6606166&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;200610021323.50997.john@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; John Baldwin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6606166&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;john@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;: I'm trying to cleanup a few things in apci and I ran into what I think is a 
&lt;br&gt;: new-bus architecture issue. &amp;nbsp;Specifically, acpi likes to allocate system 
&lt;br&gt;: resource resources from its parent, and then turn around and sub-alloc those 
&lt;br&gt;: out to children. &amp;nbsp;This mostly works fine except for the bus space details of 
&lt;br&gt;: the bus tag and bus handle. &amp;nbsp;Currently acpi(4) just copies the tag from the 
&lt;br&gt;: corresponding resource from the parent and sets the handle to the start of 
&lt;br&gt;: the resource. &amp;nbsp;This just happens to work currently because i386 and amd64 use 
&lt;br&gt;: the start of the resource for the handle for SYS_RES_IO and overwrite the 
&lt;br&gt;: handle in nexus_activate_resource() for SYS_RES_MEMORY. &amp;nbsp;This does add some 
&lt;br&gt;: ugliness though in that acpi needs to go find the parent resouce to copy the 
&lt;br&gt;: bus tag. &amp;nbsp;However, it's current algorithm wouldn't work in general (PC98 
&lt;br&gt;: needs to alloc bus handles, and it does so in nexus_alloc_resource() for 
&lt;br&gt;: example).
&lt;br&gt;: 
&lt;br&gt;: To solve this, I think we need to stop setting bus tags and handles in 
&lt;br&gt;: bus_alloc_resource(). &amp;nbsp;One solution might be to add a new bus method to set 
&lt;br&gt;: those for a resource, but I think the better solution would be to set the bus 
&lt;br&gt;: tags and handles in bus_activate_resource(). &amp;nbsp;It already sort of does this 
&lt;br&gt;: for some cases (SYS_RES_MEMORY on x86 for example) and will work with the 
&lt;br&gt;: existing ACPI model (it already passes up activate_resource to the parent, so 
&lt;br&gt;: we would just have to remove the explicit setting of the bus tag and handle).
&lt;br&gt;: 
&lt;br&gt;: I actually wonder if this isn't how things are supposed to be in the first 
&lt;br&gt;: place and that the current aberrations are just bugs?
&lt;br&gt;&lt;br&gt;I think you are right. &amp;nbsp;Thinking about it, you can't access the
&lt;br&gt;resources until you've activated them...
&lt;br&gt;&lt;br&gt;However, this may break some existing drivers that allocate a BAR,
&lt;br&gt;peek at its type and then either activate it or allocate another
&lt;br&gt;BAR... &amp;nbsp;The TAG is valid, but the handle isn't.
&lt;br&gt;&lt;br&gt;This specific problem will never happen in pc98, since there are no
&lt;br&gt;ACPI pc98 machines and can never be.
&lt;br&gt;&lt;br&gt;Warner
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6606166&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6606166&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Properly-managing-sub-allocations-tp6605840p6606166.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-6605840</id>
	<title>Properly managing sub-allocations</title>
	<published>2006-10-02T11:23:50Z</published>
	<updated>2006-10-02T11:23:50Z</updated>
	<author>
		<name>John Baldwin-2</name>
	</author>
	<content type="html">I'm trying to cleanup a few things in apci and I ran into what I think is a 
&lt;br&gt;new-bus architecture issue. &amp;nbsp;Specifically, acpi likes to allocate system 
&lt;br&gt;resource resources from its parent, and then turn around and sub-alloc those 
&lt;br&gt;out to children. &amp;nbsp;This mostly works fine except for the bus space details of 
&lt;br&gt;the bus tag and bus handle. &amp;nbsp;Currently acpi(4) just copies the tag from the 
&lt;br&gt;corresponding resource from the parent and sets the handle to the start of 
&lt;br&gt;the resource. &amp;nbsp;This just happens to work currently because i386 and amd64 use 
&lt;br&gt;the start of the resource for the handle for SYS_RES_IO and overwrite the 
&lt;br&gt;handle in nexus_activate_resource() for SYS_RES_MEMORY. &amp;nbsp;This does add some 
&lt;br&gt;ugliness though in that acpi needs to go find the parent resouce to copy the 
&lt;br&gt;bus tag. &amp;nbsp;However, it's current algorithm wouldn't work in general (PC98 
&lt;br&gt;needs to alloc bus handles, and it does so in nexus_alloc_resource() for 
&lt;br&gt;example).
&lt;br&gt;&lt;br&gt;To solve this, I think we need to stop setting bus tags and handles in 
&lt;br&gt;bus_alloc_resource(). &amp;nbsp;One solution might be to add a new bus method to set 
&lt;br&gt;those for a resource, but I think the better solution would be to set the bus 
&lt;br&gt;tags and handles in bus_activate_resource(). &amp;nbsp;It already sort of does this 
&lt;br&gt;for some cases (SYS_RES_MEMORY on x86 for example) and will work with the 
&lt;br&gt;existing ACPI model (it already passes up activate_resource to the parent, so 
&lt;br&gt;we would just have to remove the explicit setting of the bus tag and handle).
&lt;br&gt;&lt;br&gt;I actually wonder if this isn't how things are supposed to be in the first 
&lt;br&gt;place and that the current aberrations are just bugs?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;John Baldwin
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6605840&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6605840&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Properly-managing-sub-allocations-tp6605840p6605840.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-6581988</id>
	<title>Re: more Device enumeration</title>
	<published>2006-09-30T12:43:34Z</published>
	<updated>2006-09-30T12:43:34Z</updated>
	<author>
		<name>M. Warner Losh</name>
	</author>
	<content type="html">In message: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6581988&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;20060930120043.41538.qmail@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Alok Barsode &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6581988&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;namaskar_alok@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;: A question which arises is, If the kernel calls the
&lt;br&gt;: probe routine (in case of PCI)for all the devices
&lt;br&gt;: attached to it during bus-enumeration, whats the point
&lt;br&gt;: of having the device entries in GENERIC?
&lt;br&gt;&lt;br&gt;Smaller kernels can be created by omitting unwanted/unneeded devices.
&lt;br&gt;&lt;br&gt;: does the
&lt;br&gt;: bus-dependent code call the probe routine of the
&lt;br&gt;: device-driver,for only those devices which are
&lt;br&gt;: mentioned in GENERIC file.
&lt;br&gt;&lt;br&gt;Only for those modules that are loaded, would be a better way to say
&lt;br&gt;it. &amp;nbsp;The GENERIC file effectively specifies which modules to load by
&lt;br&gt;creating a makefile that preloads them.
&lt;br&gt;&lt;br&gt;: I am writing a device driver for a memory mapped
&lt;br&gt;: ethernet device.Does it HAVE to be attached to a
&lt;br&gt;: bus?
&lt;br&gt;&lt;br&gt;Yes. &amp;nbsp;It must be attached to a bus. &amp;nbsp;The device, in hardware, is
&lt;br&gt;attached to a bus by definition. &amp;nbsp;The software reflects this hardware
&lt;br&gt;definition and requires that you attach it to a bus. &amp;nbsp;The word bus in
&lt;br&gt;software just means that it has to attach somewhere.
&lt;br&gt;&lt;br&gt;: Its the only device I want to support(right
&lt;br&gt;: now).Is it not possible to hard-code the probe-attach
&lt;br&gt;: routine calls?
&lt;br&gt;&lt;br&gt;Not really, but creating a bus is easy.
&lt;br&gt;&lt;br&gt;: Can i attach it to nexus? OR Can I attach it to the
&lt;br&gt;: PCI bus (though its not a PCI device) through some
&lt;br&gt;: hack? 
&lt;br&gt;&lt;br&gt;It would be better not to do that.
&lt;br&gt;&lt;br&gt;: This is not a i386 port hence the ISA bus is absent. 
&lt;br&gt;: Will i have to implement a pseudo-bus (write the
&lt;br&gt;: bus-dependent code)in order to attach my device?
&lt;br&gt;&lt;br&gt;Ah, in that case, can you describe the hardware a little better? &amp;nbsp;I'm
&lt;br&gt;always curious about non-i386 ports...
&lt;br&gt;&lt;br&gt;For the Atmel ARM AT91RM9200 port that I've been working on, we placed
&lt;br&gt;all the devices that were on the SoC part in their own bus (called
&lt;br&gt;atmelarm). &amp;nbsp;This bus manages the resources and attachment points for
&lt;br&gt;all the devices on the atmel chip. &amp;nbsp;At the moment, I've hard coded the
&lt;br&gt;devices that are present and add them (see src/sys/arm/at91/at91.c for
&lt;br&gt;the details). &amp;nbsp;I'd like to make it even easier to create a generic-ish
&lt;br&gt;bus like this, but this is the best example in the tree right now.
&lt;br&gt;&lt;br&gt;You could attach this to nexus, and hard wire the resources that the
&lt;br&gt;ethernet driver uses. &amp;nbsp;This would be a quick and dirty way of dealing
&lt;br&gt;to get things rolling, but isn't very flexible or expandable and will
&lt;br&gt;likely bite you in the long run...
&lt;br&gt;&lt;br&gt;Warner
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6581988&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus@...&lt;/a&gt; mailing list
&lt;br&gt;&lt;a href=&quot;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.freebsd.org/mailman/listinfo/freebsd-new-bus&lt;/a&gt;&lt;br&gt;To unsubscribe, send any mail to &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=6581988&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;freebsd-new-bus-unsubscribe@...&lt;/a&gt;&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Device-enumeration-tp6543888p6581988.html" />
</entry>

</feed>
