Am 29.03.2013 um 03:26 hat Anthony Liguori geschrieben:
> Kevin Wolf writes:
>
> > Am 13.03.2013 um 15:03 hat Anthony Liguori geschrieben:
> >> You are correct, it should look something like:
> >>
> >> if (addr & PCI_BASE_ADDRESS_SPACE_IO) {
> >> size = (1ULL << ctzl(addr & PCI_BASE_ADDRESS_
Kevin Wolf writes:
> Am 13.03.2013 um 15:03 hat Anthony Liguori geschrieben:
>> You are correct, it should look something like:
>>
>> if (addr & PCI_BASE_ADDRESS_SPACE_IO) {
>> size = (1ULL << ctzl(addr & PCI_BASE_ADDRESS_IO_MASK));
>> } else {
>> size = (1ULL << ctzl(addr & PCI_BASE_ADD
Am 13.03.2013 um 15:03 hat Anthony Liguori geschrieben:
> You are correct, it should look something like:
>
> if (addr & PCI_BASE_ADDRESS_SPACE_IO) {
> size = (1ULL << ctzl(addr & PCI_BASE_ADDRESS_IO_MASK));
> } else {
> size = (1ULL << ctzl(addr & PCI_BASE_ADDRESS_MEM_MASK));
> }
>
> Thi
Kevin Wolf writes:
> Am 05.03.2013 um 14:53 hat Anthony Liguori geschrieben:
>> This includes basic PCI support.
>>
>> Signed-off-by: Anthony Liguori
>
>> +static void *qpci_pc_iomap(QPCIBus *bus, QPCIDevice *dev, int barno)
>> +{
>> +QPCIBusPC *s = container_of(bus, QPCIBusPC, bus);
>> +
Am 05.03.2013 14:53, schrieb Anthony Liguori:
> This includes basic PCI support.
>
> Signed-off-by: Anthony Liguori
> ---
> configure | 2 +-
> tests/Makefile| 2 +-
> tests/libqos/pci-pc.c | 219
> ++
> tests/libqos/pci-pc
Am 05.03.2013 um 14:53 hat Anthony Liguori geschrieben:
> This includes basic PCI support.
>
> Signed-off-by: Anthony Liguori
> +static void *qpci_pc_iomap(QPCIBus *bus, QPCIDevice *dev, int barno)
> +{
> +QPCIBusPC *s = container_of(bus, QPCIBusPC, bus);
> +static const int bar_reg_map[
This includes basic PCI support.
Signed-off-by: Anthony Liguori
---
configure | 2 +-
tests/Makefile| 2 +-
tests/libqos/pci-pc.c | 219 ++
tests/libqos/pci-pc.h | 8 ++
tests/libqos/pci.c| 108