Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jan 2015 10:25:57 -0500
From:      John Baldwin <jhb@FreeBSD.org>
To:        Warner Losh <imp@bsdimp.com>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Warner Losh <imp@FreeBSD.org>
Subject:   Re: svn commit: r277163 - head/sys/dev/cardbus
Message-ID:  <54B7DC05.6080801@FreeBSD.org>
In-Reply-To: <F7057251-4644-435E-AFFF-4E0493F18899@bsdimp.com>
References:  <201501140541.t0E5fV00070032@svn.freebsd.org> <54B67BC9.70904@FreeBSD.org> <F7057251-4644-435E-AFFF-4E0493F18899@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/14/15 7:07 PM, Warner Losh wrote:
> 
>> On Jan 14, 2015, at 7:23 AM, John Baldwin <jhb@FreeBSD.org> wrote:
>>
>> On 1/14/15 12:41 AM, Warner Losh wrote:
>>> Author: imp
>>> Date: Wed Jan 14 05:41:31 2015
>>> New Revision: 277163
>>> URL: https://svnweb.freebsd.org/changeset/base/277163
>>>
>>> Log:
>>>  Add a rather obnoxious warning if you don't have NEW_PCIB defined
>>>  since it's a total crap shoot if things will work.
>>
>> Should we just make it a #error instead?  (Some day I hope to have
>> NEW_PCIB enabled by default and remove the old code.  Will take a while
>> to get there for the generic PCI code, but cardbus is probably only used
>> on x86 so that would be fine.)
> 
> CardBus is also used on PowerPC macs..

Ok.  It shouldn't be hard to add the PCI_RES_BUS stuff to PowerPC.  I
believe I put the details of that in the NEW_PCIB page on the wiki.  You
just need to have the equivalent of the x86 nexus call some MI routines
to allocate bus numbers for a given domain when bus_alloc_resource()
requests bubble up from below.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54B7DC05.6080801>