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
2b5c2e84
Commit
2b5c2e84
authored
Dec 12, 2002
by
David Mosberger
Committed by
Dave Jones
Dec 12, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AGPGART fixes for HP ZX1 and Intel I460
parent
39ea150b
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
281 additions
and
300 deletions
+281
-300
drivers/char/agp/hp-agp.c
drivers/char/agp/hp-agp.c
+2
-11
drivers/char/agp/i460-agp.c
drivers/char/agp/i460-agp.c
+279
-289
No files found.
drivers/char/agp/hp-agp.c
View file @
2b5c2e84
...
...
@@ -18,8 +18,7 @@
#define HP_ZX1_SBA_IOMMU_COOKIE 0x0000badbadc0ffeeUL
#define HP_ZX1_PDIR_VALID_BIT 0x8000000000000000UL
#define HP_ZX1_IOVA_TO_PDIR(va) ((va - hp_private.iova_base) >> \
hp_private.io_tlb_shift)
#define HP_ZX1_IOVA_TO_PDIR(va) ((va - hp_private.iova_base) >> hp_private.io_tlb_shift)
static
struct
aper_size_info_fixed
hp_zx1_sizes
[]
=
{
...
...
@@ -330,12 +329,7 @@ static unsigned long hp_zx1_mask_memory(unsigned long addr, int type)
return
HP_ZX1_PDIR_VALID_BIT
|
addr
;
}
static
unsigned
long
hp_zx1_unmask_memory
(
unsigned
long
addr
)
{
return
addr
&
~
(
HP_ZX1_PDIR_VALID_BIT
);
}
int
__init
hp_zx1_setup
(
struct
pci_dev
*
pdev
)
int
__init
hp_zx1_setup
(
struct
pci_dev
*
pdev
__attribute__
((
unused
)))
{
agp_bridge
.
masks
=
hp_zx1_masks
;
agp_bridge
.
num_of_masks
=
1
;
...
...
@@ -347,7 +341,6 @@ int __init hp_zx1_setup (struct pci_dev *pdev)
agp_bridge
.
cleanup
=
hp_zx1_cleanup
;
agp_bridge
.
tlb_flush
=
hp_zx1_tlbflush
;
agp_bridge
.
mask_memory
=
hp_zx1_mask_memory
;
agp_bridge
.
unmask_memory
=
hp_zx1_unmask_memory
;
agp_bridge
.
agp_enable
=
agp_generic_agp_enable
;
agp_bridge
.
cache_flush
=
global_cache_flush
;
agp_bridge
.
create_gatt_table
=
hp_zx1_create_gatt_table
;
...
...
@@ -375,8 +368,6 @@ static int __init agp_find_supported_device(struct pci_dev *dev)
return
hp_zx1_setup
(
dev
);
}
return
-
ENODEV
;
}
static
int
agp_hp_probe
(
struct
pci_dev
*
dev
,
const
struct
pci_device_id
*
ent
)
{
...
...
drivers/char/agp/i460-agp.c
View file @
2b5c2e84
This diff is collapsed.
Click to expand it.
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