[haiku-development] Re: Discovering the SDHC device on PCI bus

  • From: B Krishnan Iyer <krishnaniyer97@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 1 Jun 2018 16:02:39 +0530

Hi,

I posted a PoC for you there https://review.haiku-os.org/#/c/haiku/+/276/

Thank you

A bit of explanation: the device manager is on-demand, it means it
won't try to load a driver for a device which the system doesn't need
(most of the time).
So for the device manager to consider the sdhci bus device, it has to
be added under a section which could bring a type of devices. I added
it on the "disk" section.

Yeah, I tried adding PCI class and subclass under disk to not consider
as on demand and it worked :). I need to define something like
"sdhci_mmc_bus_interface" jst like "virtio_sim_interface" in vritio.h.
Will it be ok to create sdhci.h or using "device_module_info" will do
for now?

Thanks,

B Krishnan Iyer

Other related posts: