// SPDX-License-Identifier: GPL-2.0-or-later /* bttv-if.c -- old gpio interface to other kernel modules don't use in new code, will go away in 2.7 have a look at bttv-gpio.c instead. bttv - Bt848 frame grabber driver Copyright (C) 1996,97,98 Ralph Metzler ([email protected]) & Marcus Metzler ([email protected]) (c) 1999-2003 Gerd Knorr <[email protected]> */ #include <linux/module.h> #include <linux/init.h> #include <linux/delay.h> #include <asm/io.h> #include "bttvp.h" EXPORT_SYMBOL(…); EXPORT_SYMBOL(…); EXPORT_SYMBOL(…); EXPORT_SYMBOL(…); /* ----------------------------------------------------------------------- */ /* Exported functions - for other modules which want to access the */ /* gpio ports (IR for example) */ /* see bttv.h for comments */ struct pci_dev* bttv_get_pcidev(unsigned int card) { … } int bttv_gpio_enable(unsigned int card, unsigned long mask, unsigned long data) { … } int bttv_read_gpio(unsigned int card, unsigned long *data) { … } int bttv_write_gpio(unsigned int card, unsigned long mask, unsigned long data) { … }