"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "hw/pci/pcie.c" between
qemu-6.0.0-rc1.tar.xz and qemu-6.0.0-rc2.tar.xz

About: QEMU is a generic machine/processor emulator and virtualizer. Release candidate.

pcie.c  (qemu-6.0.0-rc1.tar.xz):pcie.c  (qemu-6.0.0-rc2.tar.xz)
skipping to change at line 965 skipping to change at line 965
void pcie_dev_ser_num_init(PCIDevice *dev, uint16_t offset, uint64_t ser_num) void pcie_dev_ser_num_init(PCIDevice *dev, uint16_t offset, uint64_t ser_num)
{ {
static const int pci_dsn_ver = 1; static const int pci_dsn_ver = 1;
static const int pci_dsn_cap = 4; static const int pci_dsn_cap = 4;
pcie_add_capability(dev, PCI_EXT_CAP_ID_DSN, pci_dsn_ver, offset, pcie_add_capability(dev, PCI_EXT_CAP_ID_DSN, pci_dsn_ver, offset,
PCI_EXT_CAP_DSN_SIZEOF); PCI_EXT_CAP_DSN_SIZEOF);
pci_set_quad(dev->config + offset + pci_dsn_cap, ser_num); pci_set_quad(dev->config + offset + pci_dsn_cap, ser_num);
} }
void pcie_ats_init(PCIDevice *dev, uint16_t offset) void pcie_ats_init(PCIDevice *dev, uint16_t offset, bool aligned)
{ {
pcie_add_capability(dev, PCI_EXT_CAP_ID_ATS, 0x1, pcie_add_capability(dev, PCI_EXT_CAP_ID_ATS, 0x1,
offset, PCI_EXT_CAP_ATS_SIZEOF); offset, PCI_EXT_CAP_ATS_SIZEOF);
dev->exp.ats_cap = offset; dev->exp.ats_cap = offset;
/* Invalidate Queue Depth 0, Page Aligned Request 1 */ /* Invalidate Queue Depth 0 */
pci_set_word(dev->config + offset + PCI_ATS_CAP, if (aligned) {
PCI_ATS_CAP_PAGE_ALIGNED); pci_set_word(dev->config + offset + PCI_ATS_CAP,
PCI_ATS_CAP_PAGE_ALIGNED);
}
/* STU 0, Disabled by default */ /* STU 0, Disabled by default */
pci_set_word(dev->config + offset + PCI_ATS_CTRL, 0); pci_set_word(dev->config + offset + PCI_ATS_CTRL, 0);
pci_set_word(dev->wmask + dev->exp.ats_cap + PCI_ATS_CTRL, 0x800f); pci_set_word(dev->wmask + dev->exp.ats_cap + PCI_ATS_CTRL, 0x800f);
} }
/* ACS (Access Control Services) */ /* ACS (Access Control Services) */
void pcie_acs_init(PCIDevice *dev, uint16_t offset) void pcie_acs_init(PCIDevice *dev, uint16_t offset)
{ {
bool is_downstream = pci_is_express_downstream_port(dev); bool is_downstream = pci_is_express_downstream_port(dev);
 End of changes. 2 change blocks. 
4 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)