My application uses register blocks that are memory-mapped during runtime (controlling FPGAs over PCIe bus from Linux with VFIO), so there's no way to know the exact base address in advance. Is there a way to accommodate such a usecase? I briefly looked into provided headers and it appears that `all classes are either calling default constructors, or using constexpr functionality, however for my usecase I need to somehow pass the base address when instantiating the HAL object (and it need to support multiple instances of the same HAL at different bases). This scenario doesn't feel too exotic or obscure to me, so I'm wondering if I'm missing something.
I'm open to implementing this feature myself and sending a MR, if you could advise whether this make sense at all and what would be the best way to go about it.
Otherwise, great piece of software! It would be awesome if I could actually use it.
Thank you in advance =)
My application uses register blocks that are memory-mapped during runtime (controlling FPGAs over PCIe bus from Linux with VFIO), so there's no way to know the exact base address in advance. Is there a way to accommodate such a usecase? I briefly looked into provided headers and it appears that `all classes are either calling default constructors, or using constexpr functionality, however for my usecase I need to somehow pass the base address when instantiating the HAL object (and it need to support multiple instances of the same HAL at different bases). This scenario doesn't feel too exotic or obscure to me, so I'm wondering if I'm missing something.
I'm open to implementing this feature myself and sending a MR, if you could advise whether this make sense at all and what would be the best way to go about it.
Otherwise, great piece of software! It would be awesome if I could actually use it.
Thank you in advance =)