#include <linux/bitfield.h>
#include <linux/delay.h>
#include <media/i2c/adv7604.h>
#include <media/i2c/adv7842.h>
#include <media/i2c/adv7511.h>
#include <media/v4l2-event.h>
#include <media/v4l2-ctrls.h>
#include "cobalt-driver.h"
#include "cobalt-irq.h"
#include "cobalt-i2c.h"
#include "cobalt-v4l2.h"
#include "cobalt-flash.h"
#include "cobalt-alsa.h"
#include "cobalt-omnitek.h"
static const struct pci_device_id cobalt_pci_tbl[] = …;
MODULE_DEVICE_TABLE(pci, cobalt_pci_tbl);
static atomic_t cobalt_instance = …;
int cobalt_debug;
module_param_named(debug, cobalt_debug, int, 0644);
MODULE_PARM_DESC(…) …;
int cobalt_ignore_err;
module_param_named(ignore_err, cobalt_ignore_err, int, 0644);
MODULE_PARM_DESC(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
static u8 edid[256] = …;
static void cobalt_set_interrupt(struct cobalt *cobalt, bool enable)
{ … }
static unsigned cobalt_get_sd_nr(struct v4l2_subdev *sd)
{ … }
static void cobalt_notify(struct v4l2_subdev *sd,
unsigned int notification, void *arg)
{ … }
static int get_payload_size(u16 code)
{ … }
static const char *get_link_speed(u16 stat)
{ … }
void cobalt_pcie_status_show(struct cobalt *cobalt)
{ … }
static unsigned pcie_link_get_lanes(struct cobalt *cobalt)
{ … }
static unsigned pcie_bus_link_get_lanes(struct cobalt *cobalt)
{ … }
static void msi_config_show(struct cobalt *cobalt, struct pci_dev *pci_dev)
{ … }
static void cobalt_pci_iounmap(struct cobalt *cobalt, struct pci_dev *pci_dev)
{ … }
static void cobalt_free_msi(struct cobalt *cobalt, struct pci_dev *pci_dev)
{ … }
static int cobalt_setup_pci(struct cobalt *cobalt, struct pci_dev *pci_dev,
const struct pci_device_id *pci_id)
{ … }
static int cobalt_hdl_info_get(struct cobalt *cobalt)
{ … }
static void cobalt_stream_struct_init(struct cobalt *cobalt)
{ … }
static int cobalt_subdevs_init(struct cobalt *cobalt)
{ … }
static int cobalt_subdevs_hsma_init(struct cobalt *cobalt)
{ … }
static int cobalt_probe(struct pci_dev *pci_dev,
const struct pci_device_id *pci_id)
{ … }
static void cobalt_remove(struct pci_dev *pci_dev)
{ … }
static struct pci_driver cobalt_pci_driver = …;
module_pci_driver(…) …;