Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/linux
File: agpgart.h
/*
[0] Fix | Delete
* AGPGART module version 0.99
[1] Fix | Delete
* Copyright (C) 1999 Jeff Hartmann
[2] Fix | Delete
* Copyright (C) 1999 Precision Insight, Inc.
[3] Fix | Delete
* Copyright (C) 1999 Xi Graphics, Inc.
[4] Fix | Delete
*
[5] Fix | Delete
* Permission is hereby granted, free of charge, to any person obtaining a
[6] Fix | Delete
* copy of this software and associated documentation files (the "Software"),
[7] Fix | Delete
* to deal in the Software without restriction, including without limitation
[8] Fix | Delete
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
[9] Fix | Delete
* and/or sell copies of the Software, and to permit persons to whom the
[10] Fix | Delete
* Software is furnished to do so, subject to the following conditions:
[11] Fix | Delete
*
[12] Fix | Delete
* The above copyright notice and this permission notice shall be included
[13] Fix | Delete
* in all copies or substantial portions of the Software.
[14] Fix | Delete
*
[15] Fix | Delete
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
[16] Fix | Delete
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
[17] Fix | Delete
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
[18] Fix | Delete
* JEFF HARTMANN, OR ANY OTHER CONTRIBUTORS BE LIABLE FOR ANY CLAIM,
[19] Fix | Delete
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
[20] Fix | Delete
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
[21] Fix | Delete
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[22] Fix | Delete
*
[23] Fix | Delete
*/
[24] Fix | Delete
[25] Fix | Delete
#ifndef _AGP_H
[26] Fix | Delete
#define _AGP_H
[27] Fix | Delete
[28] Fix | Delete
#define AGPIOC_BASE 'A'
[29] Fix | Delete
#define AGPIOC_INFO _IOR (AGPIOC_BASE, 0, struct agp_info*)
[30] Fix | Delete
#define AGPIOC_ACQUIRE _IO (AGPIOC_BASE, 1)
[31] Fix | Delete
#define AGPIOC_RELEASE _IO (AGPIOC_BASE, 2)
[32] Fix | Delete
#define AGPIOC_SETUP _IOW (AGPIOC_BASE, 3, struct agp_setup*)
[33] Fix | Delete
#define AGPIOC_RESERVE _IOW (AGPIOC_BASE, 4, struct agp_region*)
[34] Fix | Delete
#define AGPIOC_PROTECT _IOW (AGPIOC_BASE, 5, struct agp_region*)
[35] Fix | Delete
#define AGPIOC_ALLOCATE _IOWR(AGPIOC_BASE, 6, struct agp_allocate*)
[36] Fix | Delete
#define AGPIOC_DEALLOCATE _IOW (AGPIOC_BASE, 7, int)
[37] Fix | Delete
#define AGPIOC_BIND _IOW (AGPIOC_BASE, 8, struct agp_bind*)
[38] Fix | Delete
#define AGPIOC_UNBIND _IOW (AGPIOC_BASE, 9, struct agp_unbind*)
[39] Fix | Delete
#define AGPIOC_CHIPSET_FLUSH _IO (AGPIOC_BASE, 10)
[40] Fix | Delete
[41] Fix | Delete
#define AGP_DEVICE "/dev/agpgart"
[42] Fix | Delete
[43] Fix | Delete
#ifndef TRUE
[44] Fix | Delete
#define TRUE 1
[45] Fix | Delete
#endif
[46] Fix | Delete
[47] Fix | Delete
#ifndef FALSE
[48] Fix | Delete
#define FALSE 0
[49] Fix | Delete
#endif
[50] Fix | Delete
[51] Fix | Delete
#include <linux/types.h>
[52] Fix | Delete
#include <stdlib.h>
[53] Fix | Delete
[54] Fix | Delete
struct agp_version {
[55] Fix | Delete
__u16 major;
[56] Fix | Delete
__u16 minor;
[57] Fix | Delete
};
[58] Fix | Delete
[59] Fix | Delete
typedef struct _agp_info {
[60] Fix | Delete
struct agp_version version; /* version of the driver */
[61] Fix | Delete
__u32 bridge_id; /* bridge vendor/device */
[62] Fix | Delete
__u32 agp_mode; /* mode info of bridge */
[63] Fix | Delete
unsigned long aper_base;/* base of aperture */
[64] Fix | Delete
size_t aper_size; /* size of aperture */
[65] Fix | Delete
size_t pg_total; /* max pages (swap + system) */
[66] Fix | Delete
size_t pg_system; /* max pages (system) */
[67] Fix | Delete
size_t pg_used; /* current pages used */
[68] Fix | Delete
} agp_info;
[69] Fix | Delete
[70] Fix | Delete
typedef struct _agp_setup {
[71] Fix | Delete
__u32 agp_mode; /* mode info of bridge */
[72] Fix | Delete
} agp_setup;
[73] Fix | Delete
[74] Fix | Delete
/*
[75] Fix | Delete
* The "prot" down below needs still a "sleep" flag somehow ...
[76] Fix | Delete
*/
[77] Fix | Delete
typedef struct _agp_segment {
[78] Fix | Delete
__kernel_off_t pg_start; /* starting page to populate */
[79] Fix | Delete
__kernel_size_t pg_count; /* number of pages */
[80] Fix | Delete
int prot; /* prot flags for mmap */
[81] Fix | Delete
} agp_segment;
[82] Fix | Delete
[83] Fix | Delete
typedef struct _agp_region {
[84] Fix | Delete
__kernel_pid_t pid; /* pid of process */
[85] Fix | Delete
__kernel_size_t seg_count; /* number of segments */
[86] Fix | Delete
struct _agp_segment *seg_list;
[87] Fix | Delete
} agp_region;
[88] Fix | Delete
[89] Fix | Delete
typedef struct _agp_allocate {
[90] Fix | Delete
int key; /* tag of allocation */
[91] Fix | Delete
__kernel_size_t pg_count;/* number of pages */
[92] Fix | Delete
__u32 type; /* 0 == normal, other devspec */
[93] Fix | Delete
__u32 physical; /* device specific (some devices
[94] Fix | Delete
* need a phys address of the
[95] Fix | Delete
* actual page behind the gatt
[96] Fix | Delete
* table) */
[97] Fix | Delete
} agp_allocate;
[98] Fix | Delete
[99] Fix | Delete
typedef struct _agp_bind {
[100] Fix | Delete
int key; /* tag of allocation */
[101] Fix | Delete
__kernel_off_t pg_start;/* starting page to populate */
[102] Fix | Delete
} agp_bind;
[103] Fix | Delete
[104] Fix | Delete
typedef struct _agp_unbind {
[105] Fix | Delete
int key; /* tag of allocation */
[106] Fix | Delete
__u32 priority; /* priority for paging out */
[107] Fix | Delete
} agp_unbind;
[108] Fix | Delete
[109] Fix | Delete
[110] Fix | Delete
#endif /* _AGP_H */
[111] Fix | Delete
[112] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function