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
nexedi
linux
Commits
47efb401
Commit
47efb401
authored
Feb 10, 2003
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AGPGART] Handle the "KT400 in disguise as a KT266" case.
parent
ed4c75a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
drivers/char/agp/via-agp.c
drivers/char/agp/via-agp.c
+18
-0
No files found.
drivers/char/agp/via-agp.c
View file @
47efb401
...
@@ -96,6 +96,24 @@ static struct gatt_mask via_generic_masks[] =
...
@@ -96,6 +96,24 @@ 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
)
{
{
u8
reg
;
/* Garg, there are KT400s with KT266 IDs. */
if
(
pdev
->
device
==
PCI_DEVICE_ID_VIA_8367_0
)
{
/* Is there a KT400 subsystem ? */
if
(
pdev
->
subsystem_device
==
PCI_DEVICE_ID_VIA_8377_0
)
{
pci_read_config_byte
(
pdev
,
VIA_AGPSEL
,
&
reg
);
/* Check AGP compatability mode. */
if
((
reg
&
(
1
<<
1
))
==
0
)
{
printk
(
"KT400 in AGP3.0 mode. Use via-kt400 driver
\n
"
);
return
-
ENODEV
;
}
printk
(
KERN_INFO
PFX
"Found KT400 in disguise as a KT266.
\n
"
);
}
}
agp_bridge
.
masks
=
via_generic_masks
;
agp_bridge
.
masks
=
via_generic_masks
;
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
;
...
...
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