Files
facetimehd/bcwc_drv.h
Patrik Jakobsson 15bbb553d4 bcwc_pcie: Add pci driver skeleton
Register pci driver, irq handler, map pci bars. You know the drill.

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
2014-03-16 22:45:44 +01:00

36 lines
667 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;
void *dev_io;
struct work_struct irq_work;
/* Hardware info */
u32 core_clk;
};
#endif