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_via_softc |
Macros | |
#define | REG_GARTCTRL 0 |
#define | REG_APSIZE 1 |
#define | REG_ATTBASE 2 |
Functions | |
__FBSDID ("$FreeBSD$") | |
static const char * | agp_via_match (device_t dev) |
static int | agp_via_probe (device_t dev) |
static int | agp_via_attach (device_t dev) |
static int | agp_via_detach (device_t dev) |
static u_int32_t | agp_via_get_aperture (device_t dev) |
static int | agp_via_set_aperture (device_t dev, u_int32_t aperture) |
static int | agp_via_bind_page (device_t dev, vm_offset_t offset, vm_offset_t physical) |
static int | agp_via_unbind_page (device_t dev, vm_offset_t offset) |
static void | agp_via_flush_tlb (device_t dev) |
DRIVER_MODULE (agp_via, hostb, agp_via_driver, agp_devclass, 0, 0) | |
MODULE_DEPEND (agp_via, agp, 1, 1, 1) | |
MODULE_DEPEND (agp_via, pci, 1, 1, 1) | |
Variables | |
static int | via_v2_regs [] |
static int | via_v3_regs [] |
static device_method_t | agp_via_methods [] |
static driver_t | agp_via_driver |
static devclass_t | agp_devclass |
__FBSDID | ( | "$FreeBSD$" | ) |
|
static |
Definition at line 162 of file agp_via.c.
References agp_gatt::ag_physical, agp_alloc_gatt(), AGP_CAPID, agp_find_caps(), agp_generic_attach(), agp_generic_detach(), AGP_VIA_AGPSEL, agp_via_softc::gatt, agp_via_softc::initial_aperture, REG_ATTBASE, REG_GARTCTRL, agp_via_softc::regs, via_v2_regs, and via_v3_regs.
|
static |
Definition at line 353 of file agp_via.c.
References agp_gatt::ag_entries, agp_gatt::ag_virtual, agp_via_softc::gatt, offset, and physical.
|
static |
Definition at line 226 of file agp_via.c.
References agp_free_cdev(), agp_free_gatt(), agp_free_res(), agp_via_softc::gatt, agp_via_softc::initial_aperture, REG_ATTBASE, REG_GARTCTRL, and agp_via_softc::regs.
|
static |
Definition at line 377 of file agp_via.c.
References REG_GARTCTRL, agp_via_softc::regs, and via_v2_regs.
|
static |
Definition at line 242 of file agp_via.c.
References REG_APSIZE, agp_via_softc::regs, and via_v2_regs.
|
static |
Definition at line 68 of file agp_via.c.
References agp_find_caps().
Referenced by agp_via_probe().
|
static |
Definition at line 146 of file agp_via.c.
References agp_via_match().
|
static |
Definition at line 290 of file agp_via.c.
References aperture, REG_APSIZE, agp_via_softc::regs, and via_v2_regs.
|
static |
Definition at line 365 of file agp_via.c.
References agp_gatt::ag_entries, agp_gatt::ag_virtual, agp_via_softc::gatt, and offset.
DRIVER_MODULE | ( | agp_via | , |
hostb | , | ||
agp_via_driver | , | ||
agp_devclass | , | ||
0 | , | ||
0 | |||
) |
MODULE_DEPEND | ( | agp_via | , |
agp | , | ||
1 | , | ||
1 | , | ||
1 | |||
) |
MODULE_DEPEND | ( | agp_via | , |
pci | , | ||
1 | , | ||
1 | , | ||
1 | |||
) |
|
static |
|
static |
|
static |
Definition at line 62 of file agp_via.c.
Referenced by agp_via_attach(), agp_via_flush_tlb(), agp_via_get_aperture(), and agp_via_set_aperture().
|
static |