Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/pagemap.h>
#include <linux/miscdevice.h>
#include <linux/pm.h>
#include <linux/agp_backend.h>
#include <linux/vmalloc.h>
#include <linux/dma-mapping.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <asm/io.h>
#include <asm/cacheflush.h>
#include <asm/pgtable.h>
#include "agp.h"
Go to the source code of this file.
Macros | |
#define | ENTRIES_PER_PAGE (PAGE_SIZE / sizeof(unsigned long)) |
Variables | |
__u32 * | agp_gatt_table |
int | agp_memory_reserved |
struct aper_size_info_16 | agp3_generic_sizes [AGP_GENERIC_SIZES_ENTRIES] |
void agp3_generic_tlbflush | ( | struct agp_memory * | mem | ) |
void agp_alloc_page_array | ( | size_t | size, |
struct agp_memory * | mem | ||
) |
|
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.
int agp_bind_memory | ( | struct agp_memory * | curr, |
off_t | pg_start | ||
) |
u32 agp_collect_device_status | ( | struct agp_bridge_data * | bridge, |
u32 | requested_mode, | ||
u32 | bridge_agpstat | ||
) |
agp_collect_device_status - determine correct agp_cmd from various agp_stat's : an agp_bridge_data struct allocated for the AGP host bridge. : requested agp_stat from userspace (Typically from X) : current agp_stat from AGP bridge.
This function will hunt for an AGP graphics card, and try to match the requested mode to the capabilities of both the bridge and the card.
int agp_copy_info | ( | struct agp_bridge_data * | bridge, |
struct agp_kern_info * | info | ||
) |
|
read |
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.)
void agp_free_page_array | ( | struct agp_memory * | mem | ) |
|
read |
|
read |
int agp_generic_alloc_pages | ( | struct agp_bridge_data * | bridge, |
struct agp_memory * | mem, | ||
size_t | num_pages | ||
) |
|
read |
int agp_generic_create_gatt_table | ( | struct agp_bridge_data * | bridge | ) |
void agp_generic_destroy_pages | ( | struct agp_memory * | mem | ) |
void agp_generic_enable | ( | struct agp_bridge_data * | bridge, |
u32 | requested_mode | ||
) |
|
read |
void agp_generic_free_by_type | ( | struct agp_memory * | curr | ) |
int agp_generic_free_gatt_table | ( | struct agp_bridge_data * | bridge | ) |
int agp_generic_insert_memory | ( | struct agp_memory * | mem, |
off_t | pg_start, | ||
int | type | ||
) |
unsigned long agp_generic_mask_memory | ( | struct agp_bridge_data * | bridge, |
dma_addr_t | addr, | ||
int | type | ||
) |
int agp_generic_remove_memory | ( | struct agp_memory * | mem, |
off_t | pg_start, | ||
int | type | ||
) |
int agp_generic_type_to_mask_type | ( | struct agp_bridge_data * | bridge, |
int | type | ||
) |
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
EXPORT_SYMBOL | ( | agp_free_key | ) |
EXPORT_SYMBOL | ( | agp_alloc_page_array | ) |
EXPORT_SYMBOL | ( | agp_free_page_array | ) |
EXPORT_SYMBOL | ( | agp_create_memory | ) |
EXPORT_SYMBOL | ( | agp_free_memory | ) |
EXPORT_SYMBOL | ( | agp_allocate_memory | ) |
EXPORT_SYMBOL | ( | agp_copy_info | ) |
EXPORT_SYMBOL | ( | agp_bind_memory | ) |
EXPORT_SYMBOL | ( | agp_unbind_memory | ) |
EXPORT_SYMBOL | ( | agp_collect_device_status | ) |
EXPORT_SYMBOL | ( | agp_device_command | ) |
EXPORT_SYMBOL | ( | get_agp_version | ) |
EXPORT_SYMBOL | ( | agp_generic_enable | ) |
EXPORT_SYMBOL | ( | agp_generic_create_gatt_table | ) |
EXPORT_SYMBOL | ( | agp_generic_free_gatt_table | ) |
EXPORT_SYMBOL | ( | agp_generic_insert_memory | ) |
EXPORT_SYMBOL | ( | agp_generic_remove_memory | ) |
EXPORT_SYMBOL | ( | agp_generic_alloc_by_type | ) |
EXPORT_SYMBOL | ( | agp_generic_free_by_type | ) |
EXPORT_SYMBOL | ( | agp_generic_alloc_user | ) |
EXPORT_SYMBOL | ( | agp_generic_alloc_pages | ) |
EXPORT_SYMBOL | ( | agp_generic_alloc_page | ) |
EXPORT_SYMBOL | ( | agp_generic_destroy_pages | ) |
EXPORT_SYMBOL | ( | agp_generic_destroy_page | ) |
EXPORT_SYMBOL | ( | agp_enable | ) |
EXPORT_SYMBOL | ( | global_cache_flush | ) |
EXPORT_SYMBOL | ( | agp_generic_mask_memory | ) |
EXPORT_SYMBOL | ( | agp_generic_type_to_mask_type | ) |
EXPORT_SYMBOL | ( | agp3_generic_fetch_size | ) |
EXPORT_SYMBOL | ( | agp3_generic_tlbflush | ) |
EXPORT_SYMBOL | ( | agp3_generic_configure | ) |
EXPORT_SYMBOL | ( | agp3_generic_cleanup | ) |
EXPORT_SYMBOL | ( | agp3_generic_sizes | ) |
EXPORT_SYMBOL_GPL | ( | agp_memory_reserved | ) |
EXPORT_SYMBOL_GPL | ( | agp_num_entries | ) |
void get_agp_version | ( | struct agp_bridge_data * | bridge | ) |
struct aper_size_info_16 agp3_generic_sizes[AGP_GENERIC_SIZES_ENTRIES] |