xen-pcifront.c (94bd217e2d683719ab21a4ac117d8a1b91cbedc9) xen-pcifront.c (917e3e65c35459d52f0d0b890aa5df0cad07a051)
1/*
2 * Xen PCI Frontend.
3 *
4 * Author: Ryan Wilson <hap9@epoch.ncsc.mil>
5 */
6#include <linux/module.h>
7#include <linux/init.h>
8#include <linux/mm.h>
9#include <xen/xenbus.h>
10#include <xen/events.h>
11#include <xen/grant_table.h>
12#include <xen/page.h>
13#include <linux/spinlock.h>
14#include <linux/pci.h>
15#include <linux/msi.h>
16#include <xen/interface/io/pciif.h>
17#include <asm/xen/pci.h>
18#include <linux/interrupt.h>
1/*
2 * Xen PCI Frontend.
3 *
4 * Author: Ryan Wilson <hap9@epoch.ncsc.mil>
5 */
6#include <linux/module.h>
7#include <linux/init.h>
8#include <linux/mm.h>
9#include <xen/xenbus.h>
10#include <xen/events.h>
11#include <xen/grant_table.h>
12#include <xen/page.h>
13#include <linux/spinlock.h>
14#include <linux/pci.h>
15#include <linux/msi.h>
16#include <xen/interface/io/pciif.h>
17#include <asm/xen/pci.h>
18#include <linux/interrupt.h>
19#include <linux/atomic.h>
19#include <asm/atomic.h>
20#include <linux/workqueue.h>
21#include <linux/bitops.h>
22#include <linux/time.h>
23
24#define INVALID_GRANT_REF (0)
25#define INVALID_EVTCHN (-1)
26
27struct pci_bus_entry {

--- 367 unchanged lines hidden (view full) ---

395
396 for (i = 0; i < PCI_NUM_RESOURCES; i++) {
397 r = &dev->resource[i];
398
399 if (!r->parent && r->start && r->flags) {
400 dev_info(&pdev->xdev->dev, "claiming resource %s/%d\n",
401 pci_name(dev), i);
402 if (pci_claim_resource(dev, i)) {
20#include <linux/workqueue.h>
21#include <linux/bitops.h>
22#include <linux/time.h>
23
24#define INVALID_GRANT_REF (0)
25#define INVALID_EVTCHN (-1)
26
27struct pci_bus_entry {

--- 367 unchanged lines hidden (view full) ---

395
396 for (i = 0; i < PCI_NUM_RESOURCES; i++) {
397 r = &dev->resource[i];
398
399 if (!r->parent && r->start && r->flags) {
400 dev_info(&pdev->xdev->dev, "claiming resource %s/%d\n",
401 pci_name(dev), i);
402 if (pci_claim_resource(dev, i)) {
403 dev_err(&pdev->xdev->dev, "Could not claim "
404 "resource %s/%d! Device offline. Try "
405 "giving less than 4GB to domain.\n",
403 dev_err(&pdev->xdev->dev, "Could not claim resource %s/%d! "
404 "Device offline. Try using e820_host=1 in the guest config.\n",
406 pci_name(dev), i);
407 }
408 }
409 }
410
411 return 0;
412}
413

--- 746 unchanged lines hidden ---
405 pci_name(dev), i);
406 }
407 }
408 }
409
410 return 0;
411}
412

--- 746 unchanged lines hidden ---