From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 496 invoked by alias); 27 Jun 2005 12:46:29 -0000 Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org Received: (qmail 489 invoked by uid 22791); 27 Jun 2005 12:46:27 -0000 Received: from otoro.itis.ethz.ch (HELO otoro.itis.ethz.ch) (129.132.24.2) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 27 Jun 2005 12:46:27 +0000 Received: from localhost (localhost [127.0.0.1]) by otoro.itis.ethz.ch (Postfix) with ESMTP id ED87A5B383 for ; Mon, 27 Jun 2005 14:46:24 +0200 (MEST) Received: from otoro.itis.ethz.ch ([127.0.0.1]) by localhost (otoro [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02922-01-3 for ; Mon, 27 Jun 2005 14:46:24 +0200 (MEST) Received: from cadpad (itis-speag-094-dhcp.itis.ethz.ch [129.132.24.94]) by otoro.itis.ethz.ch (Postfix) with SMTP id 16C0E5B380 for ; Mon, 27 Jun 2005 14:46:24 +0200 (MEST) Message-ID: <007a01c57b16$39a30890$5e188481@cadpad> Reply-To: "oliver munz @ s p e a g" From: "oliver munz @ s p e a g" To: Subject: why use the SA1110-USB-driver a static /dev/usbs... definition ??? Date: Mon, 27 Jun 2005 12:46:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Antivirus: avast! (VPS 0525-5, 25.06.2005), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: by amavisd-new at itis.ethz.ch X-SW-Source: 2005-06/txt/msg00006.txt.bz2 Hello I'm writing a device-driver on basis of the SA1110-USB-driver. First I made a package without functionality. Then I tryed to get a handel of my driver. It dosent worked. There was also no entry in the ..._install\lib\\libextras.a. After houres of searching, I found, that the reason is the static definition of the ..._devtab_entry. After removing the "static" key-word, my test-program found his handels and does some pseudo inits... The question for me is now, what is the reason for a static devtab? The original source is: "...\ecos\packages\devs\usb\sa11x0\current\src\usbs_sa11x0_data.cxx" static CHAR_DEVIO_TABLE(usbs_sa11x0_ep0_devtab_functions, &cyg_devio_cwrite, &cyg_devio_cread, &cyg_devio_select, &usbs_devtab_get_config, &usbs_devtab_set_config); static CHAR_DEVTAB_ENTRY(usbs_sa11x0_ep0_devtab_entry, CYGDAT_DEVS_USB_SA11X0_DEVTAB_BASENAME "0c", 0, &usbs_sa11x0_ep0_devtab_functions, &usbs_sa11x0_devtab_ep0_init, 0, (void*) &usbs_sa11x0_ep0); Thanks for answers Oliver Munz