#define pr_fmt(fmt) …
#include <media/drv-intf/saa7146.h>
#include <linux/module.h>
static int saa7146_num;
unsigned int saa7146_debug;
module_param(saa7146_debug, uint, 0644);
MODULE_PARM_DESC(…) …;
#if 0
static void dump_registers(struct saa7146_dev* dev)
{
int i = 0;
pr_info(" @ %li jiffies:\n", jiffies);
for (i = 0; i <= 0x148; i += 4)
pr_info("0x%03x: 0x%08x\n", i, saa7146_read(dev, i));
}
#endif
void saa7146_setgpio(struct saa7146_dev *dev, int port, u32 data)
{ … }
static inline int saa7146_wait_for_debi_done_sleep(struct saa7146_dev *dev,
unsigned long us1, unsigned long us2)
{ … }
static inline int saa7146_wait_for_debi_done_busyloop(struct saa7146_dev *dev,
unsigned long us1, unsigned long us2)
{ … }
int saa7146_wait_for_debi_done(struct saa7146_dev *dev, int nobusyloop)
{ … }
static struct scatterlist* vmalloc_to_sg(unsigned char *virt, int nr_pages)
{ … }
void *saa7146_vmalloc_build_pgtable(struct pci_dev *pci, long length, struct saa7146_pgtable *pt)
{ … }
void saa7146_vfree_destroy_pgtable(struct pci_dev *pci, void *mem, struct saa7146_pgtable *pt)
{ … }
void saa7146_pgtable_free(struct pci_dev *pci, struct saa7146_pgtable *pt)
{ … }
int saa7146_pgtable_alloc(struct pci_dev *pci, struct saa7146_pgtable *pt)
{ … }
int saa7146_pgtable_build_single(struct pci_dev *pci, struct saa7146_pgtable *pt,
struct scatterlist *list, int sglen)
{ … }
static irqreturn_t interrupt_hw(int irq, void *dev_id)
{ … }
static int saa7146_init_one(struct pci_dev *pci, const struct pci_device_id *ent)
{ … }
static void saa7146_remove_one(struct pci_dev *pdev)
{ … }
int saa7146_register_extension(struct saa7146_extension* ext)
{ … }
int saa7146_unregister_extension(struct saa7146_extension* ext)
{ … }
EXPORT_SYMBOL_GPL(…);
EXPORT_SYMBOL_GPL(…);
EXPORT_SYMBOL_GPL(…);
EXPORT_SYMBOL_GPL(…);
EXPORT_SYMBOL_GPL(…);
EXPORT_SYMBOL_GPL(…);
EXPORT_SYMBOL_GPL(…);
EXPORT_SYMBOL_GPL(…);
EXPORT_SYMBOL_GPL(…);
EXPORT_SYMBOL_GPL(…);
EXPORT_SYMBOL_GPL(…);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;