FreeBSD kernel amd64 PCI device code
isa_pci.c File Reference
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/module.h>
#include <sys/bus.h>
#include <isa/isavar.h>
#include <dev/pci/pcivar.h>
#include <dev/pci/pcireg.h>
#include <machine/bus.h>
#include <sys/rman.h>
#include <machine/resource.h>
Include dependency graph for isa_pci.c:

Go to the source code of this file.

Data Structures

struct  isab_pci_resource
 
struct  isab_pci_softc
 

Functions

 __FBSDID ("$FreeBSD$")
 
static int isab_pci_probe (device_t dev)
 
static int isab_pci_attach (device_t dev)
 
static struct resource * isab_pci_alloc_resource (device_t dev, device_t child, int type, int *rid, rman_res_t start, rman_res_t end, rman_res_t count, u_int flags)
 
static int isab_pci_release_resource (device_t dev, device_t child, int type, int rid, struct resource *r)
 
 DRIVER_MODULE (isab, pci, isab_driver, isab_devclass, 0, 0)
 

Variables

static device_method_t isab_methods []
 
static driver_t isab_driver
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ DRIVER_MODULE()

DRIVER_MODULE ( isab  ,
pci  ,
isab_driver  ,
isab_devclass  ,
,
 
)

◆ isab_pci_alloc_resource()

static struct resource * isab_pci_alloc_resource ( device_t  dev,
device_t  child,
int  type,
int *  rid,
rman_res_t  start,
rman_res_t  end,
rman_res_t  count,
u_int  flags 
)
static

◆ isab_pci_attach()

static int isab_pci_attach ( device_t  dev)
static

Definition at line 162 of file isa_pci.c.

References dev.

◆ isab_pci_probe()

static int isab_pci_probe ( device_t  dev)
static

Definition at line 105 of file isa_pci.c.

References dev, PCIC_BRIDGE, and PCIS_BRIDGE_ISA.

◆ isab_pci_release_resource()

static int isab_pci_release_resource ( device_t  dev,
device_t  child,
int  type,
int  rid,
struct resource *  r 
)
static

Variable Documentation

◆ isab_driver

driver_t isab_driver
static
Initial value:
= {
"isab",
sizeof(struct isab_pci_softc),
}
static device_method_t isab_methods[]
Definition: isa_pci.c:62

Definition at line 92 of file isa_pci.c.

◆ isab_methods

device_method_t isab_methods[]
static
Initial value:
= {
DEVMETHOD(device_probe, isab_pci_probe),
DEVMETHOD(device_attach, isab_pci_attach),
DEVMETHOD(device_detach, bus_generic_detach),
DEVMETHOD(device_shutdown, bus_generic_shutdown),
DEVMETHOD(device_suspend, bus_generic_suspend),
DEVMETHOD(device_resume, bus_generic_resume),
DEVMETHOD(bus_add_child, bus_generic_add_child),
DEVMETHOD(bus_alloc_resource, isab_pci_alloc_resource),
DEVMETHOD(bus_release_resource, isab_pci_release_resource),
DEVMETHOD(bus_activate_resource, bus_generic_activate_resource),
DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource),
DEVMETHOD(bus_setup_intr, bus_generic_setup_intr),
DEVMETHOD(bus_teardown_intr, bus_generic_teardown_intr),
DEVMETHOD_END
}
static int isab_pci_probe(device_t dev)
Definition: isa_pci.c:105
static struct resource * isab_pci_alloc_resource(device_t dev, device_t child, int type, int *rid, rman_res_t start, rman_res_t end, rman_res_t count, u_int flags)
Definition: isa_pci.c:170
static int isab_pci_attach(device_t dev)
Definition: isa_pci.c:162
static int isab_pci_release_resource(device_t dev, device_t child, int type, int rid, struct resource *r)
Definition: isa_pci.c:204

Definition at line 62 of file isa_pci.c.