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
f6b266eb
Commit
f6b266eb
authored
Aug 29, 2003
by
Dave Jones
Committed by
Dave Jones
Aug 29, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AGPGART] move NVIDIA registers to agp.h
parent
5906487e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
21 deletions
+20
-21
drivers/char/agp/agp.h
drivers/char/agp/agp.h
+20
-10
drivers/char/agp/nvidia-agp.c
drivers/char/agp/nvidia-agp.c
+0
-11
No files found.
drivers/char/agp/agp.h
View file @
f6b266eb
...
...
@@ -170,7 +170,7 @@ struct agp_bridge_data {
/* Chipset independant registers (from AGP Spec) */
#define AGP_APBASE 0x10
/*
intel register
*/
/*
Intel registers
*/
#define INTEL_APSIZE 0xb4
#define INTEL_ATTBASE 0xb8
#define INTEL_AGPCTRL 0xb0
...
...
@@ -185,7 +185,7 @@ struct agp_bridge_data {
#define INTEL_I460_GATT_VALID (1UL << 24)
#define INTEL_I460_GATT_COHERENT (1UL << 25)
/*
i
ntel i830 registers */
/*
I
ntel i830 registers */
#define I830_GMCH_CTRL 0x52
#define I830_GMCH_ENABLED 0x4
#define I830_GMCH_MEM_MASK 0x1
...
...
@@ -219,31 +219,31 @@ struct agp_bridge_data {
#define I852_GME 0x2
#define I852_GM 0x5
/*
i
ntel 815 register */
/*
I
ntel 815 register */
#define INTEL_815_APCONT 0x51
#define INTEL_815_ATTBASE_MASK ~0x1FFFFFFF
/*
i
ntel i820 registers */
/*
I
ntel i820 registers */
#define INTEL_I820_RDCR 0x51
#define INTEL_I820_ERRSTS 0xc8
/*
i
ntel i840 registers */
/*
I
ntel i840 registers */
#define INTEL_I840_MCHCFG 0x50
#define INTEL_I840_ERRSTS 0xc8
/*
i
ntel i845 registers */
/*
I
ntel i845 registers */
#define INTEL_I845_AGPM 0x51
#define INTEL_I845_ERRSTS 0xc8
/*
i
ntel i850 registers */
/*
I
ntel i850 registers */
#define INTEL_I850_MCHCFG 0x50
#define INTEL_I850_ERRSTS 0xc8
/*
i
ntel i860 registers */
/*
I
ntel i860 registers */
#define INTEL_I860_MCHCFG 0x50
#define INTEL_I860_ERRSTS 0xc8
/*
i
ntel i810 registers */
/*
I
ntel i810 registers */
#define I810_GMADDR 0x10
#define I810_MMADDR 0x14
#define I810_PTE_BASE 0x10000
...
...
@@ -334,7 +334,6 @@ struct agp_bridge_data {
#define ATI_GART_CACHE_CNTRL 0x0c
#define ATI_GART_CACHE_ENTRY_CNTRL 0x10
/* Serverworks Registers */
#define SVWRKS_APSIZE 0x10
#define SVWRKS_SIZE_MASK 0xfe000000
...
...
@@ -363,6 +362,17 @@ struct agp_bridge_data {
#define HP_ZX1_PDIR_BASE 0x320
#define HP_ZX1_CACHE_FLUSH 0x428
/* NVIDIA registers */
#define NVIDIA_0_APSIZE 0x80
#define NVIDIA_1_WBC 0xf0
#define NVIDIA_2_GARTCTRL 0xd0
#define NVIDIA_2_APBASE 0xd8
#define NVIDIA_2_APLIMIT 0xdc
#define NVIDIA_2_ATTBASE(i) (0xe0 + (i) * 4)
#define NVIDIA_3_APBASE 0x50
#define NVIDIA_3_APLIMIT 0x54
struct
agp_device_ids
{
unsigned
short
device_id
;
/* first, to make table easier to read */
enum
chipset_type
chipset
;
...
...
drivers/char/agp/nvidia-agp.c
View file @
f6b266eb
...
...
@@ -13,17 +13,6 @@
#include <linux/mm.h>
#include "agp.h"
/* registers */
#define NVIDIA_0_APSIZE 0x80
#define NVIDIA_1_WBC 0xf0
#define NVIDIA_2_GARTCTRL 0xd0
#define NVIDIA_2_APBASE 0xd8
#define NVIDIA_2_APLIMIT 0xdc
#define NVIDIA_2_ATTBASE(i) (0xe0 + (i) * 4)
#define NVIDIA_3_APBASE 0x50
#define NVIDIA_3_APLIMIT 0x54
static
struct
_nvidia_private
{
struct
pci_dev
*
dev_1
;
struct
pci_dev
*
dev_2
;
...
...
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