Visible to Intel only — GUID: nik1410565014348
Ixiasoft
Visible to Intel only — GUID: nik1410565014348
Ixiasoft
16.6.9.2. ebfm_cfg_decode_bar Procedure
The ebfm_cfg_decode_bar procedure analyzes the information in the BAR table for the specified BAR and returns details about the BAR attributes.
Location |
altpcietb_bfm_driver_rp.v
|
|
---|---|---|
Syntax |
ebfm_cfg_decode_bar(bar_table, bar_num, log2_size, is_mem, is_pref, is_64b) |
|
Arguments |
bar_table | Address of the Endpoint bar_table structure in BFM shared memory. |
bar_num | BAR number to analyze. |
|
log2_size | This argument is set by the procedure to the log base 2 of the size of the BAR. If the BAR is not enabled, this argument is set to 0. |
|
is_mem | The procedure sets this argument to indicate if the BAR is a memory space BAR (1) or I/O Space BAR (0). |
|
is_pref | The procedure sets this argument to indicate if the BAR is a prefetchable BAR (1) or non-prefetchable BAR (0). |
|
is_64b | The procedure sets this argument to indicate if the BAR is a 64-bit BAR (1) or 32-bit BAR (0). This is set to 1 only for the lower numbered BAR of the pair. |