PCI helper functions for virtual functions. More...
#include <hostvf.h>
Public Types | |
| enum | { SRIOV_VF_BAR0 = 9, EXTCAP_ARI = 0x000EU, EXTCAP_SRIOV = 0x0010U } |
Public Member Functions | |
| unsigned long long | vf_bar_base_size (unsigned bdf, unsigned vf_no, unsigned no, unsigned long long &size, bool *is64bit=0) |
| Return the base and size of a VF BAR (inside a SR-IOV capability). | |
| unsigned | vf_bdf (unsigned parent_bdf, unsigned vf_no) |
| Compute BDF of a particular VF. | |
| unsigned | vf_device_id (unsigned parent_bdf) |
| HostVfPci (DBus< MessagePciConfig > &bus_pcicfg, DBus< MessageHostOp > &bus_hostop) | |
PCI helper functions for virtual functions.
Copyright (C) 2009-2010, Julian Stecklina <jsteckli@os.inf.tu-dresden.de> Copyright (C) 2010, Bernhard Kauer <bk@vmmon.org> Economic rights: Technische Universitaet Dresden (Germany)
This file is part of Vancouver.
Vancouver is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
Vancouver is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 2 for more details. A helper for PCI config space access for virtual functions.
| HostVfPci::HostVfPci | ( | DBus< MessagePciConfig > & | bus_pcicfg, | |
| DBus< MessageHostOp > & | bus_hostop | |||
| ) | [inline] |
| unsigned long long HostVfPci::vf_bar_base_size | ( | unsigned | bdf, | |
| unsigned | vf_no, | |||
| unsigned | no, | |||
| unsigned long long & | size, | |||
| bool * | is64bit = 0 | |||
| ) | [inline] |
Return the base and size of a VF BAR (inside a SR-IOV capability).
| unsigned HostVfPci::vf_bdf | ( | unsigned | parent_bdf, | |
| unsigned | vf_no | |||
| ) | [inline] |
Compute BDF of a particular VF.
| unsigned HostVfPci::vf_device_id | ( | unsigned | parent_bdf | ) | [inline] |
1.7.1