Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
5a09946d
Commit
5a09946d
authored
Jan 05, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linux-dj.bkbits.net/agpgart
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
73c11c16
ba051c01
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
28 additions
and
51 deletions
+28
-51
drivers/char/agp/agp.h
drivers/char/agp/agp.h
+1
-1
drivers/char/agp/ali-agp.c
drivers/char/agp/ali-agp.c
+0
-1
drivers/char/agp/amd-k7-agp.c
drivers/char/agp/amd-k7-agp.c
+2
-2
drivers/char/agp/amd-k8-agp.c
drivers/char/agp/amd-k8-agp.c
+2
-2
drivers/char/agp/backend.c
drivers/char/agp/backend.c
+6
-7
drivers/char/agp/generic.c
drivers/char/agp/generic.c
+4
-11
drivers/char/agp/hp-agp.c
drivers/char/agp/hp-agp.c
+0
-1
drivers/char/agp/i460-agp.c
drivers/char/agp/i460-agp.c
+0
-1
drivers/char/agp/i7x05-agp.c
drivers/char/agp/i7x05-agp.c
+0
-1
drivers/char/agp/intel-agp.c
drivers/char/agp/intel-agp.c
+6
-14
drivers/char/agp/sis-agp.c
drivers/char/agp/sis-agp.c
+0
-1
drivers/char/agp/sworks-agp.c
drivers/char/agp/sworks-agp.c
+2
-2
drivers/char/agp/via-agp.c
drivers/char/agp/via-agp.c
+3
-4
drivers/char/agp/via-kt400.c
drivers/char/agp/via-kt400.c
+0
-1
include/linux/agp_backend.h
include/linux/agp_backend.h
+1
-1
include/linux/pci_ids.h
include/linux/pci_ids.h
+1
-1
No files found.
drivers/char/agp/agp.h
View file @
5a09946d
...
@@ -133,6 +133,7 @@ struct agp_bridge_data {
...
@@ -133,6 +133,7 @@ struct agp_bridge_data {
u32
*
gatt_table
;
u32
*
gatt_table
;
u32
*
gatt_table_real
;
u32
*
gatt_table_real
;
unsigned
long
scratch_page
;
unsigned
long
scratch_page
;
unsigned
long
scratch_page_real
;
unsigned
long
gart_bus_addr
;
unsigned
long
gart_bus_addr
;
unsigned
long
gatt_bus_addr
;
unsigned
long
gatt_bus_addr
;
u32
mode
;
u32
mode
;
...
@@ -145,7 +146,6 @@ struct agp_bridge_data {
...
@@ -145,7 +146,6 @@ struct agp_bridge_data {
int
needs_scratch_page
;
int
needs_scratch_page
;
int
aperture_size_idx
;
int
aperture_size_idx
;
int
num_aperture_sizes
;
int
num_aperture_sizes
;
int
num_of_masks
;
int
capndx
;
int
capndx
;
int
cant_use_aperture
;
int
cant_use_aperture
;
...
...
drivers/char/agp/ali-agp.c
View file @
5a09946d
...
@@ -198,7 +198,6 @@ static struct aper_size_info_32 ali_generic_sizes[7] =
...
@@ -198,7 +198,6 @@ static struct aper_size_info_32 ali_generic_sizes[7] =
static
int
__init
ali_generic_setup
(
struct
pci_dev
*
pdev
)
static
int
__init
ali_generic_setup
(
struct
pci_dev
*
pdev
)
{
{
agp_bridge
.
masks
=
ali_generic_masks
;
agp_bridge
.
masks
=
ali_generic_masks
;
agp_bridge
.
num_of_masks
=
1
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
ali_generic_sizes
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
ali_generic_sizes
;
agp_bridge
.
size_type
=
U32_APER_SIZE
;
agp_bridge
.
size_type
=
U32_APER_SIZE
;
agp_bridge
.
num_aperture_sizes
=
7
;
agp_bridge
.
num_aperture_sizes
=
7
;
...
...
drivers/char/agp/amd-k7-agp.c
View file @
5a09946d
...
@@ -308,7 +308,8 @@ static int amd_insert_memory(agp_memory * mem,
...
@@ -308,7 +308,8 @@ static int amd_insert_memory(agp_memory * mem,
for
(
i
=
0
,
j
=
pg_start
;
i
<
mem
->
page_count
;
i
++
,
j
++
)
{
for
(
i
=
0
,
j
=
pg_start
;
i
<
mem
->
page_count
;
i
++
,
j
++
)
{
addr
=
(
j
*
PAGE_SIZE
)
+
agp_bridge
.
gart_bus_addr
;
addr
=
(
j
*
PAGE_SIZE
)
+
agp_bridge
.
gart_bus_addr
;
cur_gatt
=
GET_GATT
(
addr
);
cur_gatt
=
GET_GATT
(
addr
);
cur_gatt
[
GET_GATT_OFF
(
addr
)]
=
mem
->
memory
[
i
];
cur_gatt
[
GET_GATT_OFF
(
addr
)]
=
agp_bridge
.
mask_memory
(
mem
->
memory
[
i
],
mem
->
type
);
}
}
agp_bridge
.
tlb_flush
(
mem
);
agp_bridge
.
tlb_flush
(
mem
);
return
0
;
return
0
;
...
@@ -354,7 +355,6 @@ static struct gatt_mask amd_irongate_masks[] =
...
@@ -354,7 +355,6 @@ static struct gatt_mask amd_irongate_masks[] =
static
int
__init
amd_irongate_setup
(
struct
pci_dev
*
pdev
)
static
int
__init
amd_irongate_setup
(
struct
pci_dev
*
pdev
)
{
{
agp_bridge
.
masks
=
amd_irongate_masks
;
agp_bridge
.
masks
=
amd_irongate_masks
;
agp_bridge
.
num_of_masks
=
1
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
amd_irongate_sizes
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
amd_irongate_sizes
;
agp_bridge
.
size_type
=
LVL2_APER_SIZE
;
agp_bridge
.
size_type
=
LVL2_APER_SIZE
;
agp_bridge
.
num_aperture_sizes
=
7
;
agp_bridge
.
num_aperture_sizes
=
7
;
...
...
drivers/char/agp/amd-k8-agp.c
View file @
5a09946d
...
@@ -81,7 +81,7 @@ static int x86_64_insert_memory(agp_memory * mem, off_t pg_start, int type)
...
@@ -81,7 +81,7 @@ static int x86_64_insert_memory(agp_memory * mem, off_t pg_start, int type)
}
}
for
(
i
=
0
,
j
=
pg_start
;
i
<
mem
->
page_count
;
i
++
,
j
++
)
{
for
(
i
=
0
,
j
=
pg_start
;
i
<
mem
->
page_count
;
i
++
,
j
++
)
{
addr
=
mem
->
memory
[
i
]
;
addr
=
agp_bridge
.
mask_memory
(
mem
->
memory
[
i
],
mem
->
type
)
;
tmp
=
addr
;
tmp
=
addr
;
BUG_ON
(
tmp
&
0xffffff0000000ffc
);
BUG_ON
(
tmp
&
0xffffff0000000ffc
);
...
@@ -446,7 +446,6 @@ static void agp_x86_64_agp_enable(u32 mode)
...
@@ -446,7 +446,6 @@ static void agp_x86_64_agp_enable(u32 mode)
static
int
__init
amd_8151_setup
(
struct
pci_dev
*
pdev
)
static
int
__init
amd_8151_setup
(
struct
pci_dev
*
pdev
)
{
{
agp_bridge
.
masks
=
amd_8151_masks
;
agp_bridge
.
masks
=
amd_8151_masks
;
agp_bridge
.
num_of_masks
=
1
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
amd_8151_sizes
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
amd_8151_sizes
;
agp_bridge
.
size_type
=
U32_APER_SIZE
;
agp_bridge
.
size_type
=
U32_APER_SIZE
;
agp_bridge
.
num_aperture_sizes
=
7
;
agp_bridge
.
num_aperture_sizes
=
7
;
...
@@ -512,6 +511,7 @@ static struct __initdata pci_driver agp_amdk8_pci_driver = {
...
@@ -512,6 +511,7 @@ static struct __initdata pci_driver agp_amdk8_pci_driver = {
.
probe
=
agp_amdk8_probe
,
.
probe
=
agp_amdk8_probe
,
};
};
/* Not static due to IOMMU code calling it early. */
int
__init
agp_amdk8_init
(
void
)
int
__init
agp_amdk8_init
(
void
)
{
{
int
ret_val
;
int
ret_val
;
...
...
drivers/char/agp/backend.c
View file @
5a09946d
...
@@ -86,7 +86,7 @@ static int agp_find_max (void)
...
@@ -86,7 +86,7 @@ static int agp_find_max (void)
{
{
long
memory
,
index
,
result
;
long
memory
,
index
,
result
;
memory
=
virt_to_phys
(
high_memory
)
>>
20
;
memory
=
(
num_physpages
<<
PAGE_SHIFT
)
>>
20
;
index
=
1
;
index
=
1
;
while
((
memory
>
maxes_table
[
index
].
mem
)
&&
(
index
<
8
))
while
((
memory
>
maxes_table
[
index
].
mem
)
&&
(
index
<
8
))
...
@@ -123,8 +123,9 @@ static int agp_backend_initialize(struct pci_dev *dev)
...
@@ -123,8 +123,9 @@ static int agp_backend_initialize(struct pci_dev *dev)
printk
(
KERN_ERR
PFX
"unable to get memory for scratch page.
\n
"
);
printk
(
KERN_ERR
PFX
"unable to get memory for scratch page.
\n
"
);
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
agp_bridge
.
scratch_page
=
virt_to_phys
(
addr
);
agp_bridge
.
scratch_page_real
=
virt_to_phys
(
addr
);
agp_bridge
.
scratch_page
=
agp_bridge
.
mask_memory
(
agp_bridge
.
scratch_page
,
0
);
agp_bridge
.
scratch_page
=
agp_bridge
.
mask_memory
(
agp_bridge
.
scratch_page_real
,
0
);
}
}
size_value
=
agp_bridge
.
fetch_size
();
size_value
=
agp_bridge
.
fetch_size
();
...
@@ -165,8 +166,7 @@ static int agp_backend_initialize(struct pci_dev *dev)
...
@@ -165,8 +166,7 @@ static int agp_backend_initialize(struct pci_dev *dev)
err_out:
err_out:
if
(
agp_bridge
.
needs_scratch_page
==
TRUE
)
{
if
(
agp_bridge
.
needs_scratch_page
==
TRUE
)
{
agp_bridge
.
scratch_page
&=
~
(
0x00000fff
);
agp_bridge
.
agp_destroy_page
(
phys_to_virt
(
agp_bridge
.
scratch_page_real
));
agp_bridge
.
agp_destroy_page
(
phys_to_virt
(
agp_bridge
.
scratch_page
));
}
}
if
(
got_gatt
)
if
(
got_gatt
)
agp_bridge
.
free_gatt_table
();
agp_bridge
.
free_gatt_table
();
...
@@ -184,8 +184,7 @@ static void agp_backend_cleanup(void)
...
@@ -184,8 +184,7 @@ static void agp_backend_cleanup(void)
vfree
(
agp_bridge
.
key_list
);
vfree
(
agp_bridge
.
key_list
);
if
(
agp_bridge
.
needs_scratch_page
==
TRUE
)
{
if
(
agp_bridge
.
needs_scratch_page
==
TRUE
)
{
agp_bridge
.
scratch_page
&=
~
(
0x00000fff
);
agp_bridge
.
agp_destroy_page
(
phys_to_virt
(
agp_bridge
.
scratch_page_real
));
agp_bridge
.
agp_destroy_page
(
phys_to_virt
(
agp_bridge
.
scratch_page
));
}
}
}
}
...
...
drivers/char/agp/generic.c
View file @
5a09946d
...
@@ -110,7 +110,6 @@ void agp_free_memory(agp_memory * curr)
...
@@ -110,7 +110,6 @@ void agp_free_memory(agp_memory * curr)
}
}
if
(
curr
->
page_count
!=
0
)
{
if
(
curr
->
page_count
!=
0
)
{
for
(
i
=
0
;
i
<
curr
->
page_count
;
i
++
)
{
for
(
i
=
0
;
i
<
curr
->
page_count
;
i
++
)
{
curr
->
memory
[
i
]
&=
~
(
0x00000fff
);
agp_bridge
.
agp_destroy_page
(
phys_to_virt
(
curr
->
memory
[
i
]));
agp_bridge
.
agp_destroy_page
(
phys_to_virt
(
curr
->
memory
[
i
]));
}
}
}
}
...
@@ -158,7 +157,7 @@ agp_memory *agp_allocate_memory(size_t page_count, u32 type)
...
@@ -158,7 +157,7 @@ agp_memory *agp_allocate_memory(size_t page_count, u32 type)
agp_free_memory
(
new
);
agp_free_memory
(
new
);
return
NULL
;
return
NULL
;
}
}
new
->
memory
[
i
]
=
agp_bridge
.
mask_memory
(
virt_to_phys
(
addr
),
type
);
new
->
memory
[
i
]
=
virt_to_phys
((
void
*
)
new
->
memory
[
i
]
);
new
->
page_count
++
;
new
->
page_count
++
;
}
}
...
@@ -241,9 +240,6 @@ int agp_num_entries(void)
...
@@ -241,9 +240,6 @@ int agp_num_entries(void)
int
agp_copy_info
(
agp_kern_info
*
info
)
int
agp_copy_info
(
agp_kern_info
*
info
)
{
{
unsigned
long
page_mask
=
0
;
int
i
;
memset
(
info
,
0
,
sizeof
(
agp_kern_info
));
memset
(
info
,
0
,
sizeof
(
agp_kern_info
));
if
(
agp_bridge
.
type
==
NOT_SUPPORTED
)
{
if
(
agp_bridge
.
type
==
NOT_SUPPORTED
)
{
info
->
chipset
=
agp_bridge
.
type
;
info
->
chipset
=
agp_bridge
.
type
;
...
@@ -259,11 +255,7 @@ int agp_copy_info(agp_kern_info * info)
...
@@ -259,11 +255,7 @@ int agp_copy_info(agp_kern_info * info)
info
->
max_memory
=
agp_bridge
.
max_memory_agp
;
info
->
max_memory
=
agp_bridge
.
max_memory_agp
;
info
->
current_memory
=
atomic_read
(
&
agp_bridge
.
current_memory_agp
);
info
->
current_memory
=
atomic_read
(
&
agp_bridge
.
current_memory_agp
);
info
->
cant_use_aperture
=
agp_bridge
.
cant_use_aperture
;
info
->
cant_use_aperture
=
agp_bridge
.
cant_use_aperture
;
info
->
page_mask
=
~
0UL
;
for
(
i
=
0
;
i
<
agp_bridge
.
num_of_masks
;
i
++
)
page_mask
|=
agp_bridge
.
mask_memory
(
page_mask
,
i
);
info
->
page_mask
=
~
page_mask
;
return
0
;
return
0
;
}
}
...
@@ -640,7 +632,8 @@ int agp_generic_insert_memory(agp_memory * mem, off_t pg_start, int type)
...
@@ -640,7 +632,8 @@ int agp_generic_insert_memory(agp_memory * mem, off_t pg_start, int type)
}
}
for
(
i
=
0
,
j
=
pg_start
;
i
<
mem
->
page_count
;
i
++
,
j
++
)
for
(
i
=
0
,
j
=
pg_start
;
i
<
mem
->
page_count
;
i
++
,
j
++
)
agp_bridge
.
gatt_table
[
j
]
=
mem
->
memory
[
i
];
agp_bridge
.
gatt_table
[
j
]
=
agp_bridge
.
mask_memory
(
mem
->
memory
[
i
],
mem
->
type
);
agp_bridge
.
tlb_flush
(
mem
);
agp_bridge
.
tlb_flush
(
mem
);
return
0
;
return
0
;
...
...
drivers/char/agp/hp-agp.c
View file @
5a09946d
...
@@ -331,7 +331,6 @@ static unsigned long hp_zx1_mask_memory(unsigned long addr, int type)
...
@@ -331,7 +331,6 @@ static unsigned long hp_zx1_mask_memory(unsigned long addr, int type)
static
int
__init
hp_zx1_setup
(
struct
pci_dev
*
pdev
__attribute__
((
unused
)))
static
int
__init
hp_zx1_setup
(
struct
pci_dev
*
pdev
__attribute__
((
unused
)))
{
{
agp_bridge
.
masks
=
hp_zx1_masks
;
agp_bridge
.
masks
=
hp_zx1_masks
;
agp_bridge
.
num_of_masks
=
1
;
agp_bridge
.
dev_private_data
=
NULL
;
agp_bridge
.
dev_private_data
=
NULL
;
agp_bridge
.
size_type
=
FIXED_APER_SIZE
;
agp_bridge
.
size_type
=
FIXED_APER_SIZE
;
agp_bridge
.
needs_scratch_page
=
FALSE
;
agp_bridge
.
needs_scratch_page
=
FALSE
;
...
...
drivers/char/agp/i460-agp.c
View file @
5a09946d
...
@@ -525,7 +525,6 @@ static unsigned long i460_mask_memory (unsigned long addr, int type)
...
@@ -525,7 +525,6 @@ static unsigned long i460_mask_memory (unsigned long addr, int type)
static
int
__init
intel_i460_setup
(
struct
pci_dev
*
pdev
__attribute__
((
unused
)))
static
int
__init
intel_i460_setup
(
struct
pci_dev
*
pdev
__attribute__
((
unused
)))
{
{
agp_bridge
.
num_of_masks
=
1
;
agp_bridge
.
masks
=
i460_masks
;
agp_bridge
.
masks
=
i460_masks
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
i460_sizes
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
i460_sizes
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
...
...
drivers/char/agp/i7x05-agp.c
View file @
5a09946d
...
@@ -96,7 +96,6 @@ static void i7505_setup (u32 mode)
...
@@ -96,7 +96,6 @@ static void i7505_setup (u32 mode)
static
int
__init
intel_7505_setup
(
struct
pci_dev
*
pdev
)
static
int
__init
intel_7505_setup
(
struct
pci_dev
*
pdev
)
{
{
agp_bridge
.
masks
=
intel_generic_masks
;
agp_bridge
.
masks
=
intel_generic_masks
;
agp_bridge
.
num_of_masks
=
1
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_7505_sizes
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_7505_sizes
;
agp_bridge
.
size_type
=
U16_APER_SIZE
;
agp_bridge
.
size_type
=
U16_APER_SIZE
;
agp_bridge
.
num_aperture_sizes
=
7
;
agp_bridge
.
num_aperture_sizes
=
7
;
...
...
drivers/char/agp/intel-agp.c
View file @
5a09946d
...
@@ -153,7 +153,8 @@ static int intel_i810_insert_entries(agp_memory * mem, off_t pg_start,
...
@@ -153,7 +153,8 @@ static int intel_i810_insert_entries(agp_memory * mem, off_t pg_start,
CACHE_FLUSH
();
CACHE_FLUSH
();
for
(
i
=
0
,
j
=
pg_start
;
i
<
mem
->
page_count
;
i
++
,
j
++
)
{
for
(
i
=
0
,
j
=
pg_start
;
i
<
mem
->
page_count
;
i
++
,
j
++
)
{
OUTREG32
(
intel_i810_private
.
registers
,
OUTREG32
(
intel_i810_private
.
registers
,
I810_PTE_BASE
+
(
j
*
4
),
mem
->
memory
[
i
]);
I810_PTE_BASE
+
(
j
*
4
),
agp_bridge
.
mask_memory
(
mem
->
memory
[
i
],
mem
->
type
));
}
}
CACHE_FLUSH
();
CACHE_FLUSH
();
...
@@ -219,7 +220,7 @@ static agp_memory *intel_i810_alloc_by_type(size_t pg_count, int type)
...
@@ -219,7 +220,7 @@ static agp_memory *intel_i810_alloc_by_type(size_t pg_count, int type)
agp_free_memory
(
new
);
agp_free_memory
(
new
);
return
NULL
;
return
NULL
;
}
}
new
->
memory
[
0
]
=
agp_bridge
.
mask_memory
(
virt_to_phys
(
addr
),
type
);
new
->
memory
[
0
]
=
virt_to_phys
((
void
*
)
new
->
memory
[
0
]
);
new
->
page_count
=
1
;
new
->
page_count
=
1
;
new
->
num_scratch_pages
=
1
;
new
->
num_scratch_pages
=
1
;
new
->
type
=
AGP_PHYS_MEMORY
;
new
->
type
=
AGP_PHYS_MEMORY
;
...
@@ -251,7 +252,6 @@ static int __init intel_i810_setup(struct pci_dev *i810_dev)
...
@@ -251,7 +252,6 @@ static int __init intel_i810_setup(struct pci_dev *i810_dev)
intel_i810_private
.
i810_dev
=
i810_dev
;
intel_i810_private
.
i810_dev
=
i810_dev
;
agp_bridge
.
masks
=
intel_i810_masks
;
agp_bridge
.
masks
=
intel_i810_masks
;
agp_bridge
.
num_of_masks
=
2
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_i810_sizes
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_i810_sizes
;
agp_bridge
.
size_type
=
FIXED_APER_SIZE
;
agp_bridge
.
size_type
=
FIXED_APER_SIZE
;
agp_bridge
.
num_aperture_sizes
=
2
;
agp_bridge
.
num_aperture_sizes
=
2
;
...
@@ -454,7 +454,8 @@ static int intel_i830_insert_entries(agp_memory *mem,off_t pg_start,int type)
...
@@ -454,7 +454,8 @@ static int intel_i830_insert_entries(agp_memory *mem,off_t pg_start,int type)
CACHE_FLUSH
();
CACHE_FLUSH
();
for
(
i
=
0
,
j
=
pg_start
;
i
<
mem
->
page_count
;
i
++
,
j
++
)
for
(
i
=
0
,
j
=
pg_start
;
i
<
mem
->
page_count
;
i
++
,
j
++
)
OUTREG32
(
intel_i830_private
.
registers
,
I810_PTE_BASE
+
(
j
*
4
),
mem
->
memory
[
i
]);
OUTREG32
(
intel_i830_private
.
registers
,
I810_PTE_BASE
+
(
j
*
4
),
agp_bridge
.
mask_memory
(
mem
->
memory
[
i
],
mem
->
type
));
CACHE_FLUSH
();
CACHE_FLUSH
();
...
@@ -514,7 +515,7 @@ static agp_memory *intel_i830_alloc_by_type(size_t pg_count,int type)
...
@@ -514,7 +515,7 @@ static agp_memory *intel_i830_alloc_by_type(size_t pg_count,int type)
return
(
NULL
);
return
(
NULL
);
}
}
nw
->
memory
[
0
]
=
agp_bridge
.
mask_memory
(
virt_to_phys
(
addr
),
type
);
nw
->
memory
[
0
]
=
virt_to_phys
((
void
*
)
nw
->
memory
[
0
]
);
nw
->
page_count
=
1
;
nw
->
page_count
=
1
;
nw
->
num_scratch_pages
=
1
;
nw
->
num_scratch_pages
=
1
;
nw
->
type
=
AGP_PHYS_MEMORY
;
nw
->
type
=
AGP_PHYS_MEMORY
;
...
@@ -530,7 +531,6 @@ static int __init intel_i830_setup(struct pci_dev *i830_dev)
...
@@ -530,7 +531,6 @@ static int __init intel_i830_setup(struct pci_dev *i830_dev)
intel_i830_private
.
i830_dev
=
i830_dev
;
intel_i830_private
.
i830_dev
=
i830_dev
;
agp_bridge
.
masks
=
intel_i810_masks
;
agp_bridge
.
masks
=
intel_i810_masks
;
agp_bridge
.
num_of_masks
=
3
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_i830_sizes
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_i830_sizes
;
agp_bridge
.
size_type
=
FIXED_APER_SIZE
;
agp_bridge
.
size_type
=
FIXED_APER_SIZE
;
agp_bridge
.
num_aperture_sizes
=
2
;
agp_bridge
.
num_aperture_sizes
=
2
;
...
@@ -974,7 +974,6 @@ static struct aper_size_info_8 intel_830mp_sizes[4] =
...
@@ -974,7 +974,6 @@ static struct aper_size_info_8 intel_830mp_sizes[4] =
static
int
__init
intel_generic_setup
(
struct
pci_dev
*
pdev
)
static
int
__init
intel_generic_setup
(
struct
pci_dev
*
pdev
)
{
{
agp_bridge
.
masks
=
intel_generic_masks
;
agp_bridge
.
masks
=
intel_generic_masks
;
agp_bridge
.
num_of_masks
=
1
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_generic_sizes
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_generic_sizes
;
agp_bridge
.
size_type
=
U16_APER_SIZE
;
agp_bridge
.
size_type
=
U16_APER_SIZE
;
agp_bridge
.
num_aperture_sizes
=
7
;
agp_bridge
.
num_aperture_sizes
=
7
;
...
@@ -1004,7 +1003,6 @@ static int __init intel_generic_setup (struct pci_dev *pdev)
...
@@ -1004,7 +1003,6 @@ static int __init intel_generic_setup (struct pci_dev *pdev)
static
int
__init
intel_815_setup
(
struct
pci_dev
*
pdev
)
static
int
__init
intel_815_setup
(
struct
pci_dev
*
pdev
)
{
{
agp_bridge
.
masks
=
intel_generic_masks
;
agp_bridge
.
masks
=
intel_generic_masks
;
agp_bridge
.
num_of_masks
=
1
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_815_sizes
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_815_sizes
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
num_aperture_sizes
=
2
;
agp_bridge
.
num_aperture_sizes
=
2
;
...
@@ -1035,7 +1033,6 @@ static int __init intel_815_setup (struct pci_dev *pdev)
...
@@ -1035,7 +1033,6 @@ static int __init intel_815_setup (struct pci_dev *pdev)
static
int
__init
intel_820_setup
(
struct
pci_dev
*
pdev
)
static
int
__init
intel_820_setup
(
struct
pci_dev
*
pdev
)
{
{
agp_bridge
.
masks
=
intel_generic_masks
;
agp_bridge
.
masks
=
intel_generic_masks
;
agp_bridge
.
num_of_masks
=
1
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_8xx_sizes
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_8xx_sizes
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
num_aperture_sizes
=
7
;
agp_bridge
.
num_aperture_sizes
=
7
;
...
@@ -1065,7 +1062,6 @@ static int __init intel_820_setup (struct pci_dev *pdev)
...
@@ -1065,7 +1062,6 @@ static int __init intel_820_setup (struct pci_dev *pdev)
static
int
__init
intel_830mp_setup
(
struct
pci_dev
*
pdev
)
static
int
__init
intel_830mp_setup
(
struct
pci_dev
*
pdev
)
{
{
agp_bridge
.
masks
=
intel_generic_masks
;
agp_bridge
.
masks
=
intel_generic_masks
;
agp_bridge
.
num_of_masks
=
1
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_830mp_sizes
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_830mp_sizes
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
num_aperture_sizes
=
4
;
agp_bridge
.
num_aperture_sizes
=
4
;
...
@@ -1095,7 +1091,6 @@ static int __init intel_830mp_setup (struct pci_dev *pdev)
...
@@ -1095,7 +1091,6 @@ static int __init intel_830mp_setup (struct pci_dev *pdev)
static
int
__init
intel_840_setup
(
struct
pci_dev
*
pdev
)
static
int
__init
intel_840_setup
(
struct
pci_dev
*
pdev
)
{
{
agp_bridge
.
masks
=
intel_generic_masks
;
agp_bridge
.
masks
=
intel_generic_masks
;
agp_bridge
.
num_of_masks
=
1
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_8xx_sizes
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_8xx_sizes
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
num_aperture_sizes
=
7
;
agp_bridge
.
num_aperture_sizes
=
7
;
...
@@ -1125,7 +1120,6 @@ static int __init intel_840_setup (struct pci_dev *pdev)
...
@@ -1125,7 +1120,6 @@ static int __init intel_840_setup (struct pci_dev *pdev)
static
int
__init
intel_845_setup
(
struct
pci_dev
*
pdev
)
static
int
__init
intel_845_setup
(
struct
pci_dev
*
pdev
)
{
{
agp_bridge
.
masks
=
intel_generic_masks
;
agp_bridge
.
masks
=
intel_generic_masks
;
agp_bridge
.
num_of_masks
=
1
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_8xx_sizes
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_8xx_sizes
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
num_aperture_sizes
=
7
;
agp_bridge
.
num_aperture_sizes
=
7
;
...
@@ -1155,7 +1149,6 @@ static int __init intel_845_setup (struct pci_dev *pdev)
...
@@ -1155,7 +1149,6 @@ static int __init intel_845_setup (struct pci_dev *pdev)
static
int
__init
intel_850_setup
(
struct
pci_dev
*
pdev
)
static
int
__init
intel_850_setup
(
struct
pci_dev
*
pdev
)
{
{
agp_bridge
.
masks
=
intel_generic_masks
;
agp_bridge
.
masks
=
intel_generic_masks
;
agp_bridge
.
num_of_masks
=
1
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_8xx_sizes
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_8xx_sizes
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
num_aperture_sizes
=
7
;
agp_bridge
.
num_aperture_sizes
=
7
;
...
@@ -1185,7 +1178,6 @@ static int __init intel_850_setup (struct pci_dev *pdev)
...
@@ -1185,7 +1178,6 @@ static int __init intel_850_setup (struct pci_dev *pdev)
static
int
__init
intel_860_setup
(
struct
pci_dev
*
pdev
)
static
int
__init
intel_860_setup
(
struct
pci_dev
*
pdev
)
{
{
agp_bridge
.
masks
=
intel_generic_masks
;
agp_bridge
.
masks
=
intel_generic_masks
;
agp_bridge
.
num_of_masks
=
1
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_8xx_sizes
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
intel_8xx_sizes
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
num_aperture_sizes
=
7
;
agp_bridge
.
num_aperture_sizes
=
7
;
...
...
drivers/char/agp/sis-agp.c
View file @
5a09946d
...
@@ -89,7 +89,6 @@ static struct gatt_mask sis_generic_masks[] =
...
@@ -89,7 +89,6 @@ static struct gatt_mask sis_generic_masks[] =
static
int
__init
sis_generic_setup
(
struct
pci_dev
*
pdev
)
static
int
__init
sis_generic_setup
(
struct
pci_dev
*
pdev
)
{
{
agp_bridge
.
masks
=
sis_generic_masks
;
agp_bridge
.
masks
=
sis_generic_masks
;
agp_bridge
.
num_of_masks
=
1
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
sis_generic_sizes
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
sis_generic_sizes
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
num_aperture_sizes
=
7
;
agp_bridge
.
num_aperture_sizes
=
7
;
...
...
drivers/char/agp/sworks-agp.c
View file @
5a09946d
...
@@ -363,7 +363,8 @@ static int serverworks_insert_memory(agp_memory * mem,
...
@@ -363,7 +363,8 @@ static int serverworks_insert_memory(agp_memory * mem,
for
(
i
=
0
,
j
=
pg_start
;
i
<
mem
->
page_count
;
i
++
,
j
++
)
{
for
(
i
=
0
,
j
=
pg_start
;
i
<
mem
->
page_count
;
i
++
,
j
++
)
{
addr
=
(
j
*
PAGE_SIZE
)
+
agp_bridge
.
gart_bus_addr
;
addr
=
(
j
*
PAGE_SIZE
)
+
agp_bridge
.
gart_bus_addr
;
cur_gatt
=
SVRWRKS_GET_GATT
(
addr
);
cur_gatt
=
SVRWRKS_GET_GATT
(
addr
);
cur_gatt
[
GET_GATT_OFF
(
addr
)]
=
mem
->
memory
[
i
];
cur_gatt
[
GET_GATT_OFF
(
addr
)]
=
agp_bridge
.
mask_memory
(
mem
->
memory
[
i
],
mem
->
type
);
}
}
agp_bridge
.
tlb_flush
(
mem
);
agp_bridge
.
tlb_flush
(
mem
);
return
0
;
return
0
;
...
@@ -520,7 +521,6 @@ static int __init serverworks_setup (struct pci_dev *pdev)
...
@@ -520,7 +521,6 @@ static int __init serverworks_setup (struct pci_dev *pdev)
serverworks_private
.
svrwrks_dev
=
pdev
;
serverworks_private
.
svrwrks_dev
=
pdev
;
agp_bridge
.
masks
=
serverworks_masks
;
agp_bridge
.
masks
=
serverworks_masks
;
agp_bridge
.
num_of_masks
=
1
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
serverworks_sizes
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
serverworks_sizes
;
agp_bridge
.
size_type
=
LVL2_APER_SIZE
;
agp_bridge
.
size_type
=
LVL2_APER_SIZE
;
agp_bridge
.
num_aperture_sizes
=
7
;
agp_bridge
.
num_aperture_sizes
=
7
;
...
...
drivers/char/agp/via-agp.c
View file @
5a09946d
...
@@ -97,7 +97,6 @@ static struct gatt_mask via_generic_masks[] =
...
@@ -97,7 +97,6 @@ static struct gatt_mask via_generic_masks[] =
static
int
__init
via_generic_setup
(
struct
pci_dev
*
pdev
)
static
int
__init
via_generic_setup
(
struct
pci_dev
*
pdev
)
{
{
agp_bridge
.
masks
=
via_generic_masks
;
agp_bridge
.
masks
=
via_generic_masks
;
agp_bridge
.
num_of_masks
=
1
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
via_generic_sizes
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
via_generic_sizes
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
num_aperture_sizes
=
7
;
agp_bridge
.
num_aperture_sizes
=
7
;
...
@@ -203,9 +202,9 @@ static struct agp_device_ids via_agp_device_ids[] __initdata =
...
@@ -203,9 +202,9 @@ static struct agp_device_ids via_agp_device_ids[] __initdata =
.
chipset_name
=
"Apollo ProSavage PM133"
.
chipset_name
=
"Apollo ProSavage PM133"
},
},
{
{
.
device_id
=
PCI_DEVICE_ID_VIA_8
235_0
,
.
device_id
=
PCI_DEVICE_ID_VIA_8
754
,
.
chipset
=
VIA_P4X
400
,
.
chipset
=
VIA_P4X
,
.
chipset_name
=
"P4X400"
.
chipset_name
=
"
Apollo P4X333/
P4X400"
},
},
{
},
/* dummy final entry, always present */
{
},
/* dummy final entry, always present */
};
};
...
...
drivers/char/agp/via-kt400.c
View file @
5a09946d
...
@@ -122,7 +122,6 @@ static int __init agp_via_probe (struct pci_dev *dev, const struct pci_device_id
...
@@ -122,7 +122,6 @@ static int __init agp_via_probe (struct pci_dev *dev, const struct pci_device_id
agp_bridge
.
type
=
VIA_APOLLO_KT400_3
;
agp_bridge
.
type
=
VIA_APOLLO_KT400_3
;
agp_bridge
.
capndx
=
cap_ptr
;
agp_bridge
.
capndx
=
cap_ptr
;
agp_bridge
.
masks
=
via_generic_masks
;
agp_bridge
.
masks
=
via_generic_masks
;
agp_bridge
.
num_of_masks
=
1
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
via_generic_sizes
;
agp_bridge
.
aperture_sizes
=
(
void
*
)
via_generic_sizes
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
size_type
=
U8_APER_SIZE
;
agp_bridge
.
num_aperture_sizes
=
7
;
agp_bridge
.
num_aperture_sizes
=
7
;
...
...
include/linux/agp_backend.h
View file @
5a09946d
...
@@ -63,7 +63,7 @@ enum chipset_type {
...
@@ -63,7 +63,7 @@ enum chipset_type {
VIA_APOLLO_KT400_3
,
VIA_APOLLO_KT400_3
,
VIA_APOLLO_PRO_266
,
VIA_APOLLO_PRO_266
,
VIA_VT8605
,
VIA_VT8605
,
VIA_P4X
400
,
VIA_P4X
,
SIS_GENERIC
,
SIS_GENERIC
,
AMD_GENERIC
,
AMD_GENERIC
,
AMD_IRONGATE
,
AMD_IRONGATE
,
...
...
include/linux/pci_ids.h
View file @
5a09946d
...
@@ -1092,7 +1092,7 @@
...
@@ -1092,7 +1092,7 @@
#define PCI_DEVICE_ID_VIA_8233C_0 0x3109
#define PCI_DEVICE_ID_VIA_8233C_0 0x3109
#define PCI_DEVICE_ID_VIA_8361 0x3112
#define PCI_DEVICE_ID_VIA_8361 0x3112
#define PCI_DEVICE_ID_VIA_8233A 0x3147
#define PCI_DEVICE_ID_VIA_8233A 0x3147
#define PCI_DEVICE_ID_VIA_8
235_0
0x3168
#define PCI_DEVICE_ID_VIA_8
754
0x3168
#define PCI_DEVICE_ID_VIA_8235 0x3177
#define PCI_DEVICE_ID_VIA_8235 0x3177
#define PCI_DEVICE_ID_VIA_8377_0 0x3189
#define PCI_DEVICE_ID_VIA_8377_0 0x3189
#define PCI_DEVICE_ID_VIA_86C100A 0x6100
#define PCI_DEVICE_ID_VIA_86C100A 0x6100
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment