[09051_45] Siano: smscards - add board (target) events
PATCH 1/1 [09051_45] Siano: smscards - add board (target) events
# HG changeset patch
# User Uri Shkolnik <[email protected]>
# Date 1242746343 -10800
# Node ID 757712d337876acd47621f6a2712026c732da2c4 # Parent 2b865fa7f195524bc9e8557dac472140755058dd [09051_45] Siano: smscards - add board (target) events
From: Uri Shkolnik <[email protected]>
Add events handling for targets. All board-specific (target specific) should reside here.
Priority: normal
Signed-off-by Uri Shkolnik <[email protected]>
linux/drivers/media/dvb/siano/sms-cards.h +24 -0
@@ -85,6 +85,30 @@ struct sms_board *sms_get_board(int id);extern struct smscore_device_t *coredev; +enum SMS_BOARD_EVENTS { +BOARD_EVENT_POWER_INIT , +BOARD_EVENT_POWER_SUSPEND , +BOARD_EVENT_POWER_RESUME , +BOARD_EVENT_BIND , +BOARD_EVENT_SCAN_PROG , +BOARD_EVENT_SCAN_COMP , +BOARD_EVENT_EMERGENCY_WARNING_SIGNAL , +BOARD_EVENT_FE_LOCK , +BOARD_EVENT_FE_UNLOCK , +BOARD_EVENT_DEMOD_LOCK , +BOARD_EVENT_DEMOD_UNLOCK , +BOARD_EVENT_RECEPTION_MAX_4 , +BOARD_EVENT_RECEPTION_3 , +BOARD_EVENT_RECEPTION_2 , +BOARD_EVENT_RECEPTION_1 , +BOARD_EVENT_RECEPTION_LOST_0 , +BOARD_EVENT_MULTIPLEX_OK , +BOARD_EVENT_MULTIPLEX_ERRORS +}; + +int sms_board_event (struct smscore_device_t *coredev, +enum SMS_BOARD_EVENTS gevent); +int sms_board_setup (struct smscore_device_t *coredev);#define SMS_LED_OFF 0