FreeBSD kernel AGP device code
agp_sis.c File Reference
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/kernel.h>
#include <sys/module.h>
#include <sys/bus.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/proc.h>
#include <dev/agp/agppriv.h>
#include <dev/agp/agpreg.h>
#include <dev/pci/pcivar.h>
#include <dev/pci/pcireg.h>
#include <vm/vm.h>
#include <vm/vm_object.h>
#include <vm/pmap.h>
Include dependency graph for agp_sis.c:

Go to the source code of this file.

Data Structures

struct  agp_sis_softc
 

Functions

 __FBSDID ("$FreeBSD$")
 
static const char * agp_sis_match (device_t dev)
 
static int agp_sis_probe (device_t dev)
 
static int agp_sis_attach (device_t dev)
 
static int agp_sis_detach (device_t dev)
 
static u_int32_t agp_sis_get_aperture (device_t dev)
 
static int agp_sis_set_aperture (device_t dev, u_int32_t aperture)
 
static int agp_sis_bind_page (device_t dev, vm_offset_t offset, vm_offset_t physical)
 
static int agp_sis_unbind_page (device_t dev, vm_offset_t offset)
 
static void agp_sis_flush_tlb (device_t dev)
 
 DRIVER_MODULE (agp_sis, hostb, agp_sis_driver, agp_devclass, 0, 0)
 
 MODULE_DEPEND (agp_sis, agp, 1, 1, 1)
 
 MODULE_DEPEND (agp_sis, pci, 1, 1, 1)
 

Variables

static device_method_t agp_sis_methods []
 
static driver_t agp_sis_driver
 
static devclass_t agp_devclass
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ agp_sis_attach()

static int agp_sis_attach ( device_t  dev)
static

◆ agp_sis_bind_page()

static int agp_sis_bind_page ( device_t  dev,
vm_offset_t  offset,
vm_offset_t  physical 
)
static

◆ agp_sis_detach()

static int agp_sis_detach ( device_t  dev)
static

Definition at line 173 of file agp_sis.c.

References agp_free_cdev(), agp_free_gatt(), agp_free_res(), AGP_SIS_TLBCTRL, AGP_SIS_WINCTRL, agp_sis_softc::gatt, and agp_sis_softc::initial_aperture.

Here is the call graph for this function:

◆ agp_sis_flush_tlb()

static void agp_sis_flush_tlb ( device_t  dev)
static

Definition at line 254 of file agp_sis.c.

References AGP_SIS_TLBFLUSH.

◆ agp_sis_get_aperture()

static u_int32_t agp_sis_get_aperture ( device_t  dev)
static

Definition at line 195 of file agp_sis.c.

References AGP_SIS_WINCTRL.

◆ agp_sis_match()

static const char * agp_sis_match ( device_t  dev)
static

Definition at line 58 of file agp_sis.c.

References agp_find_caps().

Referenced by agp_sis_probe().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ agp_sis_probe()

static int agp_sis_probe ( device_t  dev)
static

Definition at line 112 of file agp_sis.c.

References agp_sis_match().

Here is the call graph for this function:

◆ agp_sis_set_aperture()

static int agp_sis_set_aperture ( device_t  dev,
u_int32_t  aperture 
)
static

Definition at line 207 of file agp_sis.c.

References AGP_SIS_WINCTRL, and aperture.

◆ agp_sis_unbind_page()

static int agp_sis_unbind_page ( device_t  dev,
vm_offset_t  offset 
)
static

Definition at line 242 of file agp_sis.c.

References agp_gatt::ag_entries, agp_gatt::ag_virtual, agp_sis_softc::gatt, and offset.

◆ DRIVER_MODULE()

DRIVER_MODULE ( agp_sis  ,
hostb  ,
agp_sis_driver  ,
agp_devclass  ,
,
 
)

◆ MODULE_DEPEND() [1/2]

MODULE_DEPEND ( agp_sis  ,
agp  ,
,
,
 
)

◆ MODULE_DEPEND() [2/2]

MODULE_DEPEND ( agp_sis  ,
pci  ,
,
,
 
)

Variable Documentation

◆ agp_devclass

devclass_t agp_devclass
static

Definition at line 288 of file agp_sis.c.

◆ agp_sis_driver

driver_t agp_sis_driver
static
Initial value:
= {
"agp",
sizeof(struct agp_sis_softc),
}
static device_method_t agp_sis_methods[]
Definition: agp_sis.c:259

Definition at line 282 of file agp_sis.c.

◆ agp_sis_methods

device_method_t agp_sis_methods[]
static
Initial value:
= {
DEVMETHOD(device_probe, agp_sis_probe),
DEVMETHOD(device_attach, agp_sis_attach),
DEVMETHOD(device_detach, agp_sis_detach),
DEVMETHOD(device_shutdown, bus_generic_shutdown),
DEVMETHOD(device_suspend, bus_generic_suspend),
DEVMETHOD(device_resume, bus_generic_resume),
DEVMETHOD(agp_get_aperture, agp_sis_get_aperture),
DEVMETHOD(agp_set_aperture, agp_sis_set_aperture),
DEVMETHOD(agp_bind_page, agp_sis_bind_page),
DEVMETHOD(agp_unbind_page, agp_sis_unbind_page),
DEVMETHOD(agp_flush_tlb, agp_sis_flush_tlb),
{ 0, 0 }
}
struct agp_memory * agp_generic_alloc_memory(device_t dev, int type, vm_size_t size)
Definition: agp.c:496
int agp_bind_memory(device_t dev, void *handle, vm_offset_t offset)
Definition: agp.c:982
void agp_free_memory(device_t dev, void *handle)
Definition: agp.c:976
int agp_generic_bind_memory(device_t dev, struct agp_memory *mem, vm_offset_t offset)
Definition: agp.c:543
int agp_generic_unbind_memory(device_t dev, struct agp_memory *mem)
Definition: agp.c:649
int agp_unbind_memory(device_t dev, void *handle)
Definition: agp.c:988
int agp_generic_free_memory(device_t dev, struct agp_memory *mem)
Definition: agp.c:528
void * agp_alloc_memory(device_t dev, int type, vm_size_t bytes)
Definition: agp.c:971
int agp_generic_enable(device_t dev, u_int32_t mode)
Definition: agp.c:466
int agp_enable(device_t dev, u_int32_t mode)
Definition: agp.c:966
static int agp_sis_attach(device_t dev)
Definition: agp_sis.c:128
static int agp_sis_set_aperture(device_t dev, u_int32_t aperture)
Definition: agp_sis.c:207
static int agp_sis_detach(device_t dev)
Definition: agp_sis.c:173
static int agp_sis_unbind_page(device_t dev, vm_offset_t offset)
Definition: agp_sis.c:242
static int agp_sis_bind_page(device_t dev, vm_offset_t offset, vm_offset_t physical)
Definition: agp_sis.c:230
static int agp_sis_probe(device_t dev)
Definition: agp_sis.c:112
static u_int32_t agp_sis_get_aperture(device_t dev)
Definition: agp_sis.c:195
static void agp_sis_flush_tlb(device_t dev)
Definition: agp_sis.c:254

Definition at line 259 of file agp_sis.c.