[haiku-development] Re: SDHCI MMC Driver: Trouble in Mapping the Registers

  • From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 20 Jun 2018 06:57:31 +0000

Currently, the project is very badly stuck at mapping the registers
without that we can't configure the interrupts. We have tried
accessing the registers with both read/write_io_(x) and
map_physical_memory()[2](MMUIO) but both of them didn't work out,
either they are giving 0xffff or 0x0000(65535 or 0).

Not sure if it helps, but it seems eg. the Via driver is mapping
different things:
https://github.com/pdziepak/Haiku/blob/master/src/add-ons/kernel/drivers/graphics/via/driver.c#L385

Notice the use of di->pcii.u.h0.base_registers_pci, rather than 
pciInfo->u.h0.base_registers in
your case. Maybe this is needed for SDHCI too? What is the difference between 
these?

-- 
Adrien.

Other related posts: