pci: add support for 64-bit BARs
pci: add support for 64-bit BARs

Even though the OS is 32-bit, 64-bit BARs can still be mapped into
32-bit address space.

64-bit BARs occupy two entries instead of one, so the offset of a BAR
isn't necessarily its index multiplied by 4. To cope with that, hold an
extra offset field in the lookup structure.

Only 3 bits are required for index as well as the offset since the there
are up to 6 BARs.

Change-Id: I0d4955a3aca70b7fc81a1df06ab5f9f45793c70f
Signed-off-by: Ido Yariv <4cfb94d8d091197d4c0115f8c7bf1f14a949c224@intel.com>
Signed-off-by: Anas Nashif <0d9952ec84ac43c159f6b7e7ed99a9080c00dd6e@intel.com>
Signed-off-by: Ido Yariv <9bf660e90dbb8f09e938a5703dac0e6c6d0031d5@wizery.com>

holtmann/zephyr,bigdinotech/zephyr,rsalveti/zephyr,holtmann/zephyr,fbsder/zephyr,kraj/zephyr,zephyriot/zephyr,ldts/zephyr,kraj/zephyr,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,holtmann/zephyr,zephyrproject-rtos/zephyr,sharronliu/zephyr,explora26/zephyr,mbolivar/zephyr,explora26/zephyr,bboozzoo/zephyr,mirzak/zephyr-os,aceofall/zephyr-iotos,runchip/zephyr-cc3220,mirzak/zephyr-os,pklazy/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,tidyjiang8/zephyr-doc,runchip/zephyr-cc3220,bboozzoo/zephyr,kraj/zephyr,zephyriot/zephyr,rsalveti/zephyr,tidyjiang8/zephyr-doc,pklazy/zephyr,sharronliu/zephyr,Vudentz/zephyr,fractalclone/zephyr-riscv,punitvara/zephyr,runchip/zephyr-cc3200,sharronliu/zephyr,holtmann/zephyr,punitvara/zephyr,nashif/zephyr,galak/zephyr,fractalclone/zephyr-riscv,pklazy/zephyr,runchip/zephyr-cc3200,ldts/zephyr,jamesonwilliams/zephyr-kernel,zephyrproject-rtos/zephyr,bigdinotech/zephyr,jamesonwilliams/zephyr-kernel,holtmann/zephyr,coldnew/zephyr-project-fork,runchip/zephyr-cc3220,runchip/zephyr-cc3220,explora26/zephyr,32bitmicro/zephyr,aceofall/zephyr-iotos,32bitmicro/zephyr,punitvara/zephyr,explora26/zephyr,GiulianoFranchetto/zephyr,32bitmicro/zephyr,ldts/zephyr,galak/zephyr,aceofall/zephyr-iotos,mirzak/zephyr-os,erwango/zephyr,tidyjiang8/zephyr-doc,rsalveti/zephyr,fractalclone/zephyr-riscv,nashif/zephyr,zephyriot/zephyr,tidyjiang8/zephyr-doc,jamesonwilliams/zephyr-kernel,Vudentz/zephyr,Vudentz/zephyr,kraj/zephyr,kraj/zephyr,finikorg/zephyr,bboozzoo/zephyr,fbsder/zephyr,Vudentz/zephyr,coldnew/zephyr-project-fork,bboozzoo/zephyr,galak/zephyr,sharronliu/zephyr,runchip/zephyr-cc3200,pklazy/zephyr,GiulianoFranchetto/zephyr,mirzak/zephyr-os,32bitmicro/zephyr,ldts/zephyr,sharronliu/zephyr,coldnew/zephyr-project-fork,zephyrproject-rtos/zephyr,jamesonwilliams/zephyr-kernel,bigdinotech/zephyr,nashif/zephyr,pklazy/zephyr,fbsder/zephyr,erwango/zephyr,Vudentz/zephyr,galak/zephyr,zephyriot/zephyr,runchip/zephyr-cc3200,bigdinotech/zephyr,ldts/zephyr,punitvara/zephyr,fractalclone/zephyr-riscv,nashif/zephyr,mbolivar/zephyr,coldnew/zephyr-project-fork,erwango/zephyr,bigdinotech/zephyr,bboozzoo/zephyr,GiulianoFranchetto/zephyr,zephyriot/zephyr,jamesonwilliams/zephyr-kernel,punitvara/zephyr,mirzak/zephyr-os,fbsder/zephyr,runchip/zephyr-cc3200,fractalclone/zephyr-riscv,finikorg/zephyr,mbolivar/zephyr,erwango/zephyr,finikorg/zephyr,rsalveti/zephyr,Vudentz/zephyr,mbolivar/zephyr,GiulianoFranchetto/zephyr,coldnew/zephyr-project-fork,explora26/zephyr,erwango/zephyr,rsalveti/zephyr,mbolivar/zephyr,galak/zephyr,aceofall/zephyr-iotos,aceofall/zephyr-iotos,32bitmicro/zephyr,runchip/zephyr-cc3220,nashif/zephyr,fbsder/zephyr,finikorg/zephyr,tidyjiang8/zephyr-doc