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_intel_softc |
Macros | |
#define | MAX_APSIZE 0x3f /* 256 MB */ |
Functions | |
__FBSDID ("$FreeBSD$") | |
static const char * | agp_intel_match (device_t dev) |
static int | agp_intel_probe (device_t dev) |
static void | agp_intel_commit_gatt (device_t dev) |
static int | agp_intel_attach (device_t dev) |
static int | agp_intel_detach (device_t dev) |
static int | agp_intel_resume (device_t dev) |
static u_int32_t | agp_intel_get_aperture (device_t dev) |
static int | agp_intel_set_aperture (device_t dev, u_int32_t aperture) |
static int | agp_intel_bind_page (device_t dev, vm_offset_t offset, vm_offset_t physical) |
static int | agp_intel_unbind_page (device_t dev, vm_offset_t offset) |
static void | agp_intel_flush_tlb (device_t dev) |
DRIVER_MODULE (agp_intel, hostb, agp_intel_driver, agp_devclass, 0, 0) | |
MODULE_DEPEND (agp_intel, agp, 1, 1, 1) | |
MODULE_DEPEND (agp_intel, pci, 1, 1, 1) | |
Variables | |
static device_method_t | agp_intel_methods [] |
static driver_t | agp_intel_driver |
static devclass_t | agp_devclass |
#define MAX_APSIZE 0x3f /* 256 MB */ |
Definition at line 51 of file agp_intel.c.
__FBSDID | ( | "$FreeBSD$" | ) |
|
static |
Definition at line 218 of file agp_intel.c.
References agp_alloc_gatt(), agp_generic_attach(), agp_generic_detach(), AGP_INTEL_APSIZE, agp_intel_commit_gatt(), agp_intel_softc::aperture_mask, agp_intel_softc::current_aperture, agp_intel_softc::gatt, agp_intel_softc::initial_aperture, and MAX_APSIZE.
|
static |
Definition at line 368 of file agp_intel.c.
References agp_gatt::ag_entries, agp_gatt::ag_virtual, agp_intel_softc::gatt, offset, and physical.
|
static |
Definition at line 132 of file agp_intel.c.
References agp_gatt::ag_physical, AGP_INTEL_AGPCTRL, AGP_INTEL_ATTBASE, AGP_INTEL_ERRSTS, AGP_INTEL_I820_RDCR, AGP_INTEL_I845_AGPM, AGP_INTEL_I8XX_ERRSTS, AGP_INTEL_MCHCFG, AGP_INTEL_NBXCFG, agp_intel_softc::gatt, and type.
Referenced by agp_intel_attach(), and agp_intel_resume().
|
static |
Definition at line 261 of file agp_intel.c.
References agp_free_cdev(), agp_free_gatt(), agp_free_res(), AGP_INTEL_ATTBASE, AGP_INTEL_I820_RDCR, AGP_INTEL_I845_AGPM, AGP_INTEL_MCHCFG, AGP_INTEL_NBXCFG, agp_intel_softc::gatt, and agp_intel_softc::initial_aperture.
|
static |
Definition at line 396 of file agp_intel.c.
References AGP_INTEL_AGPCTRL.
|
static |
Definition at line 322 of file agp_intel.c.
References AGP_INTEL_APSIZE, and agp_intel_softc::aperture_mask.
|
static |
Definition at line 62 of file agp_intel.c.
References agp_find_caps().
Referenced by agp_intel_probe().
|
static |
Definition at line 116 of file agp_intel.c.
References agp_intel_match().
|
static |
Definition at line 311 of file agp_intel.c.
References agp_intel_commit_gatt(), and agp_intel_softc::current_aperture.
|
static |
Definition at line 342 of file agp_intel.c.
References AGP_INTEL_APSIZE, aperture, agp_intel_softc::aperture_mask, and agp_intel_softc::current_aperture.
|
static |
Definition at line 382 of file agp_intel.c.
References agp_gatt::ag_entries, agp_gatt::ag_virtual, agp_intel_softc::gatt, and offset.
DRIVER_MODULE | ( | agp_intel | , |
hostb | , | ||
agp_intel_driver | , | ||
agp_devclass | , | ||
0 | , | ||
0 | |||
) |
MODULE_DEPEND | ( | agp_intel | , |
agp | , | ||
1 | , | ||
1 | , | ||
1 | |||
) |
MODULE_DEPEND | ( | agp_intel | , |
pci | , | ||
1 | , | ||
1 | , | ||
1 | |||
) |
|
static |
Definition at line 434 of file agp_intel.c.
|
static |
Definition at line 428 of file agp_intel.c.
|
static |
Definition at line 405 of file agp_intel.c.