Date: Thu, 11 Jul 2013 03:05:33 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 230994 for review Message-ID: <201307110305.r6B35XN4029139@skunkworks.freebsd.org>
index | next in thread | raw e-mail
http://p4web.freebsd.org/@@230994?ac=10 Change 230994 by jhb@jhb_pippin on 2013/07/11 03:04:55 Fix the PCI bus driver to permit immediate child bridges to allocate a single bus number resource. Affected files ... .. //depot/projects/pci/sys/dev/pci/pci.c#42 edit Differences ... ==== //depot/projects/pci/sys/dev/pci/pci.c#42 (text+ko) ==== @@ -4292,6 +4292,20 @@ rl = &dinfo->resources; cfg = &dinfo->cfg; switch (type) { +#if defined(NEW_PCIB) && defined(PCI_RES_BUS) + case PCI_RES_BUS: + /* + * If rid 0 is not already allocated, create a new + * resource list entry. + */ + if (*rid != 0) + return (NULL); + rle = resource_list_find(rl, type, *rid); + if (rle != NULL && rle->res != NULL) + return (NULL); + resource_list_add(rl, type, *rid, start, end, count); + break; +#endif case SYS_RES_IRQ: /* * Can't alloc legacy interrupt once MSI messages havehelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307110305.r6B35XN4029139>
