FreeBSD kernel AGP device code
agppriv.h File Reference
#include <sys/agpio.h>
#include <dev/agp/agpvar.h>
#include "agp_if.h"
Include dependency graph for agppriv.h:
This graph shows which files directly or indirectly include this file:

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_gattagp_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_memoryagp_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)
 

Macro Definition Documentation

◆ AGP_DPF

#define AGP_DPF (   fmt,
  ... 
)    do {} while (0)

Definition at line 46 of file agppriv.h.

Function Documentation

◆ agp_alloc_gatt()

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().

Here is the caller graph for this function:

◆ agp_find_caps()

u_int8_t agp_find_caps ( device_t  dev)

◆ agp_free_cdev()

void agp_free_cdev ( device_t  dev)

◆ agp_free_gatt()

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().

Here is the caller graph for this function:

◆ agp_free_res()

◆ agp_generic_alloc_memory()

◆ agp_generic_attach()

◆ agp_generic_bind_memory()

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().

Here is the caller graph for this function:

◆ agp_generic_detach()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ agp_generic_enable()

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.

Here is the call graph for this function:

◆ agp_generic_free_memory()

int agp_generic_free_memory ( device_t  dev,
struct agp_memory mem 
)

◆ agp_generic_get_aperture()

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.

◆ agp_generic_set_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().

Here is the caller graph for this function:

◆ agp_generic_unbind_memory()

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().

Here is the caller graph for this function:

◆ agp_set_aperture_resource()

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().

Here is the caller graph for this function:

◆ TAILQ_HEAD()

TAILQ_HEAD ( agp_memory_list  ,
agp_memory   
)