Zephyr API 3.6.99
|
PCIe Virtual Channel Host Interface . More...
Data Structures | |
struct | pcie_vctc_map |
Macros | |
#define | PCIE_VC_MAX_COUNT 8U |
#define | PCIE_VC_SET_TC0 BIT(0) |
#define | PCIE_VC_SET_TC1 BIT(1) |
#define | PCIE_VC_SET_TC2 BIT(2) |
#define | PCIE_VC_SET_TC3 BIT(3) |
#define | PCIE_VC_SET_TC4 BIT(4) |
#define | PCIE_VC_SET_TC5 BIT(5) |
#define | PCIE_VC_SET_TC6 BIT(6) |
#define | PCIE_VC_SET_TC7 BIT(7) |
Functions | |
int | pcie_vc_enable (pcie_bdf_t bdf) |
Enable PCIe Virtual Channel handling. | |
int | pcie_vc_disable (pcie_bdf_t bdf) |
Disable PCIe Virtual Channel handling. | |
int | pcie_vc_map_tc (pcie_bdf_t bdf, struct pcie_vctc_map *map) |
Map PCIe TC/VC. | |
PCIe Virtual Channel Host Interface .
#define PCIE_VC_MAX_COUNT 8U |
#include <zephyr/drivers/pcie/vc.h>
#define PCIE_VC_SET_TC0 BIT(0) |
#include <zephyr/drivers/pcie/vc.h>
#define PCIE_VC_SET_TC1 BIT(1) |
#include <zephyr/drivers/pcie/vc.h>
#define PCIE_VC_SET_TC2 BIT(2) |
#include <zephyr/drivers/pcie/vc.h>
#define PCIE_VC_SET_TC3 BIT(3) |
#include <zephyr/drivers/pcie/vc.h>
#define PCIE_VC_SET_TC4 BIT(4) |
#include <zephyr/drivers/pcie/vc.h>
#define PCIE_VC_SET_TC5 BIT(5) |
#include <zephyr/drivers/pcie/vc.h>
#define PCIE_VC_SET_TC6 BIT(6) |
#include <zephyr/drivers/pcie/vc.h>
#define PCIE_VC_SET_TC7 BIT(7) |
#include <zephyr/drivers/pcie/vc.h>
int pcie_vc_disable | ( | pcie_bdf_t | bdf | ) |
#include <zephyr/drivers/pcie/vc.h>
Disable PCIe Virtual Channel handling.
bdf | the target PCI endpoint |
int pcie_vc_enable | ( | pcie_bdf_t | bdf | ) |
#include <zephyr/drivers/pcie/vc.h>
Enable PCIe Virtual Channel handling.
bdf | the target PCI endpoint |
Note: Not being able to enable such feature is a non-fatal error and any code using it should behave accordingly (displaying some info, and ignoring it for instance).
int pcie_vc_map_tc | ( | pcie_bdf_t | bdf, |
struct pcie_vctc_map * | map ) |
#include <zephyr/drivers/pcie/vc.h>
Map PCIe TC/VC.
bdf | the target PCI endpoint |
map | the tc/vc map to apply |
Note: VC must be disabled prior to call this function and enabled afterward in order for the endpoint to take advandage of the map.
Note: Not being able to enable such feature is a non-fatal error and any code using it should behave accordingly (displaying some info, and ignoring it for instance).