diff options
author | Daniel Scheller <d.scheller@gmx.net> | 2017-08-20 06:41:11 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-20 07:31:37 -0400 |
commit | 66cc3d98ea6daa64735d6e72737d8eac0b6e5182 (patch) | |
tree | 0e2226acf9e9dadd5e319a80a1db2d51b7b09642 /drivers/media/pci/ddbridge/ddbridge-hw.h | |
parent | bae7c75b1155eab295fbe0d504e7cc25a57c0223 (diff) |
media: ddbridge: move device ID table to ddbridge-hw
This further cleans up ddbridge-main from hardware-related data and moves
the exact card type determination into ddbridge-hw.c:get_ddb_info(), right
to the hardware maps/structs. Also, const'ify more structs and pointers.
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/pci/ddbridge/ddbridge-hw.h')
-rw-r--r-- | drivers/media/pci/ddbridge/ddbridge-hw.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/media/pci/ddbridge/ddbridge-hw.h b/drivers/media/pci/ddbridge/ddbridge-hw.h index d26cd9c977d8..1a985d0a1a97 100644 --- a/drivers/media/pci/ddbridge/ddbridge-hw.h +++ b/drivers/media/pci/ddbridge/ddbridge-hw.h @@ -23,6 +23,20 @@ /******************************************************************************/ +#define DDVID 0xdd01 /* Digital Devices Vendor ID */ + +/******************************************************************************/ + +struct ddb_device_id { + u16 vendor; + u16 device; + u16 subvendor; + u16 subdevice; + const struct ddb_info *info; +}; + +/******************************************************************************/ + extern const struct ddb_info ddb_none; extern const struct ddb_info ddb_octopus; extern const struct ddb_info ddb_octopusv3; @@ -53,4 +67,9 @@ extern const struct ddb_info ddb_c2t2i_8; extern const struct ddb_info ddb_s2_48; +/****************************************************************************/ + +const struct ddb_info *get_ddb_info(u16 vendor, u16 device, + u16 subvendor, u16 subdevice); + #endif /* _DDBRIDGE_HW_H */ |