linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Driver for device behind a PCI-VME bridge
@ 2007-08-20  8:40 Konstantin Boyanov
  2007-08-20  8:45 ` Johan Borkhuis
  0 siblings, 1 reply; 8+ messages in thread
From: Konstantin Boyanov @ 2007-08-20  8:40 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 1110 bytes --]

Hi list,

I'm currently reading the LDD 3rd Edition and trying to create a device
driver for a custom device located on VME bus. I have already linux
2.6.15running on the master board, as well as the device driver for
the PCI-VME
bridge. The main problem I have is understanding how to "attach" my driver
for the custom device to the bridge device driver.
The bridge device driver is implemented as a class, i.e. doesn't define a
new bus type. Should I define a new class for my driver, or should I connect
it somehow to the existing one (maybe by something as "subclass")?
All I want to do is to redirect I/O reads and writes to the VME bus, but I
got no clue as to how to use the existing VME bridge driver for this
purpose. After I get through this I think all other things (VME interrupt
registration & handling, etc.) will be straightforward.
The LDD 3rd book states that defining a new bus type is the last thing one
would like to do, instead defining a class is far better approach. Why is
that?

Any recommendations and sharing of practical experience are highly
appreciated.

Best Regards,
Konstantin

[-- Attachment #2: Type: text/html, Size: 1200 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-08-23  8:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-20  8:40 Driver for device behind a PCI-VME bridge Konstantin Boyanov
2007-08-20  8:45 ` Johan Borkhuis
2007-08-20  8:58   ` Konstantin Boyanov
     [not found]     ` <929bf310708210055k3970c3chfc097ff776af439a@mail.gmail.com>
2007-08-21  7:56       ` Konstantin Boyanov
2007-08-21  8:32         ` Johan Borkhuis
2007-08-21  9:49           ` Konstantin Boyanov
     [not found]             ` <46CAE973.6040306@dutchspace.nl>
2007-08-23  7:47               ` Konstantin Boyanov
2007-08-23  8:24                 ` Johan Borkhuis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).