mirror of
https://github.com/patjak/facetimehd.git
synced 2026-04-09 19:10:01 +02:00
bcwc_pcie: Store BAR lengts in driver private
We probably need this since we're going to be probing all over the io mapped memory. Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
This commit is contained in:
@@ -40,11 +40,13 @@ static int bcwc_pci_reserve_mem(struct bcwc_private *dev_priv)
|
|||||||
start = pci_resource_start(dev_priv->pdev, BCWC_PCI_LINK_IO);
|
start = pci_resource_start(dev_priv->pdev, BCWC_PCI_LINK_IO);
|
||||||
len = pci_resource_len(dev_priv->pdev, BCWC_PCI_LINK_IO);
|
len = pci_resource_len(dev_priv->pdev, BCWC_PCI_LINK_IO);
|
||||||
dev_priv->link_io = ioremap_nocache(start, len);
|
dev_priv->link_io = ioremap_nocache(start, len);
|
||||||
|
dev_priv->link_io_len = len;
|
||||||
|
|
||||||
/* Device IO */
|
/* Device IO */
|
||||||
start = pci_resource_start(dev_priv->pdev, BCWC_PCI_DEV_IO);
|
start = pci_resource_start(dev_priv->pdev, BCWC_PCI_DEV_IO);
|
||||||
len = pci_resource_len(dev_priv->pdev, BCWC_PCI_DEV_IO);
|
len = pci_resource_len(dev_priv->pdev, BCWC_PCI_DEV_IO);
|
||||||
dev_priv->dev_io = ioremap_nocache(start, len);
|
dev_priv->dev_io = ioremap_nocache(start, len);
|
||||||
|
dev_priv->dev_io_len = len;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,9 @@ struct bcwc_private {
|
|||||||
|
|
||||||
/* Mapped PCI resources */
|
/* Mapped PCI resources */
|
||||||
void *link_io;
|
void *link_io;
|
||||||
|
u32 link_io_len;
|
||||||
void *dev_io;
|
void *dev_io;
|
||||||
|
u32 dev_io_len;
|
||||||
|
|
||||||
struct work_struct irq_work;
|
struct work_struct irq_work;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user