From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26540 invoked by alias); 14 Jun 2007 19:41:07 -0000 Received: (qmail 26532 invoked by uid 22791); 14 Jun 2007 19:41:07 -0000 X-Spam-Check-By: sourceware.org Received: from nz-out-0506.google.com (HELO nz-out-0506.google.com) (64.233.162.230) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 14 Jun 2007 19:41:05 +0000 Received: by nz-out-0506.google.com with SMTP id q3so607759nzb for ; Thu, 14 Jun 2007 12:41:03 -0700 (PDT) Received: by 10.143.165.13 with SMTP id s13mr112218wfo.1181850062958; Thu, 14 Jun 2007 12:41:02 -0700 (PDT) Received: by 10.143.33.18 with HTTP; Thu, 14 Jun 2007 12:41:02 -0700 (PDT) Message-ID: <70d4f620706141241x6eefc498w18d9590e5dc2ef93@mail.gmail.com> Date: Fri, 15 Jun 2007 01:21:00 -0000 From: "Mike Sweeney" To: ecos-discuss@ecos.sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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: [ECOS] Device driver implementation questions X-SW-Source: 2007-06/txt/msg00160.txt.bz2 I am finding the way device drivers are implemented in eCos to be slightly confusing so was looking for some help. The main source of my confusion is the need for some sort of interface under the io package and then another part of the driver in the devs package. I have looked at examples like the serial driver and understand how it works in that context, but am having trouble seeing the bigger picture. Should drivers for all types of devices follow this split implementation design? Furthermore, can someone provide me an analogy between the eCos driver model and Linux, for example? I don't see this two layer method in Linux so am hoping someone can clarify this. Thanks. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss