From patchwork Sun Apr 5 08:21:23 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uri Shkolnik X-Patchwork-Id: 16397 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 n358LTZk016412 for ; Sun, 5 Apr 2009 08:21:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754420AbZDEIV3 (ORCPT ); Sun, 5 Apr 2009 04:21:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757471AbZDEIV2 (ORCPT ); Sun, 5 Apr 2009 04:21:28 -0400 Received: from web110806.mail.gq1.yahoo.com ([67.195.13.229]:26402 "HELO web110806.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754420AbZDEIV0 (ORCPT ); Sun, 5 Apr 2009 04:21:26 -0400 Received: (qmail 85702 invoked by uid 60001); 5 Apr 2009 08:21:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1238919683; bh=B9Jwmsck6bBjgQOHBs/061SEHIGjlEj1Hcy9YwbGe6c=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=WVzg9UA3GPGiamiJWeeDYGdOatZFpuw0mjE9eiY3UKlLFFYQGSPd/3IG8ppOCJJ6X1PYfLInP4QU4NwIGUVMNCO8glbkKwIQvhjdpLOyHl+gbeAqnL6sJoqju8q4diLLtOUQ7b1zuJAeW7UELqTWV/I//O3gr0/qJZJU3CNV9hw= 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=KdcPO/ixUNSxeArAmMpEJ00dPae6We1r6L5i/6TMcpXEC1f09IniT0Rq955yS+SaSx9FWQRybIj+b2FgRWLYFfGPfliVkVPXKfihI28lhrYLFiG/0V2QOXycs4Gs7shjG5nipQ2/NXxoC6tCDBbzxAwWSUFslN/jN3CLkauifYs=; Message-ID: <940586.84963.qm@web110806.mail.gq1.yahoo.com> X-YMail-OSG: zskrrX8VM1nPn6hNWIhynt5fvyiRUaghPxnsze.a7B19GVTSoEtpAPRSSPwFo6LpFGh8ieRInlF6bhGUOE2mdKofYnB2.Bg3UwuhmMe0v1q8L3rnoNlOClm9fsr6d5F.eZ8dPT1zdNHqtas15BYqmFX.yro5gTaANOmP_sOkIvq7QmggGKdZ6Y5UuxDe4syS6WwCjdvj_TcULteIUOWVI3BceWEPB8iuRUnQaeSulskqg7vMlRoC8jpuTeIs1zRZdyZHkbDQEDB2IMDkXn8Xy2epYaoXJkTpjwILvzfCDAHX5e7OMUVaZ4Xq6W5SIOC6CWKC2wC2GsMwyR6q6nDgQtwdUsL2q.lPK8KYAfwa Received: from [199.203.99.233] by web110806.mail.gq1.yahoo.com via HTTP; Sun, 05 Apr 2009 01:21:23 PDT X-Mailer: YahooMailClassic/5.2.15 YahooMailWebService/0.7.289.1 Date: Sun, 5 Apr 2009 01:21:23 -0700 (PDT) From: Uri Shkolnik Subject: [PATCH] [0904_3] Siano: core - move and update the main core structure declaration 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 1238691361 -10800 # Node ID 19925582e5dded86fccce7d8c9965285c1240836 # Parent 05cf6606192642241ff25a152e249118cb8a129b [PATCH] [0904_3] Siano: core - move and update the main core structure declaration From: Uri Shkolnik smscoreapi - move the main core structure declaration to the header, in order to enable other components (such as IR) to use it. 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 05cf66061926 -r 19925582e5dd linux/drivers/media/dvb/siano/smscoreapi.c --- a/linux/drivers/media/dvb/siano/smscoreapi.c Thu Apr 02 19:47:39 2009 +0300 +++ b/linux/drivers/media/dvb/siano/smscoreapi.c Thu Apr 02 19:56:01 2009 +0300 @@ -56,42 +56,6 @@ struct smscore_client_t { struct list_head idlist; onresponse_t onresponse_handler; onremove_t onremove_handler; -}; - -struct smscore_device_t { - struct list_head entry; - - struct list_head clients; - struct list_head subclients; - spinlock_t clientslock; - - struct list_head buffers; - spinlock_t bufferslock; - int num_buffers; - - void *common_buffer; - int common_buffer_size; - dma_addr_t common_buffer_phys; - - void *context; - struct device *device; - - char devpath[32]; - unsigned long device_flags; - - setmode_t setmode_handler; - detectmode_t detectmode_handler; - sendrequest_t sendrequest_handler; - preload_t preload_handler; - postload_t postload_handler; - - int mode, modes_supported; - - struct completion version_ex_done, data_download_done, trigger_done; - struct completion init_device_done, reload_start_done, resume_done; - - int board_id; - int led_state; }; void smscore_set_board_id(struct smscore_device_t *core, int id) diff -r 05cf66061926 -r 19925582e5dd linux/drivers/media/dvb/siano/smscoreapi.h --- a/linux/drivers/media/dvb/siano/smscoreapi.h Thu Apr 02 19:47:39 2009 +0300 +++ b/linux/drivers/media/dvb/siano/smscoreapi.h Thu Apr 02 19:56:01 2009 +0300 @@ -128,6 +128,60 @@ struct smsclient_params_t { onremove_t onremove_handler; void *context; +}; + +struct smscore_device_t { + struct list_head entry; + + struct list_head clients; + struct list_head subclients; + spinlock_t clientslock; + + struct list_head buffers; + spinlock_t bufferslock; + int num_buffers; + + void *common_buffer; + int common_buffer_size; + dma_addr_t common_buffer_phys; + + void *context; + struct device *device; + + char devpath[32]; + unsigned long device_flags; + + setmode_t setmode_handler; + detectmode_t detectmode_handler; + sendrequest_t sendrequest_handler; + preload_t preload_handler; + postload_t postload_handler; + + int mode, modes_supported; + + /* host <--> device messages */ + struct completion version_ex_done, data_download_done, trigger_done; + struct completion init_device_done, reload_start_done, resume_done; + struct completion gpio_configuration_done, gpio_set_level_done; + struct completion gpio_get_level_done, ir_init_done; + + /* Buffer management */ + wait_queue_head_t buffer_mng_waitq; + + /* GPIO */ + int gpio_get_res; + + /* Target hardware board */ + int board_id; + + /* Firmware */ + u8 *fw_buf; + u32 fw_buf_size; + + /* Infrared (IR) */ + /* struct ir_t ir; */ + + int led_state; }; /* GPIO definitions for antenna frequency domain control (SMS8021) */