NOVA User-Level Environment  Version testbox/changed-memory-timing-317-g320d8b5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PCIDevice Class Reference

#include <nubus.h>

Inheritance diagram for PCIDevice:
ListEntry< PCIDevice >

Public Member Functions

PCIBusbus () const
uint32 vendor () const
uint16 dclass () const
bool multifunction () const
bool is_vf () const
PCIDevicepf () const
uint16 bdf () const
uint32 conf_read (uint16 reg)
bool conf_write (uint16 reg, uint32 val)
uint8 find_cap (uint8 id)
uint16 find_extcap (uint16 id)
bool ari_capable ()
uint8 ari_next_function ()
uint16 sriov_total_vfs ()
uint16 sriov_device_id ()
bool sriov_enable (uint16 vfs_to_enable)
 PCIDevice (PCIBus &bus, uint8 df, PCIDevice *pf=NULL)
- Public Member Functions inherited from ListEntry< PCIDevice >
PCIDeviceprev () const
PCIDevicenext () const
PCIDevicefirst ()
PCIDevicelast ()
void append (PCIDevice *i)
 ListEntry ()

Protected Attributes

PCIBus_bus
uint8 _df
uint32 _vendor
uint16 _dclass
uint8 _header_type
PCIDevice_pf

Constructor & Destructor Documentation

PCIDevice::PCIDevice ( PCIBus bus,
uint8  df,
PCIDevice pf = NULL 
)

Member Function Documentation

bool PCIDevice::ari_capable ( )
uint8 PCIDevice::ari_next_function ( )
inline
uint16 PCIDevice::bdf ( ) const
inline
PCIBus& PCIDevice::bus ( ) const
inline
uint32 PCIDevice::conf_read ( uint16  reg)
bool PCIDevice::conf_write ( uint16  reg,
uint32  val 
)
uint16 PCIDevice::dclass ( ) const
inline
uint8 PCIDevice::find_cap ( uint8  id)
uint16 PCIDevice::find_extcap ( uint16  id)
bool PCIDevice::is_vf ( ) const
inline
bool PCIDevice::multifunction ( ) const
inline
PCIDevice* PCIDevice::pf ( ) const
inline
uint16 PCIDevice::sriov_device_id ( )
inline
bool PCIDevice::sriov_enable ( uint16  vfs_to_enable)
uint16 PCIDevice::sriov_total_vfs ( )
inline
uint32 PCIDevice::vendor ( ) const
inline

Member Data Documentation

PCIBus& PCIDevice::_bus
protected
uint16 PCIDevice::_dclass
protected
uint8 PCIDevice::_df
protected
uint8 PCIDevice::_header_type
protected
PCIDevice* PCIDevice::_pf
protected
uint32 PCIDevice::_vendor
protected

The documentation for this class was generated from the following files: