Linux Kernel
3.7.1
|
#include <linux/list.h>
Go to the source code of this file.
Data Structures | |
struct | agp_version |
struct | agp_kern_info |
struct | agp_memory |
Macros | |
#define | AGP_NORMAL_MEMORY 0 |
#define | AGP_USER_TYPES (1 << 16) |
#define | AGP_USER_MEMORY (AGP_USER_TYPES) |
#define | AGP_USER_CACHED_MEMORY (AGP_USER_TYPES + 1) |
Enumerations | |
enum | chipset_type { NOT_SUPPORTED, SUPPORTED } |
Functions | |
void | agp_free_memory (struct agp_memory *) |
struct agp_memory * | agp_allocate_memory (struct agp_bridge_data *, size_t, u32) |
int | agp_copy_info (struct agp_bridge_data *, struct agp_kern_info *) |
int | agp_bind_memory (struct agp_memory *, off_t) |
int | agp_unbind_memory (struct agp_memory *) |
void | agp_enable (struct agp_bridge_data *, u32) |
struct agp_bridge_data * | agp_backend_acquire (struct pci_dev *) |
void | agp_backend_release (struct agp_bridge_data *) |
Variables | |
struct agp_bridge_data * | agp_bridge |
struct list_head | agp_bridges |
struct agp_bridge_data *(* | agp_find_bridge )(struct pci_dev *) |
#define AGP_NORMAL_MEMORY 0 |
Definition at line 89 of file agp_backend.h.
#define AGP_USER_CACHED_MEMORY (AGP_USER_TYPES + 1) |
Definition at line 93 of file agp_backend.h.
#define AGP_USER_MEMORY (AGP_USER_TYPES) |
Definition at line 92 of file agp_backend.h.
#define AGP_USER_TYPES (1 << 16) |
Definition at line 91 of file agp_backend.h.
enum chipset_type |
Definition at line 35 of file agp_backend.h.
|
read |
agp_allocate_memory - allocate a group of pages of a certain type.
: size_t argument of the number of pages : u32 argument of the type of memory to be allocated.
Every agp bridge device will allow you to allocate AGP_NORMAL_MEMORY which maps to physical ram. Any other type is device dependent.
It returns NULL whenever memory is unavailable.
|
read |
void agp_backend_release | ( | struct agp_bridge_data * | bridge | ) |
int agp_bind_memory | ( | struct agp_memory * | curr, |
off_t | pg_start | ||
) |
int agp_copy_info | ( | struct agp_bridge_data * | bridge, |
struct agp_kern_info * | info | ||
) |
void agp_enable | ( | struct agp_bridge_data * | bridge, |
u32 | mode | ||
) |
void agp_free_memory | ( | struct agp_memory * | curr | ) |
agp_free_memory - free memory associated with an agp_memory pointer.
: agp_memory pointer to be freed.
It is the only function that can be called when the backend is not owned by the caller. (So it can free memory on client death.)
int agp_unbind_memory | ( | struct agp_memory * | curr | ) |
agp_unbind_memory - Removes an agp_memory structure from the GATT
: agp_memory pointer to be removed from the GATT.
It returns -EINVAL if this piece of agp_memory is not currently bound to the graphics aperture translation table or if the agp_memory pointer == NULL
struct agp_bridge_data* agp_bridge |