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 <machine/resource.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_apple_softc |
Macros | |
#define | UNIN_AGP_GART_BASE 0x8c |
#define | UNIN_AGP_BASE_ADDR 0x90 |
#define | UNIN_AGP_GART_CONTROL 0x94 |
#define | UNIN_AGP_GART_INVAL 0x00000001 |
#define | UNIN_AGP_GART_ENABLE 0x00000100 |
#define | UNIN_AGP_GART_2XRESET 0x00010000 |
#define | UNIN_AGP_U3_GART_PERFRD 0x00080000 |
Functions | |
__FBSDID ("$FreeBSD$") | |
static int | agp_apple_probe (device_t dev) |
static int | agp_apple_attach (device_t dev) |
static int | agp_apple_detach (device_t dev) |
static uint32_t | agp_apple_get_aperture (device_t dev) |
static int | agp_apple_set_aperture (device_t dev, uint32_t aperture) |
static int | agp_apple_bind_page (device_t dev, vm_offset_t offset, vm_offset_t physical) |
static int | agp_apple_unbind_page (device_t dev, vm_offset_t offset) |
static void | agp_apple_flush_tlb (device_t dev) |
DRIVER_MODULE (agp_apple, hostb, agp_apple_driver, agp_devclass, 0, 0) | |
MODULE_DEPEND (agp_apple, agp, 1, 1, 1) | |
MODULE_DEPEND (agp_apple, pci, 1, 1, 1) | |
Variables | |
static device_method_t | agp_apple_methods [] |
static driver_t | agp_apple_driver |
static devclass_t | agp_devclass |
#define UNIN_AGP_BASE_ADDR 0x90 |
Definition at line 54 of file agp_apple.c.
#define UNIN_AGP_GART_2XRESET 0x00010000 |
Definition at line 59 of file agp_apple.c.
#define UNIN_AGP_GART_BASE 0x8c |
Definition at line 53 of file agp_apple.c.
#define UNIN_AGP_GART_CONTROL 0x94 |
Definition at line 55 of file agp_apple.c.
#define UNIN_AGP_GART_ENABLE 0x00000100 |
Definition at line 58 of file agp_apple.c.
#define UNIN_AGP_GART_INVAL 0x00000001 |
Definition at line 57 of file agp_apple.c.
#define UNIN_AGP_U3_GART_PERFRD 0x00080000 |
Definition at line 60 of file agp_apple.c.
__FBSDID | ( | "$FreeBSD$" | ) |
|
static |
Definition at line 113 of file agp_apple.c.
References agp_alloc_gatt(), agp_generic_attach(), agp_generic_detach(), agp_set_aperture_resource(), agp_apple_softc::aperture, agp_apple_softc::gatt, agp_apple_softc::needs_2x_reset, agp_apple_softc::u3, and UNIN_AGP_BASE_ADDR.
|
static |
Definition at line 221 of file agp_apple.c.
References agp_gatt::ag_entries, agp_gatt::ag_virtual, agp_apple_softc::gatt, offset, and physical.
|
static |
Definition at line 166 of file agp_apple.c.
References agp_free_cdev(), agp_free_gatt(), agp_free_res(), agp_apple_softc::gatt, agp_apple_softc::needs_2x_reset, UNIN_AGP_GART_2XRESET, UNIN_AGP_GART_CONTROL, and UNIN_AGP_GART_INVAL.
|
static |
Definition at line 245 of file agp_apple.c.
References agp_apple_softc::needs_2x_reset, agp_apple_softc::u3, UNIN_AGP_GART_2XRESET, UNIN_AGP_GART_CONTROL, UNIN_AGP_GART_ENABLE, UNIN_AGP_GART_INVAL, and UNIN_AGP_U3_GART_PERFRD.
|
static |
Definition at line 190 of file agp_apple.c.
References agp_apple_softc::aperture.
|
static |
Definition at line 71 of file agp_apple.c.
References agp_find_caps().
|
static |
Definition at line 198 of file agp_apple.c.
References agp_gatt::ag_physical, aperture, agp_apple_softc::gatt, agp_apple_softc::u3, and UNIN_AGP_GART_BASE.
|
static |
Definition at line 233 of file agp_apple.c.
References agp_gatt::ag_entries, agp_gatt::ag_virtual, agp_apple_softc::gatt, and offset.
DRIVER_MODULE | ( | agp_apple | , |
hostb | , | ||
agp_apple_driver | , | ||
agp_devclass | , | ||
0 | , | ||
0 | |||
) |
MODULE_DEPEND | ( | agp_apple | , |
agp | , | ||
1 | , | ||
1 | , | ||
1 | |||
) |
MODULE_DEPEND | ( | agp_apple | , |
pci | , | ||
1 | , | ||
1 | , | ||
1 | |||
) |
|
static |
Definition at line 287 of file agp_apple.c.
|
static |
Definition at line 264 of file agp_apple.c.
|
static |
Definition at line 293 of file agp_apple.c.