#define PDSC_WATCHDOG_SECS 5 #define PDSC_QUEUE_NAME_MAX_SZ 16 #define PDSC_ADMINQ_MAX_LENGTH 16 /* must be a power of two */ #define PDSC_NOTIFYQ_LENGTH 64 /* must be a power of two */ #define PDSC_TEARDOWN_RECOVERY false #define PDSC_TEARDOWN_REMOVING true #define PDSC_SETUP_RECOVERY false #define PDSC_SETUP_INIT true
struct pdsc_viftype { char *name; bool supported; bool enabled; int dl_id; int vif_id; struct pds_auxiliary_dev *padev;
};
/* No state flags set means we are in a steady running state */ enum pdsc_state_flags {
PDSC_S_FW_DEAD, /* stopped, wait on startup or recovery */
PDSC_S_INITING_DRIVER, /* initial startup from probe */
PDSC_S_STOPPING_DRIVER, /* driver remove */
/* leave this as last */
PDSC_S_STATE_SIZE
};
struct pdsc { struct pci_dev *pdev; struct dentry *dentry; struct device *dev; struct pdsc_dev_bar bars[PDS_CORE_BARS_MAX]; struct pds_auxiliary_dev *padev; struct pdsc_vf *vfs; int num_vfs; int vf_id; int hw_index; int uid;
/** enum pds_core_dbell_bits - bitwise composition of dbell values. * * @PDS_CORE_DBELL_QID_MASK: unshifted mask of valid queue id bits. * @PDS_CORE_DBELL_QID_SHIFT: queue id shift amount in dbell value. * @PDS_CORE_DBELL_QID: macro to build QID component of dbell value. * * @PDS_CORE_DBELL_RING_MASK: unshifted mask of valid ring bits. * @PDS_CORE_DBELL_RING_SHIFT: ring shift amount in dbell value. * @PDS_CORE_DBELL_RING: macro to build ring component of dbell value. * * @PDS_CORE_DBELL_RING_0: ring zero dbell component value. * @PDS_CORE_DBELL_RING_1: ring one dbell component value. * @PDS_CORE_DBELL_RING_2: ring two dbell component value. * @PDS_CORE_DBELL_RING_3: ring three dbell component value. * * @PDS_CORE_DBELL_INDEX_MASK: bit mask of valid index bits, no shift needed.
*/ enum pds_core_dbell_bits {
PDS_CORE_DBELL_QID_MASK = 0xffffff,
PDS_CORE_DBELL_QID_SHIFT = 24,
int pdsc_err_to_errno(enum pds_core_status_code code); bool pdsc_is_fw_running(struct pdsc *pdsc); bool pdsc_is_fw_good(struct pdsc *pdsc); int pdsc_devcmd(struct pdsc *pdsc, union pds_core_dev_cmd *cmd, union pds_core_dev_comp *comp, int max_seconds); int pdsc_devcmd_locked(struct pdsc *pdsc, union pds_core_dev_cmd *cmd, union pds_core_dev_comp *comp, int max_seconds); int pdsc_devcmd_init(struct pdsc *pdsc); int pdsc_devcmd_reset(struct pdsc *pdsc); int pdsc_dev_init(struct pdsc *pdsc); void pdsc_dev_uninit(struct pdsc *pdsc);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.