diff options
author | Uri Shkolnik <uris@siano-ms.com> | 2009-05-19 11:52:58 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 18:14:42 -0400 |
commit | 34601caa64e11b8fa5e9a03d74cc1df0af32e2ca (patch) | |
tree | 7d20da0ab1b94cb5e274a7dcf0295734b9d7a969 | |
parent | 6675167cab92906a7b1d29faa3901716925d3af8 (diff) |
V4L/DVB (11891): Siano: smscore - bind the GPIO SMS protocol
Bind SMS protocol commands to the GPIO commands
Signed-off-by: Uri Shkolnik <uris@siano-ms.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/dvb/siano/smscoreapi.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/media/dvb/siano/smscoreapi.c b/drivers/media/dvb/siano/smscoreapi.c index b2127c1d263c..32be382f0e97 100644 --- a/drivers/media/dvb/siano/smscoreapi.c +++ b/drivers/media/dvb/siano/smscoreapi.c | |||
@@ -352,6 +352,9 @@ int smscore_register_device(struct smsdevice_params_t *params, | |||
352 | init_completion(&dev->init_device_done); | 352 | init_completion(&dev->init_device_done); |
353 | init_completion(&dev->reload_start_done); | 353 | init_completion(&dev->reload_start_done); |
354 | init_completion(&dev->resume_done); | 354 | init_completion(&dev->resume_done); |
355 | init_completion(&dev->gpio_configuration_done); | ||
356 | init_completion(&dev->gpio_set_level_done); | ||
357 | init_completion(&dev->gpio_get_level_done); | ||
355 | init_completion(&dev->ir_init_done); | 358 | init_completion(&dev->ir_init_done); |
356 | 359 | ||
357 | /* Buffer management */ | 360 | /* Buffer management */ |
@@ -1051,6 +1054,23 @@ void smscore_onresponse(struct smscore_device_t *coredev, | |||
1051 | case MSG_SMS_SLEEP_RESUME_COMP_IND: | 1054 | case MSG_SMS_SLEEP_RESUME_COMP_IND: |
1052 | complete(&coredev->resume_done); | 1055 | complete(&coredev->resume_done); |
1053 | break; | 1056 | break; |
1057 | case MSG_SMS_GPIO_CONFIG_EX_RES: | ||
1058 | sms_debug("MSG_SMS_GPIO_CONFIG_EX_RES"); | ||
1059 | complete(&coredev->gpio_configuration_done); | ||
1060 | break; | ||
1061 | case MSG_SMS_GPIO_SET_LEVEL_RES: | ||
1062 | sms_debug("MSG_SMS_GPIO_SET_LEVEL_RES"); | ||
1063 | complete(&coredev->gpio_set_level_done); | ||
1064 | break; | ||
1065 | case MSG_SMS_GPIO_GET_LEVEL_RES: | ||
1066 | { | ||
1067 | u32 *msgdata = (u32 *) phdr; | ||
1068 | coredev->gpio_get_res = msgdata[1]; | ||
1069 | sms_debug("MSG_SMS_GPIO_GET_LEVEL_RES gpio level %d", | ||
1070 | coredev->gpio_get_res); | ||
1071 | complete(&coredev->gpio_get_level_done); | ||
1072 | break; | ||
1073 | } | ||
1054 | case MSG_SMS_START_IR_RES: | 1074 | case MSG_SMS_START_IR_RES: |
1055 | complete(&coredev->ir_init_done); | 1075 | complete(&coredev->ir_init_done); |
1056 | break; | 1076 | break; |