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
90fcd610
Commit
90fcd610
authored
Jan 19, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linux-dj.bkbits.net/agpgart
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
2594cc27
c9fa3e71
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
40 deletions
+27
-40
drivers/char/agp/Kconfig
drivers/char/agp/Kconfig
+2
-1
drivers/char/agp/backend.c
drivers/char/agp/backend.c
+0
-15
drivers/char/agp/intel-agp.c
drivers/char/agp/intel-agp.c
+20
-4
drivers/char/agp/intel-mch-agp.c
drivers/char/agp/intel-mch-agp.c
+3
-2
include/linux/agp_backend.h
include/linux/agp_backend.h
+0
-18
include/linux/pci_ids.h
include/linux/pci_ids.h
+2
-0
No files found.
drivers/char/agp/Kconfig
View file @
90fcd610
config AGP
tristate "/dev/agpgart (AGP Support)" if !GART_IOMMU && !M68K && !ARM
tristate "/dev/agpgart (AGP Support)" if !GART_IOMMU
depends on ALPHA || IA64 || PPC32 || X86
default y if GART_IOMMU
---help---
AGP (Accelerated Graphics Port) is a bus system mainly used to
...
...
drivers/char/agp/backend.c
View file @
90fcd610
...
...
@@ -214,17 +214,6 @@ static void agp_backend_cleanup(struct agp_bridge_data *bridge)
phys_to_virt
(
bridge
->
scratch_page_real
));
}
static
const
drm_agp_t
drm_agp
=
{
&
agp_free_memory
,
&
agp_allocate_memory
,
&
agp_bind_memory
,
&
agp_unbind_memory
,
&
agp_enable
,
&
agp_backend_acquire
,
&
agp_backend_release
,
&
agp_copy_info
};
/* XXX Kludge alert: agpgart isn't ready for multiple bridges yet */
struct
agp_bridge_data
*
agp_alloc_bridge
(
void
)
{
...
...
@@ -277,9 +266,6 @@ int agp_add_bridge(struct agp_bridge_data *bridge)
goto
frontend_err
;
}
/* FIXME: What to do with this? */
inter_module_register
(
"drm_agp"
,
THIS_MODULE
,
&
drm_agp
);
agp_count
++
;
return
0
;
...
...
@@ -298,7 +284,6 @@ void agp_remove_bridge(struct agp_bridge_data *bridge)
bridge
->
type
=
NOT_SUPPORTED
;
agp_frontend_cleanup
();
agp_backend_cleanup
(
bridge
);
inter_module_unregister
(
"drm_agp"
);
agp_count
--
;
module_put
(
bridge
->
driver
->
owner
);
}
...
...
drivers/char/agp/intel-agp.c
View file @
90fcd610
...
...
@@ -6,7 +6,7 @@
* Intel(R) 855GM/852GM and 865G support added by David Dawes
* <dawes@tungstengraphics.com>.
*
* Intel(R) 915G support added by Alan Hourihane
* Intel(R) 915G
/915GM
support added by Alan Hourihane
* <alanh@tungstengraphics.com>.
*/
...
...
@@ -415,14 +415,16 @@ static void intel_i830_init_gtt_entries(void)
break
;
case
I915_GMCH_GMS_STOLEN_48M
:
/* Check it's really I915G */
if
(
agp_bridge
->
dev
->
device
==
PCI_DEVICE_ID_INTEL_82915G_HB
)
if
(
agp_bridge
->
dev
->
device
==
PCI_DEVICE_ID_INTEL_82915G_HB
||
agp_bridge
->
dev
->
device
==
PCI_DEVICE_ID_INTEL_82915G_HB
)
gtt_entries
=
MB
(
48
)
-
KB
(
size
);
else
gtt_entries
=
0
;
break
;
case
I915_GMCH_GMS_STOLEN_64M
:
/* Check it's really I915G */
if
(
agp_bridge
->
dev
->
device
==
PCI_DEVICE_ID_INTEL_82915G_HB
)
if
(
agp_bridge
->
dev
->
device
==
PCI_DEVICE_ID_INTEL_82915G_HB
||
agp_bridge
->
dev
->
device
==
PCI_DEVICE_ID_INTEL_82915G_HB
)
gtt_entries
=
MB
(
64
)
-
KB
(
size
);
else
gtt_entries
=
0
;
...
...
@@ -1648,6 +1650,14 @@ static int __devinit agp_intel_probe(struct pci_dev *pdev,
}
name
=
"915G"
;
break
;
case
PCI_DEVICE_ID_INTEL_82915GM_HB
:
if
(
find_i830
(
PCI_DEVICE_ID_INTEL_82915GM_IG
))
{
bridge
->
driver
=
&
intel_915_driver
;
}
else
{
bridge
->
driver
=
&
intel_845_driver
;
}
name
=
"915GM"
;
break
;
case
PCI_DEVICE_ID_INTEL_7505_0
:
bridge
->
driver
=
&
intel_7505_driver
;
name
=
"E7505"
;
...
...
@@ -1720,8 +1730,13 @@ static void __devexit agp_intel_remove(struct pci_dev *pdev)
{
struct
agp_bridge_data
*
bridge
=
pci_get_drvdata
(
pdev
);
pci_dev_put
(
pdev
);
agp_remove_bridge
(
bridge
);
if
(
intel_i810_private
.
i810_dev
)
pci_dev_put
(
intel_i810_private
.
i810_dev
);
if
(
intel_i830_private
.
i830_dev
)
pci_dev_put
(
intel_i830_private
.
i830_dev
);
agp_put_bridge
(
bridge
);
}
...
...
@@ -1775,6 +1790,7 @@ static struct pci_device_id agp_intel_pci_table[] = {
ID
(
PCI_DEVICE_ID_INTEL_7505_0
),
ID
(
PCI_DEVICE_ID_INTEL_7205_0
),
ID
(
PCI_DEVICE_ID_INTEL_82915G_HB
),
ID
(
PCI_DEVICE_ID_INTEL_82915GM_HB
),
{
}
};
...
...
drivers/char/agp/intel-mch-agp.c
View file @
90fcd610
...
...
@@ -569,15 +569,16 @@ static void __devexit agp_intelmch_remove(struct pci_dev *pdev)
{
struct
agp_bridge_data
*
bridge
=
pci_get_drvdata
(
pdev
);
pci_dev_put
(
pdev
);
agp_remove_bridge
(
bridge
);
if
(
intel_i830_private
.
i830_dev
)
pci_dev_put
(
intel_i830_private
.
i830_dev
);
agp_put_bridge
(
bridge
);
}
static
int
agp_intelmch_resume
(
struct
pci_dev
*
pdev
)
{
struct
agp_bridge_data
*
bridge
=
pci_get_drvdata
(
pdev
);
pci_restore_state
(
pdev
);
if
(
bridge
->
driver
==
&
intel_845_driver
)
...
...
include/linux/agp_backend.h
View file @
90fcd610
...
...
@@ -96,23 +96,5 @@ extern void agp_enable(u32);
extern
int
agp_backend_acquire
(
void
);
extern
void
agp_backend_release
(
void
);
/*
* Interface between drm and agp code. When agp initializes, it makes
* the below structure available via inter_module_register(), drm might
* use it. Keith Owens <kaos@ocs.com.au> 28 Oct 2000.
*/
typedef
struct
{
void
(
*
free_memory
)(
struct
agp_memory
*
);
struct
agp_memory
*
(
*
allocate_memory
)(
size_t
,
u32
);
int
(
*
bind_memory
)(
struct
agp_memory
*
,
off_t
);
int
(
*
unbind_memory
)(
struct
agp_memory
*
);
void
(
*
enable
)(
u32
);
int
(
*
acquire
)(
void
);
void
(
*
release
)(
void
);
int
(
*
copy_info
)(
struct
agp_kern_info
*
);
}
drm_agp_t
;
extern
const
drm_agp_t
*
drm_agp_p
;
#endif
/* __KERNEL__ */
#endif
/* _AGP_BACKEND_H */
include/linux/pci_ids.h
View file @
90fcd610
...
...
@@ -2226,6 +2226,8 @@
#define PCI_DEVICE_ID_INTEL_82875_IG 0x257b
#define PCI_DEVICE_ID_INTEL_82915G_HB 0x2580
#define PCI_DEVICE_ID_INTEL_82915G_IG 0x2582
#define PCI_DEVICE_ID_INTEL_82915GM_HB 0x2590
#define PCI_DEVICE_ID_INTEL_82915GM_IG 0x2592
#define PCI_DEVICE_ID_INTEL_ICH6_0 0x2640
#define PCI_DEVICE_ID_INTEL_ICH6_1 0x2641
#define PCI_DEVICE_ID_INTEL_ICH6_2 0x2642
...
...
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