FreeBSD kernel amd64 PCI device code
fixup_pci.c File Reference
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/module.h>
#include <sys/systm.h>
#include <sys/bus.h>
#include <dev/pci/pcivar.h>
#include <dev/pci/pcireg.h>
Include dependency graph for fixup_pci.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
static int fixup_pci_probe (device_t dev)
 
static void fixwsc_natoma (device_t dev)
 
static void fixc1_nforce2 (device_t dev)
 
 DRIVER_MODULE (fixup_pci, pci, fixup_pci_driver, fixup_pci_devclass, 0, 0)
 

Variables

static device_method_t fixup_pci_methods []
 
static driver_t fixup_pci_driver
 
static devclass_t fixup_pci_devclass
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ DRIVER_MODULE()

DRIVER_MODULE ( fixup_pci  ,
pci  ,
fixup_pci_driver  ,
fixup_pci_devclass  ,
,
 
)

◆ fixc1_nforce2()

static void fixc1_nforce2 ( device_t  dev)
static

Definition at line 129 of file fixup_pci.c.

References dev, and val.

Referenced by fixup_pci_probe().

Here is the caller graph for this function:

◆ fixup_pci_probe()

static int fixup_pci_probe ( device_t  dev)
static

Definition at line 76 of file fixup_pci.c.

References dev, fixc1_nforce2(), and fixwsc_natoma().

Here is the call graph for this function:

◆ fixwsc_natoma()

static void fixwsc_natoma ( device_t  dev)
static

Definition at line 90 of file fixup_pci.c.

References dev.

Referenced by fixup_pci_probe().

Here is the caller graph for this function:

Variable Documentation

◆ fixup_pci_devclass

devclass_t fixup_pci_devclass
static

Definition at line 71 of file fixup_pci.c.

◆ fixup_pci_driver

driver_t fixup_pci_driver
static
Initial value:
= {
"fixup_pci",
0,
}
static device_method_t fixup_pci_methods[]
Definition: fixup_pci.c:58

Definition at line 65 of file fixup_pci.c.

◆ fixup_pci_methods

device_method_t fixup_pci_methods[]
static
Initial value:
= {
DEVMETHOD(device_probe, fixup_pci_probe),
DEVMETHOD(device_attach, bus_generic_attach),
{ 0, 0 }
}
static int fixup_pci_probe(device_t dev)
Definition: fixup_pci.c:76

Definition at line 58 of file fixup_pci.c.