Files
facetimehd/bcwc_drv.h
Patrik Jakobsson 64f1d692ff 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>
2014-03-24 16:39:04 +01:00

38 lines
702 B
C

/*
* Broadcom PCIe 1570 webcam driver
*
* Copyright (C) 2014 Patrik Jakobsson (patrik.r.jakobsson@gmail.com)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published by
* the Free Software Foundation.
*
*/
#ifndef _BCWC_PCIE_H
#define _PCWC_PCIE_H
#include <linux/pci.h>
#define BCWC_PCI_LINK_IO 0
#define BCWC_PCI_DEV_MEM 1
#define BCWC_PCI_DEV_IO 2
struct bcwc_private {
struct pci_dev *pdev;
unsigned int dma_mask;
/* Mapped PCI resources */
void *link_io;
u32 link_io_len;
void *dev_io;
u32 dev_io_len;
struct work_struct irq_work;
/* Hardware info */
u32 core_clk;
};
#endif