xref: /OK3568_Linux_fs/kernel/drivers/media/pci/ddbridge/ddbridge-hw.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * ddbridge-hw.h: Digital Devices bridge hardware maps
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Copyright (C) 2010-2017 Digital Devices GmbH
6*4882a593Smuzhiyun  *                         Ralph Metzler <rjkm@metzlerbros.de>
7*4882a593Smuzhiyun  *                         Marcus Metzler <mocm@metzlerbros.de>
8*4882a593Smuzhiyun  *
9*4882a593Smuzhiyun  * This program is free software; you can redistribute it and/or
10*4882a593Smuzhiyun  * modify it under the terms of the GNU General Public License
11*4882a593Smuzhiyun  * version 2 only, as published by the Free Software Foundation.
12*4882a593Smuzhiyun  *
13*4882a593Smuzhiyun  * This program is distributed in the hope that it will be useful,
14*4882a593Smuzhiyun  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15*4882a593Smuzhiyun  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16*4882a593Smuzhiyun  * GNU General Public License for more details.
17*4882a593Smuzhiyun  */
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun #ifndef _DDBRIDGE_HW_H_
20*4882a593Smuzhiyun #define _DDBRIDGE_HW_H_
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun #include "ddbridge.h"
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun /******************************************************************************/
25*4882a593Smuzhiyun 
26*4882a593Smuzhiyun #define DDVID 0xdd01 /* Digital Devices Vendor ID */
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun /******************************************************************************/
29*4882a593Smuzhiyun 
30*4882a593Smuzhiyun struct ddb_device_id {
31*4882a593Smuzhiyun 	u16 vendor;
32*4882a593Smuzhiyun 	u16 device;
33*4882a593Smuzhiyun 	u16 subvendor;
34*4882a593Smuzhiyun 	u16 subdevice;
35*4882a593Smuzhiyun 	const struct ddb_info *info;
36*4882a593Smuzhiyun };
37*4882a593Smuzhiyun 
38*4882a593Smuzhiyun /******************************************************************************/
39*4882a593Smuzhiyun 
40*4882a593Smuzhiyun const struct ddb_info *get_ddb_info(u16 vendor, u16 device,
41*4882a593Smuzhiyun 				    u16 subvendor, u16 subdevice);
42*4882a593Smuzhiyun 
43*4882a593Smuzhiyun #endif /* _DDBRIDGE_HW_H */
44