Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/ixl_pf_iov.h
- This file was copied to sys/dev/ixl/ixl_iw.h, sys/dev/ixl/ixl_iw_int.h.
Show All 36 Lines | |||||
#define _IXL_PF_IOV_H_ | #define _IXL_PF_IOV_H_ | ||||
#include "ixl_pf.h" | #include "ixl_pf.h" | ||||
#include <sys/nv.h> | #include <sys/nv.h> | ||||
#include <sys/iov_schema.h> | #include <sys/iov_schema.h> | ||||
#include <dev/pci/pci_iov.h> | #include <dev/pci/pci_iov.h> | ||||
#define IXL_GLOBAL_VF_NUM(hw, vf) \ | |||||
(vf->vf_num + hw->func_caps.vf_base_id) | |||||
/* Public functions */ | /* Public functions */ | ||||
/* | /* | ||||
* These three are DEVMETHODs required for SR-IOV PF support. | * These three are DEVMETHODs required for SR-IOV PF support. | ||||
*/ | */ | ||||
int ixl_iov_init(device_t dev, uint16_t num_vfs, const nvlist_t *params); | int ixl_iov_init(device_t dev, uint16_t num_vfs, const nvlist_t *params); | ||||
void ixl_iov_uninit(device_t dev); | void ixl_iov_uninit(device_t dev); | ||||
int ixl_add_vf(device_t dev, uint16_t vfnum, const nvlist_t *params); | int ixl_add_vf(device_t dev, uint16_t vfnum, const nvlist_t *params); | ||||
Show All 10 Lines |