staticint pci_mmcfg_read_numachip(unsignedint seg, unsignedint bus, unsignedint devfn, int reg, int len, u32 *value)
{ char __iomem *addr;
/* Why do we have this when nobody checks it. How about a BUG()!? -AK */ if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) {
err: *value = -1; return -EINVAL;
}
/* Ensure AMD Northbridges don't decode reads to other devices */ if (unlikely(bus == 0 && devfn >= limit)) {
*value = -1; return 0;
}
int __init pci_numachip_init(void)
{ int ret = 0;
u32 val;
/* For remote I/O, restrict bus 0 access to the actual number of AMD
Northbridges, which starts at device number 0x18 */
ret = raw_pci_read(0, 0, PCI_DEVFN(0x18, 0), 0x60, sizeof(val), &val); if (ret) goto out;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.