FreeBSD kernel AGP device code
|
#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>
Go to the source code of this file.
Data Structures | |
struct | agp_ali_softc |
Macros | |
#define | M 1024*1024 |
#define | AGP_ALI_TABLE_SIZE nitems(agp_ali_table) |
Functions | |
__FBSDID ("$FreeBSD$") | |
static const char * | agp_ali_match (device_t dev) |
static int | agp_ali_probe (device_t dev) |
static int | agp_ali_attach (device_t dev) |
static int | agp_ali_detach (device_t dev) |
static u_int32_t | agp_ali_get_aperture (device_t dev) |
static int | agp_ali_set_aperture (device_t dev, u_int32_t aperture) |
static int | agp_ali_bind_page (device_t dev, vm_offset_t offset, vm_offset_t physical) |
static int | agp_ali_unbind_page (device_t dev, vm_offset_t offset) |
static void | agp_ali_flush_tlb (device_t dev) |
DRIVER_MODULE (agp_ali, hostb, agp_ali_driver, agp_devclass, 0, 0) | |
MODULE_DEPEND (agp_ali, agp, 1, 1, 1) | |
MODULE_DEPEND (agp_ali, pci, 1, 1, 1) | |
Variables | |
static u_int32_t | agp_ali_table [] |
static device_method_t | agp_ali_methods [] |
static driver_t | agp_ali_driver |
static devclass_t | agp_devclass |
#define AGP_ALI_TABLE_SIZE nitems(agp_ali_table) |
__FBSDID | ( | "$FreeBSD$" | ) |
|
static |
Definition at line 96 of file agp_ali.c.
References agp_gatt::ag_physical, AGP_ALI_ATTBASE, AGP_ALI_TLBCTRL, agp_alloc_gatt(), agp_generic_attach(), agp_generic_detach(), agp_ali_softc::gatt, and agp_ali_softc::initial_aperture.
|
static |
Definition at line 209 of file agp_ali.c.
References agp_gatt::ag_entries, agp_gatt::ag_virtual, agp_ali_softc::gatt, offset, and physical.
|
static |
Definition at line 141 of file agp_ali.c.
References AGP_ALI_ATTBASE, AGP_ALI_TLBCTRL, agp_free_cdev(), agp_free_gatt(), agp_free_res(), agp_ali_softc::gatt, and agp_ali_softc::initial_aperture.
|
static |
Definition at line 233 of file agp_ali.c.
References AGP_ALI_TLBCTRL.
|
static |
Definition at line 179 of file agp_ali.c.
References AGP_ALI_ATTBASE, agp_ali_table, and AGP_ALI_TABLE_SIZE.
|
static |
Definition at line 58 of file agp_ali.c.
References agp_find_caps().
Referenced by agp_ali_probe().
|
static |
Definition at line 80 of file agp_ali.c.
References agp_ali_match().
|
static |
Definition at line 192 of file agp_ali.c.
References AGP_ALI_ATTBASE, agp_ali_table, AGP_ALI_TABLE_SIZE, and aperture.
|
static |
Definition at line 221 of file agp_ali.c.
References agp_gatt::ag_entries, agp_gatt::ag_virtual, agp_ali_softc::gatt, and offset.
DRIVER_MODULE | ( | agp_ali | , |
hostb | , | ||
agp_ali_driver | , | ||
agp_devclass | , | ||
0 | , | ||
0 | |||
) |
MODULE_DEPEND | ( | agp_ali | , |
agp | , | ||
1 | , | ||
1 | , | ||
1 | |||
) |
MODULE_DEPEND | ( | agp_ali | , |
pci | , | ||
1 | , | ||
1 | , | ||
1 | |||
) |
|
static |
|
static |
|
static |
Definition at line 163 of file agp_ali.c.
Referenced by agp_ali_get_aperture(), and agp_ali_set_aperture().