History

ntb_hw_switchtec: Added support of >=4G memory windows

Current Switchtec's BAR setup registers are limited to 32bits, corresponding to the maximum MW (memory window) size is <4G. Increase the MW sizes with the addition of the BAR Setup Extension Register for the upper 32bits of a 64bits MW size. This increases the MW range to between 4K and 2^63.

Paul Selles committed 7 years ago

Commit a2585cd1 parent d123fab2 files · +12 −3Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/switchtec.h+5−1
@@ -248,7 +248,11 @@ struct ntb_ctrl_regs { · 247 unmodified lines
248 u32 win_size;248 u32 win_size;
249 u64 xlate_addr;249 u64 xlate_addr;
250 } bar_entry[6];250 } bar_entry[6];
251 u32 reserved2[216];251 struct {
252 u32 win_size;
253 u32 reserved[3];
254 } bar_ext_entry[6];
255 u32 reserved2[192];
252 u32 req_id_table[512];256 u32 req_id_table[512];
253 u32 reserved3[256];257 u32 reserved3[256];
254 u64 lut_entry[512];258 u64 lut_entry[512];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t