xref: /freebsd/share/man/man9/PCI_IOV_UNINIT.9 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
1f3bb9251SJohn Baldwin.\"
2f3bb9251SJohn Baldwin.\" Copyright (c) 2014 Sandvine Inc.
3f3bb9251SJohn Baldwin.\" All rights reserved.
4f3bb9251SJohn Baldwin.\"
5f3bb9251SJohn Baldwin.\" Redistribution and use in source and binary forms, with or without
6f3bb9251SJohn Baldwin.\" modification, are permitted provided that the following conditions
7f3bb9251SJohn Baldwin.\" are met:
8f3bb9251SJohn Baldwin.\" 1. Redistributions of source code must retain the above copyright
9f3bb9251SJohn Baldwin.\"    notice, this list of conditions and the following disclaimer.
10f3bb9251SJohn Baldwin.\" 2. Redistributions in binary form must reproduce the above copyright
11f3bb9251SJohn Baldwin.\"    notice, this list of conditions and the following disclaimer in the
12f3bb9251SJohn Baldwin.\"    documentation and/or other materials provided with the distribution.
13f3bb9251SJohn Baldwin.\"
14f3bb9251SJohn Baldwin.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15f3bb9251SJohn Baldwin.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16f3bb9251SJohn Baldwin.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17f3bb9251SJohn Baldwin.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18f3bb9251SJohn Baldwin.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19f3bb9251SJohn Baldwin.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20f3bb9251SJohn Baldwin.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21f3bb9251SJohn Baldwin.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22f3bb9251SJohn Baldwin.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23f3bb9251SJohn Baldwin.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24f3bb9251SJohn Baldwin.\" SUCH DAMAGE.
25f3bb9251SJohn Baldwin.\"
26f3bb9251SJohn Baldwin.Dd May 28, 2015
27f3bb9251SJohn Baldwin.Dt PCI_IOV_UNINIT 9
28f3bb9251SJohn Baldwin.Os
29f3bb9251SJohn Baldwin.Sh NAME
30f3bb9251SJohn Baldwin.Nm PCI_IOV_UNINIT
31f3bb9251SJohn Baldwin.Nd disable SR-IOV on a PF device
32f3bb9251SJohn Baldwin.Sh SYNOPSIS
33f3bb9251SJohn Baldwin.In sys/bus.h
34f3bb9251SJohn Baldwin.In dev/pci/pci_iov.h
35f3bb9251SJohn Baldwin.Ft void
36f3bb9251SJohn Baldwin.Fn PCI_IOV_UNINIT "device_t dev"
37f3bb9251SJohn Baldwin.Sh DESCRIPTION
38f3bb9251SJohn BaldwinThe
39f3bb9251SJohn Baldwin.Fn PCI_IOV_UNINIT
40f3bb9251SJohn Baldwinmethod is called by the PCI Single-Root I/O Virtualization (SR-IOV)
41f3bb9251SJohn Baldwininfrastructure when the user requests that SR-IOV be disabled on a Physical
42f3bb9251SJohn BaldwinFunction (PF).
43f3bb9251SJohn BaldwinWhen this method is called, the PF driver must release any SR-IOV-related
44f3bb9251SJohn Baldwinresources that it has allocated and disable any device-specific SR-IOV
45f3bb9251SJohn Baldwinconfiguration in the device.
46f3bb9251SJohn Baldwin.Pp
47f3bb9251SJohn BaldwinThis method will only be called following a successful call to
48*2958b3a4SEnji Cooper.Xr PCI_IOV_INIT 9 .
49f3bb9251SJohn BaldwinIt is not guaranteed that
50*2958b3a4SEnji Cooper.Xr PCI_IOV_ADD_VF 9
51f3bb9251SJohn Baldwinwill have been called for any Virtual Function (VF) after the call to
52*2958b3a4SEnji Cooper.Xr PCI_IOV_INIT 9
53f3bb9251SJohn Baldwinand before the call to
54f3bb9251SJohn Baldwin.Nm .
55f3bb9251SJohn Baldwin.Sh SEE ALSO
56f3bb9251SJohn Baldwin.Xr pci 9 ,
57f3bb9251SJohn Baldwin.Xr PCI_IOV_ADD_VF 9 ,
58f3bb9251SJohn Baldwin.Xr PCI_IOV_INIT 9
59f3bb9251SJohn Baldwin.Sh AUTHORS
60f3bb9251SJohn BaldwinThis manual page was written by
61f3bb9251SJohn Baldwin.An Ryan Stone Aq Mt rstone@FreeBSD.org .
62