PCI_IOV_INIT (9)
Leading comments
Copyright (c) 2014 Sandvine Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or othe...
NAME
PCI_IOV_INIT - enable SR-IOV on a PF deviceSYNOPSIS
In sys/bus.h In machine/stdarg.h In sys/nv.h In dev/pci/pci_iov.h Ft int Fn PCI_IOV_INIT device_t dev uint16_t num_vfs const nvlist_t *pf_configDESCRIPTION
The Fn PCI_IOV_INIT method is called by the PCI Single-Root I/O Virtualization (SR-IOV) infrastucture when the user requests that SR-IOV be enabled on a Physical Function (PF). The number of Virtual Functions (VFs) that will be created is passed to this method in the Fa num_vfs argument.If the driver requested device-specific PF configuration parameters via a PF schema in its call to pci_iov_attach9, those parameters will be available in the Fa pf_config argument. All configuration parameters that were either set as required parameters or that had a default value set in the PF schema are guaranteed to be present in Fa pf_config . Configuration parameters that were neither set as required nor were given a default value are optional and may or may not be present in Fa pf_config . Fa pf_config will not contain any configuration parameters that were not specified in the PF schema. All configuration parameters will have the correct type and are in the range of valid values specified in the schema.
If this method returns successfully, then this method will not be called again on the same device until after a call to PCI_IOV_UNINIT.