agp - generic interface to the Accelerated Graphics Port (AGP)
The most common application of is for running X(7) on the Intel i81x controllers.
typedef struct _agp_info {
agp_version version; /* version of the driver */
u_int32_t bridge_id; /* bridge vendor/device */
u_int32_t agp_mode; /* mode info of bridge */
off_t aper_base; /* base of aperture */
size_t aper_size; /* size of aperture */
size_t pg_total; /* max pages (swap + system) */
size_t pg_system; /* max pages (system) */
size_t pg_used; /* current pages used */
} agp_info;
typedef struct _agp_setup {
u_int32_t agp_mode; /* mode info of bridge */
} agp_setup;
The mode bits are defined in In sys/agpio.h .
typedef struct _agp_allocate {
int key; /* tag of allocation */
size_t pg_count; /* number of pages */
u_int32_t type; /* 0 == normal, other devspec */
u_int32_t physical; /* device specific (some devices
* need a phys address of the
* actual page behind the gatt
* table) */
} agp_allocate;
Returns a handle to the allocated memory.
typedef struct _agp_bind {
int key; /* tag of allocation */
off_t pg_start; /* starting page to populate */
} agp_bind;
The tag of allocation is the handle returned by AGPIOC_ALLOCATE
typedef struct _agp_unbind {
int key; /* tag of allocation */
u_int32_t priority; /* priority for paging out */
} agp_unbind;
|
Закладки на сайте Проследить за страницей |
Created 1996-2025 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |