/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * tw68 driver common header file * * Much of this code is derived from the cx88 and sa7134 drivers, which * were in turn derived from the bt87x driver. The original work was by * Gerd Knorr; more recently the code was enhanced by Mauro Carvalho Chehab, * Hans Verkuil, Andy Walls and many others. Their work is gratefully * acknowledged. Full credit goes to them - any problems within this code * are mine. * * Copyright (C) 2009 William M. Brack * * Refactored and updated to the latest v4l core frameworks: * * Copyright (C) 2014 Hans Verkuil <hverkuil@xs4all.nl>
*/
#define TW68_VID_INTS (TW68_FFERR | TW68_PABORT | TW68_DMAPERR | \
TW68_FFOF | TW68_DMAPI) /* TW6800 chips have trouble with these, so we don't set them for that chip */ #define TW68_VID_INTSX (TW68_FDMIS | TW68_HLOCK | TW68_VLOCK)
struct tw68_fmt { char *name;
u32 fourcc; /* v4l2 format id */ int depth; int flags;
u32 twformat;
};
/* global device status */ struct tw68_dev { struct mutex lock;
spinlock_t slock;
u16 instance; struct v4l2_device v4l2_dev;
/* various device info */ enum tw68_decoder_type vdecoder; struct video_device vdev; struct v4l2_ctrl_handler hdl;
/* pci i/o */ char *name; struct pci_dev *pci; unsignedchar pci_rev, pci_lat;
u32 __iomem *lmmio;
u8 __iomem *bmmio;
u32 pci_irqmask; /* The irq mask to be used will depend upon the chip type */
u32 board_virqmask;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.