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
d77ee934
Commit
d77ee934
authored
Sep 10, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agp: annotate intel agp PCI memory accesses
parent
ec2cc929
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
drivers/char/agp/agp.h
drivers/char/agp/agp.h
+1
-1
drivers/char/agp/intel-agp.c
drivers/char/agp/intel-agp.c
+11
-11
No files found.
drivers/char/agp/agp.h
View file @
d77ee934
...
@@ -123,7 +123,7 @@ struct agp_bridge_data {
...
@@ -123,7 +123,7 @@ struct agp_bridge_data {
void
*
current_size
;
void
*
current_size
;
void
*
dev_private_data
;
void
*
dev_private_data
;
struct
pci_dev
*
dev
;
struct
pci_dev
*
dev
;
u32
*
gatt_table
;
u32
__iomem
*
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
scratch_page_real
;
...
...
drivers/char/agp/intel-agp.c
View file @
d77ee934
...
@@ -69,7 +69,7 @@ static struct gatt_mask intel_i810_masks[] =
...
@@ -69,7 +69,7 @@ static struct gatt_mask intel_i810_masks[] =
static
struct
_intel_i810_private
{
static
struct
_intel_i810_private
{
struct
pci_dev
*
i810_dev
;
/* device one */
struct
pci_dev
*
i810_dev
;
/* device one */
volatile
u8
*
registers
;
volatile
u8
__iomem
*
registers
;
int
num_dcache_entries
;
int
num_dcache_entries
;
}
intel_i810_private
;
}
intel_i810_private
;
...
@@ -111,7 +111,7 @@ static int intel_i810_configure(void)
...
@@ -111,7 +111,7 @@ static int intel_i810_configure(void)
pci_read_config_dword
(
intel_i810_private
.
i810_dev
,
I810_MMADDR
,
&
temp
);
pci_read_config_dword
(
intel_i810_private
.
i810_dev
,
I810_MMADDR
,
&
temp
);
temp
&=
0xfff80000
;
temp
&=
0xfff80000
;
intel_i810_private
.
registers
=
(
volatile
u8
*
)
ioremap
(
temp
,
128
*
4096
);
intel_i810_private
.
registers
=
ioremap
(
temp
,
128
*
4096
);
if
(
!
intel_i810_private
.
registers
)
{
if
(
!
intel_i810_private
.
registers
)
{
printk
(
KERN_ERR
PFX
"Unable to remap memory.
\n
"
);
printk
(
KERN_ERR
PFX
"Unable to remap memory.
\n
"
);
return
-
ENOMEM
;
return
-
ENOMEM
;
...
@@ -142,7 +142,7 @@ static int intel_i810_configure(void)
...
@@ -142,7 +142,7 @@ static int intel_i810_configure(void)
static
void
intel_i810_cleanup
(
void
)
static
void
intel_i810_cleanup
(
void
)
{
{
OUTREG32
(
intel_i810_private
.
registers
,
I810_PGETBL_CTL
,
0
);
OUTREG32
(
intel_i810_private
.
registers
,
I810_PGETBL_CTL
,
0
);
iounmap
(
(
void
*
)
intel_i810_private
.
registers
);
iounmap
(
intel_i810_private
.
registers
);
}
}
static
void
intel_i810_tlbflush
(
struct
agp_memory
*
mem
)
static
void
intel_i810_tlbflush
(
struct
agp_memory
*
mem
)
...
@@ -353,8 +353,8 @@ static struct aper_size_info_fixed intel_i830_sizes[] =
...
@@ -353,8 +353,8 @@ static struct aper_size_info_fixed intel_i830_sizes[] =
static
struct
_intel_i830_private
{
static
struct
_intel_i830_private
{
struct
pci_dev
*
i830_dev
;
/* device one */
struct
pci_dev
*
i830_dev
;
/* device one */
volatile
u8
*
registers
;
volatile
u8
__iomem
*
registers
;
volatile
u32
*
gtt
;
/* I915G */
volatile
u32
__iomem
*
gtt
;
/* I915G */
int
gtt_entries
;
int
gtt_entries
;
}
intel_i830_private
;
}
intel_i830_private
;
...
@@ -461,7 +461,7 @@ static int intel_i830_create_gatt_table(void)
...
@@ -461,7 +461,7 @@ static int intel_i830_create_gatt_table(void)
pci_read_config_dword
(
intel_i830_private
.
i830_dev
,
I810_MMADDR
,
&
temp
);
pci_read_config_dword
(
intel_i830_private
.
i830_dev
,
I810_MMADDR
,
&
temp
);
temp
&=
0xfff80000
;
temp
&=
0xfff80000
;
intel_i830_private
.
registers
=
(
volatile
u8
*
)
ioremap
(
temp
,
128
*
4096
);
intel_i830_private
.
registers
=
ioremap
(
temp
,
128
*
4096
);
if
(
!
intel_i830_private
.
registers
)
if
(
!
intel_i830_private
.
registers
)
return
(
-
ENOMEM
);
return
(
-
ENOMEM
);
...
@@ -544,7 +544,7 @@ static int intel_i830_configure(void)
...
@@ -544,7 +544,7 @@ static int intel_i830_configure(void)
static
void
intel_i830_cleanup
(
void
)
static
void
intel_i830_cleanup
(
void
)
{
{
iounmap
(
(
void
*
)
intel_i830_private
.
registers
);
iounmap
(
intel_i830_private
.
registers
);
}
}
static
int
intel_i830_insert_entries
(
struct
agp_memory
*
mem
,
off_t
pg_start
,
static
int
intel_i830_insert_entries
(
struct
agp_memory
*
mem
,
off_t
pg_start
,
...
@@ -649,8 +649,8 @@ static int intel_i915_configure(void)
...
@@ -649,8 +649,8 @@ static int intel_i915_configure(void)
static
void
intel_i915_cleanup
(
void
)
static
void
intel_i915_cleanup
(
void
)
{
{
iounmap
(
(
void
*
)
intel_i830_private
.
gtt
);
iounmap
(
intel_i830_private
.
gtt
);
iounmap
(
(
void
*
)
intel_i830_private
.
registers
);
iounmap
(
intel_i830_private
.
registers
);
}
}
static
int
intel_i915_insert_entries
(
struct
agp_memory
*
mem
,
off_t
pg_start
,
static
int
intel_i915_insert_entries
(
struct
agp_memory
*
mem
,
off_t
pg_start
,
...
@@ -751,13 +751,13 @@ static int intel_i915_create_gatt_table(void)
...
@@ -751,13 +751,13 @@ static int intel_i915_create_gatt_table(void)
pci_read_config_dword
(
intel_i830_private
.
i830_dev
,
I915_MMADDR
,
&
temp
);
pci_read_config_dword
(
intel_i830_private
.
i830_dev
,
I915_MMADDR
,
&
temp
);
pci_read_config_dword
(
intel_i830_private
.
i830_dev
,
I915_PTEADDR
,
&
temp2
);
pci_read_config_dword
(
intel_i830_private
.
i830_dev
,
I915_PTEADDR
,
&
temp2
);
intel_i830_private
.
gtt
=
(
volatile
u32
*
)
ioremap
(
temp2
,
256
*
1024
);
intel_i830_private
.
gtt
=
ioremap
(
temp2
,
256
*
1024
);
if
(
!
intel_i830_private
.
gtt
)
if
(
!
intel_i830_private
.
gtt
)
return
(
-
ENOMEM
);
return
(
-
ENOMEM
);
temp
&=
0xfff80000
;
temp
&=
0xfff80000
;
intel_i830_private
.
registers
=
(
volatile
u8
*
)
ioremap
(
temp
,
128
*
4096
);
intel_i830_private
.
registers
=
ioremap
(
temp
,
128
*
4096
);
if
(
!
intel_i830_private
.
registers
)
if
(
!
intel_i830_private
.
registers
)
return
(
-
ENOMEM
);
return
(
-
ENOMEM
);
...
...
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