From patchwork Tue May 19 15:14:24 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uri Shkolnik X-Patchwork-Id: 24741 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n4JFEkgI002778 for ; Tue, 19 May 2009 15:14:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753415AbZESPOY (ORCPT ); Tue, 19 May 2009 11:14:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753442AbZESPOY (ORCPT ); Tue, 19 May 2009 11:14:24 -0400 Received: from web110808.mail.gq1.yahoo.com ([67.195.13.231]:34970 "HELO web110808.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753415AbZESPOX (ORCPT ); Tue, 19 May 2009 11:14:23 -0400 Received: (qmail 60466 invoked by uid 60001); 19 May 2009 15:14:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1242746064; bh=QOg57Kkl9uKBehQcWhFL2XjvaZ3mTs+1NrxsX2ZCHjM=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=ugJetno0nQlL2LxtvS4V7ww/nrfLiDyzfQNCRshSjIMC01cezKpS9pkpIf2Ot8QkOCteCXM/tfcyZYSHmNHM12JjVlsWuR+cIc+GIvVjRB8hVXmDrBDDmlxx7OJqHPReXeruN419rLRCmJNYh6yMVyrM+VtQMVE+H577hhT2GX8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=Uxe6/gg4bLNIbF8huHb7hq51Oi6xTvDRBUeucLHEWJjzsb31TL1FQS0tM0F7PFnxBeCeaXCTtLwAYQbSNPBsVgRsTU0gi7XNmSmnPhNoWHMSjStVihPE+TsZgZIUP4d//adkEw0EtJlFlwf4Riv/B46FdPJLCkKkg6pkdpuvxIE=; Message-ID: <963141.59754.qm@web110808.mail.gq1.yahoo.com> X-YMail-OSG: dFeWtxIVM1n887VRIBJq8VoqMEk3lj0jeXu3Jukko4zNcFWUYWSP6ic2E7XCf3IBwClk03dvdmYFaYl2v_gIKdI7sHSKoKSSXR0vvlDn6GQwHkR9DMW72_1fGAmtqmyIKBVtM8Qlf93yCqf9O4Dref3UgQQncvK.FWGk6nuYBgXtWXetUIWa.fmggaTVxHKb8l4BaZ.A1owfeHhitqpF7fiiRkwBKHwY6gF6eDygs1pSgrXcifzN1DtjettbJQMXZRqBBWEf04y0PM2rw8U8SqV3lEvJ3G.zNL0XAr66KE3C4eDPsh_UjaMZmk5VjkyvGCI__tl5KE_Ys4wkaP1TW.vflFH_25F0G_bez5X2SOId9xG7FZEcpstYsA-- Received: from [199.203.99.233] by web110808.mail.gq1.yahoo.com via HTTP; Tue, 19 May 2009 08:14:24 PDT X-Mailer: YahooMailClassic/5.3.9 YahooMailWebService/0.7.289.10 Date: Tue, 19 May 2009 08:14:24 -0700 (PDT) From: Uri Shkolnik Subject: [PATCH] [09051_45] Siano: smscards - add board (target) events To: LinuxML MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org # HG changeset patch # User Uri Shkolnik # Date 1242746343 -10800 # Node ID 757712d337876acd47621f6a2712026c732da2c4 # Parent 2b865fa7f195524bc9e8557dac472140755058dd [09051_45] Siano: smscards - add board (target) events From: Uri Shkolnik Add events handling for targets. All board-specific (target specific) should reside here. Priority: normal Signed-off-by: Uri Shkolnik --- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -r 2b865fa7f195 -r 757712d33787 linux/drivers/media/dvb/siano/sms-cards.h --- a/linux/drivers/media/dvb/siano/sms-cards.h Tue May 19 18:15:21 2009 +0300 +++ b/linux/drivers/media/dvb/siano/sms-cards.h Tue May 19 18:19:03 2009 +0300 @@ -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