[PATCH v4 14/15] NTB: switchtec_ntb: Add memory window support

2017-08-03 Thread Logan Gunthorpe
The Switchtec hardware has two types of memory windows: LUTs and Direct. The first area in each BAR is for LUT windows and the remaining area is for the direct region. The total number of LUT entries is set by a configuration setting in hardware and they all must be the same size. (This is fixed

[PATCH v4 14/15] NTB: switchtec_ntb: Add memory window support

2017-08-03 Thread Logan Gunthorpe
The Switchtec hardware has two types of memory windows: LUTs and Direct. The first area in each BAR is for LUT windows and the remaining area is for the direct region. The total number of LUT entries is set by a configuration setting in hardware and they all must be the same size. (This is fixed