FreeBSD kernel AGP device code
|
Go to the source code of this file.
Data Structures | |
struct | agp_memory |
struct | agp_softc |
struct | agp_gatt |
Macros | |
#define | AGP_DPF(fmt, ...) do {} while (0) |
Functions | |
TAILQ_HEAD (agp_memory_list, agp_memory) | |
u_int8_t | agp_find_caps (device_t dev) |
struct agp_gatt * | agp_alloc_gatt (device_t dev) |
void | agp_set_aperture_resource (device_t dev, int rid) |
void | agp_free_cdev (device_t dev) |
void | agp_free_gatt (struct agp_gatt *gatt) |
void | agp_free_res (device_t dev) |
int | agp_generic_attach (device_t dev) |
int | agp_generic_detach (device_t dev) |
u_int32_t | agp_generic_get_aperture (device_t dev) |
int | agp_generic_set_aperture (device_t dev, u_int32_t aperture) |
int | agp_generic_enable (device_t dev, u_int32_t mode) |
struct agp_memory * | agp_generic_alloc_memory (device_t dev, int type, vm_size_t size) |
int | agp_generic_free_memory (device_t dev, struct agp_memory *mem) |
int | agp_generic_bind_memory (device_t dev, struct agp_memory *mem, vm_offset_t offset) |
int | agp_generic_unbind_memory (device_t dev, struct agp_memory *mem) |
struct agp_gatt * agp_alloc_gatt | ( | device_t | dev | ) |
Definition at line 135 of file agp.c.
References agp_gatt::ag_entries, agp_gatt::ag_physical, and agp_gatt::ag_virtual.
Referenced by agp_ali_attach(), agp_amd64_attach(), agp_apple_attach(), agp_intel_attach(), agp_nvidia_attach(), agp_sis_attach(), and agp_via_attach().
u_int8_t agp_find_caps | ( | device_t | dev | ) |
Definition at line 92 of file agp.c.
Referenced by agp_ali_match(), agp_amd64_match(), agp_amd_match(), agp_apple_probe(), agp_ati_match(), agp_find_display(), agp_generic_enable(), agp_get_info(), agp_info_user(), agp_intel_match(), agp_sis_match(), agp_v2_enable(), agp_v3_enable(), agp_via_attach(), and agp_via_match().
void agp_free_cdev | ( | device_t | dev | ) |
Definition at line 282 of file agp.c.
References agp_softc::as_devalias, and agp_softc::as_devnode.
Referenced by agp_ali_detach(), agp_amd64_detach(), agp_amd_detach(), agp_apple_detach(), agp_ati_detach(), agp_generic_detach(), agp_i810_detach(), agp_intel_detach(), agp_nvidia_detach(), agp_sis_detach(), and agp_via_detach().
void agp_free_gatt | ( | struct agp_gatt * | gatt | ) |
Definition at line 171 of file agp.c.
References agp_gatt::ag_entries, and agp_gatt::ag_virtual.
Referenced by agp_ali_detach(), agp_amd64_detach(), agp_apple_detach(), agp_intel_detach(), agp_nvidia_detach(), agp_sis_detach(), and agp_via_detach().
void agp_free_res | ( | device_t | dev | ) |
Definition at line 292 of file agp.c.
References agp_softc::as_aperture, agp_softc::as_aperture_rid, and agp_softc::as_lock.
Referenced by agp_ali_detach(), agp_amd64_detach(), agp_amd_detach(), agp_apple_detach(), agp_ati_detach(), agp_generic_attach(), agp_generic_detach(), agp_i810_detach(), agp_intel_detach(), agp_nvidia_detach(), agp_sis_detach(), and agp_via_detach().
struct agp_memory * agp_generic_alloc_memory | ( | device_t | dev, |
int | type, | ||
vm_size_t | size | ||
) |
Definition at line 496 of file agp.c.
References agp_memory::am_id, agp_memory::am_is_bound, agp_memory::am_obj, agp_memory::am_offset, agp_memory::am_physical, agp_memory::am_size, agp_memory::am_type, agp_softc::as_allocated, agp_softc::as_maxmem, agp_softc::as_memory, agp_softc::as_nextid, mem, size, and type.
int agp_generic_attach | ( | device_t | dev | ) |
Definition at line 206 of file agp.c.
References AGP_APBASE, agp_cdevsw, agp_devclass, agp_free_res(), agp_max, AGP_MAX_SIZE, agp_softc::as_aperture, agp_softc::as_aperture_rid, agp_softc::as_devalias, agp_softc::as_devnode, agp_softc::as_lock, agp_softc::as_maxmem, agp_softc::as_memory, and agp_softc::as_nextid.
Referenced by agp_ali_attach(), agp_amd64_attach(), agp_amd_attach(), agp_apple_attach(), agp_ati_attach(), agp_i810_attach(), agp_intel_attach(), agp_nvidia_attach(), agp_sis_attach(), and agp_via_attach().
int agp_generic_bind_memory | ( | device_t | dev, |
struct agp_memory * | mem, | ||
vm_offset_t | offset | ||
) |
Definition at line 543 of file agp.c.
References AGP_DPF, agp_memory::am_is_bound, agp_memory::am_obj, agp_memory::am_offset, agp_memory::am_size, agp_softc::as_lock, mem, and offset.
Referenced by agp_i810_bind_memory().
int agp_generic_detach | ( | device_t | dev | ) |
Definition at line 303 of file agp.c.
References agp_free_cdev(), and agp_free_res().
Referenced by agp_ali_attach(), agp_amd64_attach(), agp_amd_attach(), agp_apple_attach(), agp_ati_attach(), agp_i810_attach(), agp_intel_attach(), agp_nvidia_attach(), agp_sis_attach(), and agp_via_attach().
int agp_generic_enable | ( | device_t | dev, |
u_int32_t | mode | ||
) |
Definition at line 466 of file agp.c.
References AGP_DPF, agp_find_caps(), agp_find_display(), AGP_STATUS, agp_v2_enable(), agp_v3_enable(), and mode.
int agp_generic_free_memory | ( | device_t | dev, |
struct agp_memory * | mem | ||
) |
Definition at line 528 of file agp.c.
References agp_memory::am_is_bound, agp_memory::am_obj, agp_memory::am_size, agp_softc::as_allocated, agp_softc::as_memory, and mem.
u_int32_t agp_generic_get_aperture | ( | device_t | dev | ) |
Default AGP aperture size detection which simply returns the size of the aperture's PCI resource.
Definition at line 316 of file agp.c.
References agp_softc::as_aperture.
int agp_generic_set_aperture | ( | device_t | dev, |
u_int32_t | aperture | ||
) |
Default AGP aperture size setting function, which simply doesn't allow changes to resource size.
Definition at line 328 of file agp.c.
References aperture.
Referenced by agp_i915_set_aperture().
int agp_generic_unbind_memory | ( | device_t | dev, |
struct agp_memory * | mem | ||
) |
Definition at line 649 of file agp.c.
References agp_memory::am_is_bound, agp_memory::am_obj, agp_memory::am_offset, agp_memory::am_size, agp_softc::as_lock, and mem.
Referenced by agp_i810_unbind_memory().
void agp_set_aperture_resource | ( | device_t | dev, |
int | rid | ||
) |
Sets the PCI resource which represents the AGP aperture.
If not called, the default AGP aperture resource of AGP_APBASE will be used. Must be called before agp_generic_attach().
Definition at line 198 of file agp.c.
References agp_softc::as_aperture_rid.
Referenced by agp_apple_attach(), and agp_i810_attach().
TAILQ_HEAD | ( | agp_memory_list | , |
agp_memory | |||
) |