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
eac15040
Commit
eac15040
authored
Aug 15, 2003
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AGPGART] Kill compiler warnings for ATI GART driver.
parent
316fbe45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
14 deletions
+4
-14
drivers/char/agp/ati-agp.c
drivers/char/agp/ati-agp.c
+4
-14
No files found.
drivers/char/agp/ati-agp.c
View file @
eac15040
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
#include <linux/pci.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/agp_backend.h>
#include <linux/agp_backend.h>
#include <asm/agp.h>
#include "agp.h"
#include "agp.h"
static
struct
aper_size_info_lvl2
ati_generic_sizes
[
7
]
=
static
struct
aper_size_info_lvl2
ati_generic_sizes
[
7
]
=
...
@@ -47,13 +48,8 @@ static int ati_create_page_map(ati_page_map *page_map)
...
@@ -47,13 +48,8 @@ static int ati_create_page_map(ati_page_map *page_map)
return
-
ENOMEM
;
return
-
ENOMEM
;
SetPageReserved
(
virt_to_page
(
page_map
->
real
));
SetPageReserved
(
virt_to_page
(
page_map
->
real
));
/*
* fredi - WARNING: added looking at the changes during
* 2.4.20. I dont know if it's needed though.
*/
#ifdef CONFIG_X86
err
=
map_page_into_agp
(
virt_to_page
(
page_map
->
real
));
err
=
map_page_into_agp
(
virt_to_page
(
page_map
->
real
));
#endif
/* CACHE_FLUSH(); */
/* CACHE_FLUSH(); */
global_cache_flush
();
global_cache_flush
();
page_map
->
remapped
=
ioremap_nocache
(
virt_to_phys
(
page_map
->
real
),
page_map
->
remapped
=
ioremap_nocache
(
virt_to_phys
(
page_map
->
real
),
...
@@ -76,13 +72,7 @@ static int ati_create_page_map(ati_page_map *page_map)
...
@@ -76,13 +72,7 @@ static int ati_create_page_map(ati_page_map *page_map)
static
void
ati_free_page_map
(
ati_page_map
*
page_map
)
static
void
ati_free_page_map
(
ati_page_map
*
page_map
)
{
{
/*
* fredi - WARNING: added looking at the changes during
* 2.4.20. I dont know if it's needed though.
*/
#ifdef CONFIG_X86
unmap_page_from_agp
(
virt_to_page
(
page_map
->
real
));
unmap_page_from_agp
(
virt_to_page
(
page_map
->
real
));
#endif
iounmap
(
page_map
->
remapped
);
iounmap
(
page_map
->
remapped
);
ClearPageReserved
(
virt_to_page
(
page_map
->
real
));
ClearPageReserved
(
virt_to_page
(
page_map
->
real
));
free_page
((
unsigned
long
)
page_map
->
real
);
free_page
((
unsigned
long
)
page_map
->
real
);
...
@@ -251,7 +241,7 @@ static int ati_configure(void)
...
@@ -251,7 +241,7 @@ static int ati_configure(void)
#define GET_PAGE_DIR_IDX(addr) (GET_PAGE_DIR_OFF(addr) - \
#define GET_PAGE_DIR_IDX(addr) (GET_PAGE_DIR_OFF(addr) - \
GET_PAGE_DIR_OFF(agp_bridge->gart_bus_addr))
GET_PAGE_DIR_OFF(agp_bridge->gart_bus_addr))
#define GET_GATT_OFF(addr) ((addr & 0x003ff000) >> 12)
#define GET_GATT_OFF(addr) ((addr & 0x003ff000) >> 12)
#undef GET_GATT
(addr)
#undef GET_GATT
#define GET_GATT(addr) (ati_generic_private.gatt_pages[\
#define GET_GATT(addr) (ati_generic_private.gatt_pages[\
GET_PAGE_DIR_IDX(addr)]->remapped)
GET_PAGE_DIR_IDX(addr)]->remapped)
...
@@ -453,7 +443,7 @@ static int __init agp_ati_probe(struct pci_dev *pdev,
...
@@ -453,7 +443,7 @@ static int __init agp_ati_probe(struct pci_dev *pdev,
{
{
struct
agp_device_ids
*
devs
=
ali_agp_device_ids
;
struct
agp_device_ids
*
devs
=
ali_agp_device_ids
;
struct
agp_bridge_data
*
bridge
;
struct
agp_bridge_data
*
bridge
;
u8
hidden_1621_id
,
cap_ptr
;
u8
cap_ptr
;
int
j
;
int
j
;
cap_ptr
=
pci_find_capability
(
pdev
,
PCI_CAP_ID_AGP
);
cap_ptr
=
pci_find_capability
(
pdev
,
PCI_CAP_ID_AGP
);
...
...
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