From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32662 invoked by alias); 24 Sep 2009 11:45:48 -0000 Received: (qmail 32603 invoked by uid 22791); 24 Sep 2009 11:45:46 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40 X-Spam-Check-By: sourceware.org Received: from cpanel5.proisp.no (HELO cpanel5.proisp.no) (209.85.100.29) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 24 Sep 2009 11:45:42 +0000 Received: from an-out-0708.google.com ([209.85.132.250]:31408) by cpanel5.proisp.no with esmtpsa (TLSv1:RC4-MD5:128) (Exim 4.69) (envelope-from ) id 1MqmlQ-0007Kp-60 for ecos-discuss@ecos.sourceware.org; Thu, 24 Sep 2009 13:45:32 +0200 Received: by an-out-0708.google.com with SMTP id b6so638857ana.21 for ; Thu, 24 Sep 2009 04:45:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.101.5.22 with SMTP id h22mr4095599ani.186.1253792724771; Thu, 24 Sep 2009 04:45:24 -0700 (PDT) In-Reply-To: <6afa98b0909240334i7536f39drfce21817f2fe686c@mail.gmail.com> References: <6afa98b0909240334i7536f39drfce21817f2fe686c@mail.gmail.com> Date: Thu, 24 Sep 2009 11:45:00 -0000 Message-ID: From: Edgar Grimberg To: Lars Dahlin Cc: ecos-discuss@ecos.sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] connect ethernet cable at run-time X-SW-Source: 2009-09/txt/msg00227.txt.bz2 Hi Lars, > 2) When the network cable is connected, cyg_netint wakes up and does its thing. You can write an interrupt routine for the PHY chip and have that start/stop the ethernet. As an example, look at: static cyg_uint32 phy_isr(cyg_vector_t vector, cyg_addrword_t data) static void phy_dsr(cyg_vector_t vector, cyg_ucount32 count, cyg_addrword_t data) from http://www.ecosforge.net/ecosforge/trunk/ecos_mpc8313/packages/devs/eth/powerpc/quicc2pro/current/src/tsec.c Regards, Edgar > > Or is there a better way? The problem is that i dont know how to do either way. > > All ideas are welcome. Thank you in advance. > > Best Regards > Lars Dahlin > > -- > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > > -- Edgar Grimberg System Developer Zylin AS ZY1000 JTAG Debugger http://www.zylin.com/zy1000.html Phone: (+47) 51 63 25 00 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss