Revert r345171 pending review
Backing out commit pending further discussion on the PCIe version supported by pseudo (i.e. emulated) devices. See Differential for details. Reviewed by: imp Approved by: imp (mentor) Differential Revision: https://reviews.freebsd.org/D19580
This commit is contained in:
parent
a16e0d4468
commit
f0dfbcccf4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346194
@ -953,10 +953,7 @@ pci_emul_add_pciecap(struct pci_devinst *pi, int type)
|
|||||||
bzero(&pciecap, sizeof(pciecap));
|
bzero(&pciecap, sizeof(pciecap));
|
||||||
|
|
||||||
pciecap.capid = PCIY_EXPRESS;
|
pciecap.capid = PCIY_EXPRESS;
|
||||||
pciecap.pcie_capabilities = PCIECAP_VERSION | type;
|
pciecap.pcie_capabilities = PCIECAP_VERSION | PCIEM_TYPE_ROOT_PORT;
|
||||||
/* Devices starting with version 1.1 must set the RBER bit */
|
|
||||||
if (PCIECAP_VERSION >= 1)
|
|
||||||
pciecap.dev_capabilities = PCIEM_CAP_ROLE_ERR_RPT;
|
|
||||||
pciecap.link_capabilities = 0x411; /* gen1, x1 */
|
pciecap.link_capabilities = 0x411; /* gen1, x1 */
|
||||||
pciecap.link_status = 0x11; /* gen1, x1 */
|
pciecap.link_status = 0x11; /* gen1, x1 */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user