Beispiel #1
0
static bool pci_config_address_in(struct ioport *ioport, struct kvm *kvm, u16 port, void *data, int size)
{
    void *p = pci_config_address_ptr(port);

    memcpy(data, p, size);

    return true;
}
Beispiel #2
0
static bool pci_config_address_out(struct kvm *kvm, u16 port, void *data, int size, u32 count)
{
	void *p = pci_config_address_ptr(port);

	memcpy(p, data, size);

	return true;
}