Displaying 7 results from an estimated 7 matches for "pci_update_base".
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [1/4]
[PATCH 1/4] PCI: export pci_read_base and add pci_update_base
Export pci_read_base; add pci_update_base to for PCI BAR update.
Signed-off-by: Yu Zhao <yu.zhao at intel.com>
Signed-off-by: Eddie Dong <eddie.dong at intel.com>
---
drivers/pci/probe.c | 25 ++++++++--------
drivers/pci/setup-res.c | 74 +++++++++++++++++++++++++++--------...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [1/4]
[PATCH 1/4] PCI: export pci_read_base and add pci_update_base
Export pci_read_base; add pci_update_base to for PCI BAR update.
Signed-off-by: Yu Zhao <yu.zhao at intel.com>
Signed-off-by: Eddie Dong <eddie.dong at intel.com>
---
drivers/pci/probe.c | 25 ++++++++--------
drivers/pci/setup-res.c | 74 +++++++++++++++++++++++++++--------...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [1/4]
[PATCH 1/4] PCI: export pci_read_base and add pci_update_base
Export pci_read_base; add pci_update_base to for PCI BAR update.
Signed-off-by: Yu Zhao <yu.zhao at intel.com>
Signed-off-by: Eddie Dong <eddie.dong at intel.com>
---
drivers/pci/probe.c | 25 ++++++++--------
drivers/pci/setup-res.c | 74 +++++++++++++++++++++++++++--------...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel
...of Virtual Functions via registers encapsulated in the capability.
Following patches add SR-IOV capability support to the Linux kernel. With these patches, people can turn a PCI device with the capability into multiple ones from software perspective.
[PATCH 1/4] PCI: export pci_read_base and add pci_update_base
[PATCH 2/4] PCI: support ARI capability
[PATCH 3/4] PCI: support SR-IOV capability
[PATCH 4/4] PCI: document SR-IOV
SR-IOV specification can be found at http://www.pcisig.com/members/downloads/specifications/iov/sr-iov1.0_11Sep07.pdf
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...;flags & IORESOURCE_PREFETCH))
+ err = pci_bus_alloc_resource(pf->bus, res, size,
+ pf->iov->align,
+ PCIBIOS_MIN_MEM,
+ 0, NULL, NULL);
+ if (err) {
+ dev_err(&pf->dev, "can't allocate IOV resource.\n");
+ return err;
+ }
+
+ pci_update_base(pf, pci_bar_unknown, res, reg);
+ }
+
+ return 0;
+}
+
+static void iov_free_res(struct pci_dev *pf)
+{
+ int i;
+ struct resource *res;
+
+ for (i = 0; i < PCI_IOV_NUM_BAR; i++) {
+ res = pf->iov->resource + i;
+ if (res->parent)
+ release_resource(res);
+ }
+}
+
+static void iov_s...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...;flags & IORESOURCE_PREFETCH))
+ err = pci_bus_alloc_resource(pf->bus, res, size,
+ pf->iov->align,
+ PCIBIOS_MIN_MEM,
+ 0, NULL, NULL);
+ if (err) {
+ dev_err(&pf->dev, "can't allocate IOV resource.\n");
+ return err;
+ }
+
+ pci_update_base(pf, pci_bar_unknown, res, reg);
+ }
+
+ return 0;
+}
+
+static void iov_free_res(struct pci_dev *pf)
+{
+ int i;
+ struct resource *res;
+
+ for (i = 0; i < PCI_IOV_NUM_BAR; i++) {
+ res = pf->iov->resource + i;
+ if (res->parent)
+ release_resource(res);
+ }
+}
+
+static void iov_s...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...;flags & IORESOURCE_PREFETCH))
+ err = pci_bus_alloc_resource(pf->bus, res, size,
+ pf->iov->align,
+ PCIBIOS_MIN_MEM,
+ 0, NULL, NULL);
+ if (err) {
+ dev_err(&pf->dev, "can't allocate IOV resource.\n");
+ return err;
+ }
+
+ pci_update_base(pf, pci_bar_unknown, res, reg);
+ }
+
+ return 0;
+}
+
+static void iov_free_res(struct pci_dev *pf)
+{
+ int i;
+ struct resource *res;
+
+ for (i = 0; i < PCI_IOV_NUM_BAR; i++) {
+ res = pf->iov->resource + i;
+ if (res->parent)
+ release_resource(res);
+ }
+}
+
+static void iov_s...