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
d304c543
Commit
d304c543
authored
May 20, 2003
by
Dave Jones
Committed by
Dave Jones
May 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AGPGART] Add support for VIA K8T400M GART.
parent
7d40047a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
12 deletions
+24
-12
drivers/char/agp/amd-k8-agp.c
drivers/char/agp/amd-k8-agp.c
+23
-12
include/linux/pci_ids.h
include/linux/pci_ids.h
+1
-0
No files found.
drivers/char/agp/amd-k8-agp.c
View file @
d304c543
...
...
@@ -260,7 +260,9 @@ static int __init agp_amdk8_probe(struct pci_dev *pdev,
if
(
!
bridge
)
return
-
ENOMEM
;
/* Assume here we have an 8151. (Later this assumption will be fixed). */
if
(
pdev
->
vendor
==
PCI_VENDOR_ID_AMD
&&
pdev
->
device
==
PCI_DEVICE_ID_AMD_8151_0
)
{
pci_read_config_byte
(
pdev
,
PCI_REVISION_ID
,
&
rev_id
);
switch
(
rev_id
)
{
case
0x01
:
revstring
=
"A0"
;
...
...
@@ -285,6 +287,7 @@ static int __init agp_amdk8_probe(struct pci_dev *pdev,
bridge
->
major_version
=
3
;
bridge
->
minor_version
=
0
;
}
}
bridge
->
driver
=
&
amd_8151_driver
;
bridge
->
dev
=
pdev
;
...
...
@@ -330,6 +333,14 @@ static struct pci_device_id agp_amdk8_pci_table[] __initdata = {
.
subvendor
=
PCI_ANY_ID
,
.
subdevice
=
PCI_ANY_ID
,
},
{
.
class
=
(
PCI_CLASS_BRIDGE_HOST
<<
8
),
.
class_mask
=
~
0
,
.
vendor
=
PCI_VENDOR_ID_VIA
,
.
device
=
PCI_DEVICE_ID_VIA_K8T400M_0
,
.
subvendor
=
PCI_ANY_ID
,
.
subdevice
=
PCI_ANY_ID
,
},
{
}
};
...
...
include/linux/pci_ids.h
View file @
d304c543
...
...
@@ -1128,6 +1128,7 @@
#define PCI_DEVICE_ID_VIA_8754 0x3168
#define PCI_DEVICE_ID_VIA_8235 0x3177
#define PCI_DEVICE_ID_VIA_P4N333 0x3178
#define PCI_DEVICE_ID_VIA_K8T400M_0 0x3188
#define PCI_DEVICE_ID_VIA_8377_0 0x3189
#define PCI_DEVICE_ID_VIA_KM400 0x3205
#define PCI_DEVICE_ID_VIA_P4M400 0x3209
...
...
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