diff options
author | Mike Isely <isely@pobox.com> | 2009-03-06 20:42:20 -0600 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2009-03-06 20:42:20 -0600 |
commit | 2d7288563e5661e8b6cad4bc41ddc175b92fae9e (patch) | |
tree | 96891d91ed9a75ce0b7f30598651b1d53ef00ed2 /linux/drivers/media/video/pvrusb2/pvrusb2-devattr.h | |
parent | 17e0d776259f0c81372dd813e9146b3c66377133 (diff) | |
download | mediapointer-dvb-s2-2d7288563e5661e8b6cad4bc41ddc175b92fae9e.tar.gz mediapointer-dvb-s2-2d7288563e5661e8b6cad4bc41ddc175b92fae9e.tar.bz2 |
pvrusb2: New device attribute mechanism to specify sub-devices
From: Mike Isely <isely@pobox.com>
Set up new mechanism for declaring and loading appropriate sub-devices
when driver initializes. This is another part of the v4l2-subdev
adoption.
Priority: normal
Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-devattr.h')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-devattr.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-devattr.h b/linux/drivers/media/video/pvrusb2/pvrusb2-devattr.h index cb3a33eb0..f06923986 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-devattr.h +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-devattr.h @@ -33,6 +33,31 @@ */ +#define PVR2_CLIENT_ID_MSP3400 1 +#define PVR2_CLIENT_ID_CX25840 2 +#define PVR2_CLIENT_ID_SAA7115 3 +#define PVR2_CLIENT_ID_TUNER 4 +#define PVR2_CLIENT_ID_CS53132A 5 + +struct pvr2_device_client_desc { + /* One ovr PVR2_CLIENT_ID_xxxx */ + unsigned char module_id; + + /* Null-terminated array of I2C addresses to try in order + initialize the module. It's safe to make this null terminated + since we're never going to encounter an i2c device with an + address of zero. If this is a null pointer or zero-length, + then no I2C addresses have been specified, in which case we'll + try some compiled in defaults for now. */ + unsigned char *i2c_address_list; +}; + +struct pvr2_device_client_table { + const struct pvr2_device_client_desc *lst; + unsigned char cnt; +}; + + struct pvr2_string_table { const char **lst; unsigned int cnt; @@ -66,6 +91,9 @@ struct pvr2_device_desc { /* List of additional client modules we need to load */ struct pvr2_string_table client_modules; + /* List of defined client modules we need to load */ + struct pvr2_device_client_table client_table; + /* List of FX2 firmware file names we should search; if empty then FX2 firmware check / load is skipped and we assume the device was initialized from internal ROM. */ |