[PATCH v2 09/16] switchtec_ntb: initialize hardware for memory windows

2017-07-18 Thread Logan Gunthorpe
Add the code to initialize the memory windows in the hardware. This includes setting up the requester ID table, and figuring out which bar corresponds to which memory window. (Seeing the switch can be configured with any number of bars.) Also, seeing the device doesn't have hardware for

[PATCH v2 09/16] switchtec_ntb: initialize hardware for memory windows

2017-07-18 Thread Logan Gunthorpe
Add the code to initialize the memory windows in the hardware. This includes setting up the requester ID table, and figuring out which bar corresponds to which memory window. (Seeing the switch can be configured with any number of bars.) Also, seeing the device doesn't have hardware for