public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* what's a platform device?
@ 2006-02-22 21:47 Kumar Gala
  2006-02-23  4:39 ` Greg KH
  2006-02-23  9:33 ` Russell King
  0 siblings, 2 replies; 11+ messages in thread
From: Kumar Gala @ 2006-02-22 21:47 UTC (permalink / raw)
  To: Russell King, Greg KH; +Cc: linux-kernel

Guys,

I was hoping to get your opinion on a question I had.  The question comes 
down to what we think a "platform device" is.

The situation I have is an FPGA connected over PCI.  The FPGA implements
various device functionality (serial ports, I2C controller, IR, etc.) as a
single PCI device/function.  The FPGA breaks any notion of a true PCI
device, it uses PCI as a device interconnect more than anything else.

In talking to Greg about this, he suggested I just create a new bus_type
for this similar to what is being done for usb-serial.  As I started to
think about what I wanted ended up being a platform_device plus a sysfs
entry for the MMIO region.

So, it seems that a "platform device" is a pretty generic concept now.  Do 
you guys thing its acceptable to use a platform device for my needs or 
should I create some new bus_type?  Do we have a better definition of what 
a platform device is or might be?

If we're ok with my use of platform device for this, I assume no one has
an issue with adding a sysfs attribute to platform devices to expose the
MMIO regions similar to what we do for PCI today.

thanks

- kumar


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

end of thread, other threads:[~2006-03-02 15:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-22 21:47 what's a platform device? Kumar Gala
2006-02-23  4:39 ` Greg KH
2006-02-23  4:55   ` Kumar Gala
2006-02-23  5:13     ` Greg KH
2006-02-23  7:04       ` Kumar Gala
2006-02-23 19:30         ` Kumar Gala
2006-02-24  1:42           ` Greg KH
2006-02-27 22:25             ` Kumar Gala
2006-03-02 15:39               ` Russell King
2006-02-23  9:33 ` Russell King
2006-02-23 16:13   ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox