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
511be5fb
Commit
511be5fb
authored
Jan 13, 2003
by
Bjorn Helgaas
Committed by
Dave Jones
Jan 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AGP] use PCI_AGP_* constants
parent
28681d62
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
19 additions
and
17 deletions
+19
-17
drivers/char/agp/ali-agp.c
drivers/char/agp/ali-agp.c
+1
-1
drivers/char/agp/amd-k7-agp.c
drivers/char/agp/amd-k7-agp.c
+1
-1
drivers/char/agp/amd-k8-agp.c
drivers/char/agp/amd-k8-agp.c
+3
-3
drivers/char/agp/generic.c
drivers/char/agp/generic.c
+6
-4
drivers/char/agp/i7x05-agp.c
drivers/char/agp/i7x05-agp.c
+1
-1
drivers/char/agp/intel-agp.c
drivers/char/agp/intel-agp.c
+1
-1
drivers/char/agp/sis-agp.c
drivers/char/agp/sis-agp.c
+1
-1
drivers/char/agp/sworks-agp.c
drivers/char/agp/sworks-agp.c
+3
-3
drivers/char/agp/via-agp.c
drivers/char/agp/via-agp.c
+1
-1
drivers/char/agp/via-kt400.c
drivers/char/agp/via-kt400.c
+1
-1
No files found.
drivers/char/agp/ali-agp.c
View file @
511be5fb
...
@@ -350,7 +350,7 @@ static int __init agp_ali_probe (struct pci_dev *dev, const struct pci_device_id
...
@@ -350,7 +350,7 @@ static int __init agp_ali_probe (struct pci_dev *dev, const struct pci_device_id
agp_bridge
.
dev
=
dev
;
agp_bridge
.
dev
=
dev
;
agp_bridge
.
capndx
=
cap_ptr
;
agp_bridge
.
capndx
=
cap_ptr
;
/* Fill in the mode register */
/* Fill in the mode register */
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
4
,
&
agp_bridge
.
mode
);
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
PCI_AGP_STATUS
,
&
agp_bridge
.
mode
);
agp_register_driver
(
dev
);
agp_register_driver
(
dev
);
return
0
;
return
0
;
}
}
...
...
drivers/char/agp/amd-k7-agp.c
View file @
511be5fb
...
@@ -451,7 +451,7 @@ static int __init agp_amdk7_probe (struct pci_dev *dev, const struct pci_device_
...
@@ -451,7 +451,7 @@ static int __init agp_amdk7_probe (struct pci_dev *dev, const struct pci_device_
agp_bridge
.
dev
=
dev
;
agp_bridge
.
dev
=
dev
;
agp_bridge
.
capndx
=
cap_ptr
;
agp_bridge
.
capndx
=
cap_ptr
;
/* Fill in the mode register */
/* Fill in the mode register */
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
4
,
&
agp_bridge
.
mode
);
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
PCI_AGP_STATUS
,
&
agp_bridge
.
mode
);
agp_register_driver
(
dev
);
agp_register_driver
(
dev
);
return
0
;
return
0
;
}
}
...
...
drivers/char/agp/amd-k8-agp.c
View file @
511be5fb
...
@@ -368,12 +368,12 @@ static void agp_x86_64_agp_enable(u32 mode)
...
@@ -368,12 +368,12 @@ static void agp_x86_64_agp_enable(u32 mode)
}
}
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
4
,
&
command
);
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
PCI_AGP_STATUS
,
&
command
);
command
=
agp_collect_device_status
(
mode
,
command
);
command
=
agp_collect_device_status
(
mode
,
command
);
command
|=
0x100
;
command
|=
0x100
;
pci_write_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
8
,
command
);
pci_write_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
PCI_AGP_COMMAND
,
command
);
agp_device_command
(
command
,
1
);
agp_device_command
(
command
,
1
);
}
}
...
@@ -421,7 +421,7 @@ static int __init agp_amdk8_probe (struct pci_dev *dev, const struct pci_device_
...
@@ -421,7 +421,7 @@ static int __init agp_amdk8_probe (struct pci_dev *dev, const struct pci_device_
agp_bridge
.
capndx
=
cap_ptr
;
agp_bridge
.
capndx
=
cap_ptr
;
/* Fill in the mode register */
/* Fill in the mode register */
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
4
,
&
agp_bridge
.
mode
);
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
PCI_AGP_STATUS
,
&
agp_bridge
.
mode
);
amd_8151_setup
(
dev
);
amd_8151_setup
(
dev
);
agp_register_driver
(
dev
);
agp_register_driver
(
dev
);
return
0
;
return
0
;
...
...
drivers/char/agp/generic.c
View file @
511be5fb
...
@@ -329,7 +329,7 @@ u32 agp_collect_device_status(u32 mode, u32 command)
...
@@ -329,7 +329,7 @@ u32 agp_collect_device_status(u32 mode, u32 command)
* Ok, here we have a AGP device. Disable impossible
* Ok, here we have a AGP device. Disable impossible
* settings, and adjust the readqueue to the minimum.
* settings, and adjust the readqueue to the minimum.
*/
*/
pci_read_config_dword
(
device
,
agp
+
4
,
&
scratch
);
pci_read_config_dword
(
device
,
agp
+
PCI_AGP_STATUS
,
&
scratch
);
/* adjust RQ depth */
/* adjust RQ depth */
command
=
((
command
&
~
0xff000000
)
|
command
=
((
command
&
~
0xff000000
)
|
...
@@ -393,7 +393,7 @@ void agp_device_command(u32 command, int agp_v3)
...
@@ -393,7 +393,7 @@ void agp_device_command(u32 command, int agp_v3)
printk
(
KERN_INFO
PFX
"Putting AGP V%d device at %s into %dx mode
\n
"
,
printk
(
KERN_INFO
PFX
"Putting AGP V%d device at %s into %dx mode
\n
"
,
agp_v3
?
3
:
2
,
device
->
slot_name
,
mode
);
agp_v3
?
3
:
2
,
device
->
slot_name
,
mode
);
pci_write_config_dword
(
device
,
agp
+
8
,
command
);
pci_write_config_dword
(
device
,
agp
+
PCI_AGP_COMMAND
,
command
);
}
}
}
}
...
@@ -401,13 +401,15 @@ void agp_generic_agp_enable(u32 mode)
...
@@ -401,13 +401,15 @@ void agp_generic_agp_enable(u32 mode)
{
{
u32
command
;
u32
command
;
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
4
,
&
command
);
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
PCI_AGP_STATUS
,
&
command
);
command
=
agp_collect_device_status
(
mode
,
command
);
command
=
agp_collect_device_status
(
mode
,
command
);
command
|=
0x100
;
command
|=
0x100
;
pci_write_config_dword
(
agp_bridge
.
dev
,
pci_write_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
8
,
agp_bridge
.
capndx
+
PCI_AGP_COMMAND
,
command
);
command
);
agp_device_command
(
command
,
0
);
agp_device_command
(
command
,
0
);
...
...
drivers/char/agp/i7x05-agp.c
View file @
511be5fb
...
@@ -177,7 +177,7 @@ static int __init agp_i7x05_probe (struct pci_dev *dev, const struct pci_device_
...
@@ -177,7 +177,7 @@ static int __init agp_i7x05_probe (struct pci_dev *dev, const struct pci_device_
agp_bridge
.
dev
=
dev
;
agp_bridge
.
dev
=
dev
;
agp_bridge
.
capndx
=
cap_ptr
;
agp_bridge
.
capndx
=
cap_ptr
;
/* Fill in the mode register */
/* Fill in the mode register */
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
4
,
&
agp_bridge
.
mode
)
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
PCI_AGP_STATUS
,
&
agp_bridge
.
mode
)
agp_register_driver
(
dev
);
agp_register_driver
(
dev
);
return
0
;
return
0
;
}
}
...
...
drivers/char/agp/intel-agp.c
View file @
511be5fb
...
@@ -1423,7 +1423,7 @@ static int __init agp_find_supported_device(struct pci_dev *dev)
...
@@ -1423,7 +1423,7 @@ static int __init agp_find_supported_device(struct pci_dev *dev)
agp_bridge
.
capndx
=
cap_ptr
;
agp_bridge
.
capndx
=
cap_ptr
;
/* Fill in the mode register */
/* Fill in the mode register */
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
4
,
&
agp_bridge
.
mode
);
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
PCI_AGP_STATUS
,
&
agp_bridge
.
mode
);
/* probe for known chipsets */
/* probe for known chipsets */
return
agp_lookup_host_bridge
(
dev
);
return
agp_lookup_host_bridge
(
dev
);
...
...
drivers/char/agp/sis-agp.c
View file @
511be5fb
...
@@ -235,7 +235,7 @@ static int __init agp_sis_probe (struct pci_dev *dev, const struct pci_device_id
...
@@ -235,7 +235,7 @@ static int __init agp_sis_probe (struct pci_dev *dev, const struct pci_device_id
agp_bridge
.
dev
=
dev
;
agp_bridge
.
dev
=
dev
;
agp_bridge
.
capndx
=
cap_ptr
;
agp_bridge
.
capndx
=
cap_ptr
;
/* Fill in the mode register */
/* Fill in the mode register */
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
4
,
&
agp_bridge
.
mode
);
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
PCI_AGP_STATUS
,
&
agp_bridge
.
mode
);
agp_register_driver
(
dev
);
agp_register_driver
(
dev
);
return
0
;
return
0
;
}
}
...
...
drivers/char/agp/sworks-agp.c
View file @
511be5fb
...
@@ -272,7 +272,7 @@ static int serverworks_configure(void)
...
@@ -272,7 +272,7 @@ static int serverworks_configure(void)
/* Fill in the mode register */
/* Fill in the mode register */
pci_read_config_dword
(
serverworks_private
.
svrwrks_dev
,
pci_read_config_dword
(
serverworks_private
.
svrwrks_dev
,
agp_bridge
.
capndx
+
4
,
&
agp_bridge
.
mode
);
agp_bridge
.
capndx
+
PCI_AGP_STATUS
,
&
agp_bridge
.
mode
);
pci_read_config_byte
(
agp_bridge
.
dev
,
SVWRKS_CACHING
,
&
enable_reg
);
pci_read_config_byte
(
agp_bridge
.
dev
,
SVWRKS_CACHING
,
&
enable_reg
);
enable_reg
&=
~
0x3
;
enable_reg
&=
~
0x3
;
...
@@ -416,7 +416,7 @@ static void serverworks_agp_enable(u32 mode)
...
@@ -416,7 +416,7 @@ static void serverworks_agp_enable(u32 mode)
u32
command
;
u32
command
;
pci_read_config_dword
(
serverworks_private
.
svrwrks_dev
,
pci_read_config_dword
(
serverworks_private
.
svrwrks_dev
,
agp_bridge
.
capndx
+
4
,
agp_bridge
.
capndx
+
PCI_AGP_STATUS
,
&
command
);
&
command
);
command
=
agp_collect_device_status
(
mode
,
command
);
command
=
agp_collect_device_status
(
mode
,
command
);
...
@@ -427,7 +427,7 @@ static void serverworks_agp_enable(u32 mode)
...
@@ -427,7 +427,7 @@ static void serverworks_agp_enable(u32 mode)
command
|=
0x100
;
command
|=
0x100
;
pci_write_config_dword
(
serverworks_private
.
svrwrks_dev
,
pci_write_config_dword
(
serverworks_private
.
svrwrks_dev
,
agp_bridge
.
capndx
+
8
,
agp_bridge
.
capndx
+
PCI_AGP_COMMAND
,
command
);
command
);
agp_device_command
(
command
,
0
);
agp_device_command
(
command
,
0
);
...
...
drivers/char/agp/via-agp.c
View file @
511be5fb
...
@@ -258,7 +258,7 @@ static int __init agp_via_probe (struct pci_dev *dev, const struct pci_device_id
...
@@ -258,7 +258,7 @@ static int __init agp_via_probe (struct pci_dev *dev, const struct pci_device_id
agp_bridge
.
dev
=
dev
;
agp_bridge
.
dev
=
dev
;
agp_bridge
.
capndx
=
cap_ptr
;
agp_bridge
.
capndx
=
cap_ptr
;
/* Fill in the mode register */
/* Fill in the mode register */
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
4
,
&
agp_bridge
.
mode
);
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
PCI_AGP_STATUS
,
&
agp_bridge
.
mode
);
agp_register_driver
(
dev
);
agp_register_driver
(
dev
);
return
0
;
return
0
;
}
}
...
...
drivers/char/agp/via-kt400.c
View file @
511be5fb
...
@@ -147,7 +147,7 @@ static int __init agp_via_probe (struct pci_dev *dev, const struct pci_device_id
...
@@ -147,7 +147,7 @@ static int __init agp_via_probe (struct pci_dev *dev, const struct pci_device_id
agp_bridge
.
cant_use_aperture
=
0
;
agp_bridge
.
cant_use_aperture
=
0
;
/* Fill in the mode register */
/* Fill in the mode register */
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
4
,
&
agp_bridge
.
mode
);
pci_read_config_dword
(
agp_bridge
.
dev
,
agp_bridge
.
capndx
+
PCI_AGP_STATUS
,
&
agp_bridge
.
mode
);
agp_register_driver
(
dev
);
agp_register_driver
(
dev
);
return
0
;
return
0
;
...
...
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