From patchwork Sun Apr 5 12:07:17 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uri Shkolnik X-Patchwork-Id: 16420 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 n35C7L5I031625 for ; Sun, 5 Apr 2009 12:07:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751217AbZDEMHV (ORCPT ); Sun, 5 Apr 2009 08:07:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751065AbZDEMHV (ORCPT ); Sun, 5 Apr 2009 08:07:21 -0400 Received: from web110812.mail.gq1.yahoo.com ([67.195.13.235]:45096 "HELO web110812.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750841AbZDEMHU (ORCPT ); Sun, 5 Apr 2009 08:07:20 -0400 Received: (qmail 44472 invoked by uid 60001); 5 Apr 2009 12:07:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1238933238; bh=e41QEoeS8c3HEkH7HQbqah/l6cqzRyeEy2fochBV9yk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=UYt7qizD7LRMOOWpGPu73LbAz0/4BoUJPREGqtczx/h3vvbsWmb7SITC1+oRHe2hS2szvLUa4HK3rU+c7H3VsbymqN2GOwQ10GpG2n9pQi98yGm2JLYW2ra8ho38gELVruHOLsTI+Lo8zDcOrVA6+r0efB6LGns2FMDFTlc2YGs= 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=JeKHP4ca22fihcxcbBL3EkNSTXJUNBDyxw0OqVNAnP4lwz/orwOW0pJ/rseh+Vt9xLPIGr+NQwCiA9/zY8n8Zd/Uf2w/8QWz2HyVZuiAci/ZzHrja2QWBRJaiyiJIGUe9Va15xFvajx4KScsGTeCd7RF5Ic0WMfKgIwwMcX67LQ=; Message-ID: <20771.44005.qm@web110812.mail.gq1.yahoo.com> X-YMail-OSG: z6QIrtYVM1nM4sDMnNScpJboQijYD72WfGG7EQ5p6gX1_xdkbDe0jliNLrvYimUJyWAgUfNWi5lraRJGRjfKkR0VrjJOGXEhTy3bZT7s4KNttbeaz2b2aBPKjLVeNBPMWYnPyFaqXON.1NNsQsB0HDgREtC.x55I4ccuI5iKYyC9FSMDZSoQpJ23DbCDsgqgWrdOjyA7qoR3Sl.URWfRhVEHjjirojwVuOsI4ZWqtAeVpo65I.3hmmb.d9VssfK_OKlhMjf54hjjMLJTV2lGp0O.jdAh6kxk31qa5oZWdxPhnifsW4Pz7YF76LZ7e8p7JhDZ2K8rPhRxQ7w__FoZ._bR6NSj6jWPIywSErfL Received: from [199.203.99.233] by web110812.mail.gq1.yahoo.com via HTTP; Sun, 05 Apr 2009 05:07:17 PDT X-Mailer: YahooMailClassic/5.2.15 YahooMailWebService/0.7.289.1 Date: Sun, 5 Apr 2009 05:07:17 -0700 (PDT) From: Uri Shkolnik Subject: [PATCH] [0904_19] Siano: sms-cards - update cards (targets) component header 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 1238760946 -10800 # Node ID 8377a5e61286b90e293e287cefc9638d2ddd938e # Parent ab731e3cec5cb076b8f87f827c3c97a4dd84e0ca [PATCH] [0904_19] Siano: sms-cards - update cards (targets) component header From: Uri Shkolnik sms-cards component holds all target-specific information. The component' header has been added with: 1) Include the infra-red header 2) More target types (definitions) 3) Structure for various GPIO usage 4) Extend "sms_board" struct to include a) GPIO structure b) IR structure 5) Some 'extern' declartion (for future commits usage) 6) "Board Events" structure 7) "board event" function prototype. All modifications are in the declaration level only. 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 ab731e3cec5c -r 8377a5e61286 linux/drivers/media/dvb/siano/sms-cards.h --- a/linux/drivers/media/dvb/siano/sms-cards.h Fri Apr 03 15:00:32 2009 +0300 +++ b/linux/drivers/media/dvb/siano/sms-cards.h Fri Apr 03 15:15:46 2009 +0300 @@ -22,6 +22,7 @@ #include #include "smscoreapi.h" +#include "smsir.h" #define SMS_BOARD_UNKNOWN 0 #define SMS1XXX_BOARD_SIANO_STELLAR 1 @@ -34,6 +35,41 @@ #define SMS1XXX_BOARD_HAUPPAUGE_WINDHAM 8 #define SMS1XXX_BOARD_HAUPPAUGE_TIGER_MINICARD 9 #define SMS1XXX_BOARD_HAUPPAUGE_TIGER_MINICARD_R2 10 +#define SMS1XXX_BOARD_SIANO_NICE 11 +#define SMS1XXX_BOARD_SIANO_VENICE 12 + +struct sms_board_gpio_cfg { + int lna_vhf_exist; + int lna_vhf_ctrl; + int lna_uhf_exist; + int lna_uhf_ctrl; + int lna_uhf_d_ctrl; + int lna_sband_exist; + int lna_sband_ctrl; + int lna_sband_d_ctrl; + int foreign_lna0_ctrl; + int foreign_lna1_ctrl; + int foreign_lna2_ctrl; + int rf_switch_vhf; + int rf_switch_uhf; + int rf_switch_sband; + int leds_power; + int led0; + int led1; + int led2; + int led3; + int led4; + int ir; + int eeprom_wp; + int mrc_sense; + int mrc_pdn_resetn; + int mrc_gp0; /* mrcs spi int */ + int mrc_gp1; + int mrc_gp2; + int mrc_gp3; + int mrc_gp4; + int host_spi_gsp_ts_int; +}; struct sms_board { enum sms_device_type_st type; @@ -41,9 +77,14 @@ struct sms_board { /* gpios */ int led_power, led_hi, led_lo, lna_ctrl, rf_switch; + struct sms_board_gpio_cfg board_cfg; + enum ir_kb_type ir_kb_type; }; struct sms_board *sms_get_board(int id); + +extern struct usb_device_id smsusb_id_table[]; +extern struct smscore_device_t *coredev; int sms_board_setup(struct smscore_device_t *coredev); @@ -56,4 +97,28 @@ int sms_board_lna_control(struct smscore extern int sms_board_load_modules(int id); +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); + #endif /* __SMS_CARDS_H__ */