#define INFO(_f, _a...) ((void)0)
#endif
+#define SLOPPY_CHECKING
#define ACC_READ 1
#define ACC_WRITE 2
return 0;
}
-
+#ifndef SLOPPY_CHECKING
/*
* Base address registers contain the base address for IO regions.
* The length can be determined by writing all 1s to the register and
return ret;
}
+#endif /* SLOPPY_CHECKING */
/*
* Handle a PCI config space read access if the domain has access privileges.
* all 1s. In this case the domain has no read access, which should
* also look like the device is non-existent. */
*val = 0xFFFFFFFF;
- return ret; /* KAF: error return seems to matter on my test machine. */
+ return ret;
}
/* Fake out read requests for some registers. */
switch ( reg )
{
+#ifndef SLOPPY_CHECKING
case PCI_BASE_ADDRESS_0:
ret = do_base_address_access(pdev, ACC_READ, 0, len, val);
break;
case PCI_ROM_ADDRESS:
ret = do_rom_address_access(pdev, ACC_READ, len, val);
break;
+#endif
case PCI_INTERRUPT_LINE:
*val = pdev->dev->irq;
/* special treatment for some registers */
switch (reg)
{
+#ifndef SLOPPY_CHECKING
case PCI_BASE_ADDRESS_0:
ret = do_base_address_access(pdev, ACC_WRITE, 0, len, &val);
break;
case PCI_ROM_ADDRESS:
ret = do_rom_address_access(pdev, ACC_WRITE, len, &val);
break;
+#endif
default:
if ( pdev->flags != ACC_WRITE )