Public Member Functions | Protected Member Functions | Protected Attributes

PCIBus Class Reference

#include <nubus.h>

Inheritance diagram for PCIBus:
ListEntry< PCIBus >

List of all members.

Public Member Functions

uint8 no () const
NubusManagermanager () const
PCIBusadd_bus (PCIBus *bus)
PCIDeviceadd_device (PCIDevice *device)
void add_used_region (uint64 base, uint64 size)
uint64 alloc_mmio_window (uint64 size)
uint32 conf_read (uint8 df, uint16 reg)
bool conf_write (uint8 df, uint16 reg, uint32 val)
bool ari_enable ()
bool ari_enabled ()
bool ari_capable ()
 PCIBus (PCIDevice &bridge)
 PCIBus (NubusManager &manager)
 PCI bus handling.

Protected Member Functions

bool device_exists (unsigned df)
void discover_devices ()

Protected Attributes

NubusManager_manager
uint8 _no
PCIDevice_bridge
PCIDevice_devices
PCIBus_buses
RegionList< 32 > _memregion

Constructor & Destructor Documentation

PCIBus::PCIBus ( PCIDevice bridge  ) 
PCIBus::PCIBus ( NubusManager manager  )  [explicit]

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.


Member Function Documentation

PCIBus * PCIBus::add_bus ( PCIBus bus  ) 
PCIDevice * PCIBus::add_device ( PCIDevice device  ) 
void PCIBus::add_used_region ( uint64  base,
uint64  size 
) [inline]
uint64 PCIBus::alloc_mmio_window ( uint64  size  )  [inline]
bool PCIBus::ari_capable (  ) 
bool PCIBus::ari_enable (  ) 
bool PCIBus::ari_enabled (  ) 
uint32 PCIBus::conf_read ( uint8  df,
uint16  reg 
)
bool PCIBus::conf_write ( uint8  df,
uint16  reg,
uint32  val 
)
bool PCIBus::device_exists ( unsigned  df  )  [inline, protected]
void PCIBus::discover_devices (  )  [protected]
NubusManager& PCIBus::manager (  )  const [inline]
uint8 PCIBus::no (  )  const [inline]

Member Data Documentation

PCIDevice* PCIBus::_bridge [protected]
PCIBus* PCIBus::_buses [protected]
RegionList<32> PCIBus::_memregion [protected]
uint8 PCIBus::_no [protected]

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