svn commit: r277163 - head/sys/dev/cardbus

John Baldwin jhb at FreeBSD.org
Thu Jan 15 15:25:59 UTC 2015


On 1/14/15 7:07 PM, Warner Losh wrote:
> 
>> On Jan 14, 2015, at 7:23 AM, John Baldwin <jhb at 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


More information about the svn-src-head mailing list