MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / pci_data_write

Function pci_data_write

tinyemu/pci.c:370–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368
369
370static void pci_data_write(PCIBus *s, uint32_t addr,
371 uint32_t data, int size_log2)
372{
373 PCIDevice *d;
374 int bus_num, devfn, config_addr;
375
376 bus_num = (addr >> 16) & 0xff;
377 if (bus_num != s->bus_num)
378 return;
379 devfn = (addr >> 8) & 0xff;
380 d = s->device[devfn];
381 if (!d)
382 return;
383 config_addr = addr & 0xff;
384 pci_device_config_write(d, config_addr, data, size_log2);
385}
386
387static const uint32_t val_ones[3] = { 0xff, 0xffff, 0xffffffff };
388

Callers 1

i440fx_write_dataFunction · 0.85

Calls 1

pci_device_config_writeFunction · 0.85

Tested by

no test coverage detected