From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.231]) by ozlabs.org (Postfix) with ESMTP id 47E54DDED0 for ; Thu, 12 Jul 2007 00:50:34 +1000 (EST) Received: by wx-out-0506.google.com with SMTP id h27so1374742wxd for ; Wed, 11 Jul 2007 07:50:33 -0700 (PDT) Message-ID: <929bf310707110750r32557735v848d84c626f0b5d9@mail.gmail.com> Date: Wed, 11 Jul 2007 16:50:32 +0200 From: "Konstantin Boyanov" To: linuxppc-embedded@ozlabs.org Subject: Leaf drivers on Linux? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3531_1456567.1184165432893" List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_3531_1456567.1184165432893 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi list, I'm a little bit confused about an issue I hope you can shed some light on it. Right now I'm trying to write a driver for a vustom piece of hardware, which resides on a VME bus. I'm using 2.6.15 kernel with an VME driver and can access the device through normal ioctl()'s, read(), writes()'s. My confiusion comes from the fact that from my driver I have to read some registers when the custom device generates an interrupt, but since this happens in kernel space, I'm not sure wheather I can use the normal IO controls or not. Further confusion brings the fact that there is already a working device for Solaris/SPARC for this device, and there the device driver uses some kind of leaf driver. Is the concept of leaf and nexus drivers, which is present in Solaris, also present in Linux? I tried to find some information about differences in the two operating systems on that level but only ended up in the "Writing device drivers" tutorials on doc.sun.com. If anybody can give me some clue about this leaf stuff I'll be thankful. Best regards, Konstantin ------=_Part_3531_1456567.1184165432893 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi list,

I'm a little bit confused about an issue I hope you can shed some light on it.

Right now I'm trying to write a driver for a vustom piece of hardware, which resides on a VME bus. I'm using 2.6.15 kernel with an VME driver and can access the device through normal ioctl()'s, read(), writes()'s. My confiusion comes from the fact that from my driver I have to read some registers when the custom device generates an interrupt, but since this happens in kernel space, I'm not sure wheather I can use the normal IO controls or not. Further confusion brings the fact that there is already a working device for Solaris/SPARC for this device, and there the device driver uses some kind of leaf driver. Is the concept of leaf and nexus drivers, which is present in Solaris, also present in Linux? I tried to find some information about differences in the two operating systems on that level but only ended up in the "Writing device drivers" tutorials on doc.sun.com.

If anybody can give me some clue about this leaf stuff I'll be thankful.

Best regards,
Konstantin

------=_Part_3531_1456567.1184165432893--