Public Member Functions | Protected Attributes

PCIDevice Class Reference

#include <nubus.h>

Inheritance diagram for PCIDevice:
ListEntry< PCIDevice >

List of all members.

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)
 PCI bus handling.
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)

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  ) 

PCI bus handling.

Copyright (C) 2010, Julian Stecklina <jsteckli@os.inf.tu-dresden.de> 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.

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]
uint8 PCIDevice::_df [protected]
PCIDevice* PCIDevice::_pf [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines