dxd - dynax driver framework 3.0.1d223
cross platform open source driver development framework
Loading...
Searching...
No Matches
dxd::pci Class Reference

PCI device. More...

#include <dxd_pci.h>

Inheritance diagram for dxd::pci:
Collaboration diagram for dxd::pci:

Classes

class  dbg
struct  resources
 the PCI windows this device was assigned, mapped for the driver's life: each one its virtual and physical address, its length and its mask More...
class  scatter_gather

Public Member Functions

 operator const ::HANDLE () const
 operator::DMA_ADAPTER * () const
 pci (::WDFDEVICE_INIT *wdf_device_init, const::GUID &guid)
 WDK: PCI device constructor.
template<typename type_t>
os_result query (const ::UNICODE_STRING &key, type_t &value)
template<typename key_t, typename type_t>
os_result query (key_t *key, type_t &value)
os_result remove ()
os_result set (const ::UNICODE_STRING &key, const ::GUID &value)
os_result set (const ::UNICODE_STRING &key, const ::UNICODE_STRING &value, unsigned long type=REG_SZ)
os_result set (const ::UNICODE_STRING &key, const char *value)
os_result set (const ::UNICODE_STRING &key, const wchar_t *value)
os_result set (const ::UNICODE_STRING &key, unsigned int value)
template<typename key_t, typename type_t>
os_result set (key_t *key, const type_t &value)
template<typename type_t>
unsigned long type ()
 ~pci ()

Public Attributes

os_result status {not_initialized}

Protected Member Functions

virtual bool irq (int, int64_t)
 WDK: high priority interrupt request indication.
virtual os_result irq_disable ()
virtual os_result irq_enable ()
virtual os_result isr (int)
 WDK: lowered priority interrupt service handler.

Protected Attributes

struct dxd::pci::resources hw

Detailed Description

PCI device.

Constructor & Destructor Documentation

◆ pci()

dxd::pci::pci ( ::WDFDEVICE_INIT * wdf_device_init,
const::GUID & guid )
inline

WDK: PCI device constructor.

Configures the Interrupt object,

attaches the PCI device context structure to the IRQ object to be created,

Todo
find cross-platform way of selecting DMA configuration: 32/64 bit physical buffers
Here is the caller graph for this function:

◆ ~pci()

dxd::pci::~pci ( )
inline

Member Function Documentation

◆ irq()

virtual bool dxd::pci::irq ( int ,
int64_t  )
inlineprotectedvirtual

WDK: high priority interrupt request indication.

◆ irq_disable()

virtual os_result dxd::pci::irq_disable ( )
inlineprotectedvirtual

◆ irq_enable()

virtual os_result dxd::pci::irq_enable ( )
inlineprotectedvirtual

◆ isr()

virtual os_result dxd::pci::isr ( int )
inlineprotectedvirtual

WDK: lowered priority interrupt service handler.

◆ operator const ::HANDLE()

dxd::wdm::registry::operator const ::HANDLE ( ) const
inlineinherited
Here is the caller graph for this function:

◆ operator::DMA_ADAPTER *()

dxd::pci::operator::DMA_ADAPTER * ( ) const
inline

◆ query() [1/2]

template<typename type_t>
os_result dxd::wdm::registry::query ( const ::UNICODE_STRING & key,
type_t & value )
inlineinherited

◆ query() [2/2]

template<typename key_t, typename type_t>
os_result dxd::wdm::registry::query ( key_t * key,
type_t & value )
inlineinherited
Here is the call graph for this function:
Here is the caller graph for this function:

◆ remove()

os_result dxd::wdm::registry::remove ( )
inlineinherited

◆ set() [1/6]

os_result dxd::wdm::registry::set ( const ::UNICODE_STRING & key,
const ::GUID & value )
inlineinherited
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set() [2/6]

os_result dxd::wdm::registry::set ( const ::UNICODE_STRING & key,
const ::UNICODE_STRING & value,
unsigned long type = REG_SZ )
inlineinherited
Here is the call graph for this function:

◆ set() [3/6]

os_result dxd::wdm::registry::set ( const ::UNICODE_STRING & key,
const char * value )
inlineinherited
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set() [4/6]

os_result dxd::wdm::registry::set ( const ::UNICODE_STRING & key,
const wchar_t * value )
inlineinherited
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set() [5/6]

os_result dxd::wdm::registry::set ( const ::UNICODE_STRING & key,
unsigned int value )
inlineinherited
Here is the caller graph for this function:

◆ set() [6/6]

template<typename key_t, typename type_t>
os_result dxd::wdm::registry::set ( key_t * key,
const type_t & value )
inlineinherited
Here is the call graph for this function:
Here is the caller graph for this function:

◆ type()

template<typename type_t>
unsigned long dxd::wdm::registry::type ( )
inherited
Here is the caller graph for this function:

Member Data Documentation

◆ hw

struct dxd::pci::resources dxd::pci::hw
protected

◆ status

os_result dxd::wdm::registry::status {not_initialized}
inherited

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

(c) copyright 2009 dynamic acoustics e.U. generated on

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.