Go to the source code of this file.
◆ vtd_alloc_entries_f
typedef int(* vtd_alloc_entries_f) (const struct device *dev, uint8_t n_entries) |
◆ vtd_remap_f
◆ vtd_remap_msi_f
◆ vtd_allocate_entries()
static int vtd_allocate_entries |
( |
const struct device * |
dev, |
|
|
uint8_t |
n_entries |
|
) |
| |
|
inlinestatic |
Allocate contiguous IRTEs.
- Parameters
-
dev | Pointer to the device structure for the driver instance |
n_entries | How many IRTE to allocate |
Note: It will try to allocate all, or it will fail.
- Returns
- The first allocated IRTE index, or -EBUSY on failure
◆ vtd_remap()
Remap the given vector.
- Parameters
-
dev | Pointer to the device structure for the driver instance |
vector | A valid allocated MSI vector |
- Returns
- 0 on success, a negative errno otherwise
◆ vtd_remap_msi()
Generate the MSI Message Address data for the given vector.
- Parameters
-
dev | Pointer to the device structure for the driver instance |
vector | A valid allocated MSI vector |
- Returns
- The MSI Message Address value