FreeBSD kernel amd64 PCI device code
pci_dw_if.m File Reference
#include <machine/bus.h>
Include dependency graph for pci_dw_if.m:

Go to the source code of this file.

Variables

INTERFACE pci_dw
 
METHOD uint32_t dbi_read
 
u_int reg
 
int width
 
METHOD void dbi_write
 
uint32_t value
 
METHOD int set_link
 
bool start
 
METHOD int get_link
 
bool * status
 

Variable Documentation

◆ dbi_read

METHOD uint32_t dbi_read
Initial value:
{
device_t dev
device_t dev
Definition: pcib_if.m:109

Read from dbi space. The reg argument is a byte offset into dbi space. The width argument (which should be 1, 2 or 4) specifies how many bytes to read from that offset.

Definition at line 40 of file pci_dw_if.m.

◆ dbi_write

METHOD void dbi_write
Initial value:
{
device_t dev

Write to dbi space. The reg argument is a byte offset into dbi space. The width argument (which should be 1, 2 or 4) specifies how many bytes to write to that offset.

Definition at line 52 of file pci_dw_if.m.

◆ get_link

METHOD int get_link
Initial value:
{
device_t dev

Query link status (up/down)

Definition at line 70 of file pci_dw_if.m.

◆ pci_dw

INTERFACE pci_dw

Definition at line 31 of file pci_dw_if.m.

◆ reg

◆ set_link

METHOD int set_link
Initial value:
{
device_t dev

Start or stop link

Definition at line 62 of file pci_dw_if.m.

◆ start

◆ status

◆ value

uint32_t value

◆ width