aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/agp
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2010-09-11 17:48:25 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2010-09-21 06:36:52 -0400
commit450f2b3d51025a1749b694ee13f0e4e23ed58750 (patch)
tree8cd3a1920a1bf813d52a7458922d96bd40060f5d /drivers/char/agp
parentfefaa70f0c7fa406492039e35b69b83fc13e163a (diff)
intel-gtt: generic (insert|remove)_entries for g33/i965
Like for the i915. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/char/agp')
-rw-r--r--drivers/char/agp/intel-gtt.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-gtt.c
index f05c3648017d..dc06b23c1431 100644
--- a/drivers/char/agp/intel-gtt.c
+++ b/drivers/char/agp/intel-gtt.c
@@ -1536,8 +1536,8 @@ static const struct agp_bridge_driver intel_i965_driver = {
1536 .cache_flush = global_cache_flush, 1536 .cache_flush = global_cache_flush,
1537 .create_gatt_table = intel_fake_agp_create_gatt_table, 1537 .create_gatt_table = intel_fake_agp_create_gatt_table,
1538 .free_gatt_table = intel_fake_agp_free_gatt_table, 1538 .free_gatt_table = intel_fake_agp_free_gatt_table,
1539 .insert_memory = intel_i915_insert_entries, 1539 .insert_memory = intel_fake_agp_insert_entries,
1540 .remove_memory = intel_i915_remove_entries, 1540 .remove_memory = intel_fake_agp_remove_entries,
1541 .alloc_by_type = intel_fake_agp_alloc_by_type, 1541 .alloc_by_type = intel_fake_agp_alloc_by_type,
1542 .free_by_type = intel_i810_free_by_type, 1542 .free_by_type = intel_i810_free_by_type,
1543 .agp_alloc_page = agp_generic_alloc_page, 1543 .agp_alloc_page = agp_generic_alloc_page,
@@ -1546,10 +1546,6 @@ static const struct agp_bridge_driver intel_i965_driver = {
1546 .agp_destroy_pages = agp_generic_destroy_pages, 1546 .agp_destroy_pages = agp_generic_destroy_pages,
1547 .agp_type_to_mask_type = intel_i830_type_to_mask_type, 1547 .agp_type_to_mask_type = intel_i830_type_to_mask_type,
1548 .chipset_flush = intel_i915_chipset_flush, 1548 .chipset_flush = intel_i915_chipset_flush,
1549#if USE_PCI_DMA_API
1550 .agp_map_memory = intel_agp_map_memory,
1551 .agp_unmap_memory = intel_agp_unmap_memory,
1552#endif
1553}; 1549};
1554 1550
1555static const struct agp_bridge_driver intel_gen6_driver = { 1551static const struct agp_bridge_driver intel_gen6_driver = {
@@ -1596,8 +1592,8 @@ static const struct agp_bridge_driver intel_g33_driver = {
1596 .cache_flush = global_cache_flush, 1592 .cache_flush = global_cache_flush,
1597 .create_gatt_table = intel_fake_agp_create_gatt_table, 1593 .create_gatt_table = intel_fake_agp_create_gatt_table,
1598 .free_gatt_table = intel_fake_agp_free_gatt_table, 1594 .free_gatt_table = intel_fake_agp_free_gatt_table,
1599 .insert_memory = intel_i915_insert_entries, 1595 .insert_memory = intel_fake_agp_insert_entries,
1600 .remove_memory = intel_i915_remove_entries, 1596 .remove_memory = intel_fake_agp_remove_entries,
1601 .alloc_by_type = intel_fake_agp_alloc_by_type, 1597 .alloc_by_type = intel_fake_agp_alloc_by_type,
1602 .free_by_type = intel_i810_free_by_type, 1598 .free_by_type = intel_i810_free_by_type,
1603 .agp_alloc_page = agp_generic_alloc_page, 1599 .agp_alloc_page = agp_generic_alloc_page,
@@ -1606,10 +1602,6 @@ static const struct agp_bridge_driver intel_g33_driver = {
1606 .agp_destroy_pages = agp_generic_destroy_pages, 1602 .agp_destroy_pages = agp_generic_destroy_pages,
1607 .agp_type_to_mask_type = intel_i830_type_to_mask_type, 1603 .agp_type_to_mask_type = intel_i830_type_to_mask_type,
1608 .chipset_flush = intel_i915_chipset_flush, 1604 .chipset_flush = intel_i915_chipset_flush,
1609#if USE_PCI_DMA_API
1610 .agp_map_memory = intel_agp_map_memory,
1611 .agp_unmap_memory = intel_agp_unmap_memory,
1612#endif
1613}; 1605};
1614 1606
1615static const struct intel_gtt_driver i8xx_gtt_driver = { 1607static const struct intel_gtt_driver i8xx_gtt_driver = {
@@ -1630,28 +1622,33 @@ static const struct intel_gtt_driver g33_gtt_driver = {
1630 .is_g33 = 1, 1622 .is_g33 = 1,
1631 .setup = i9xx_setup, 1623 .setup = i9xx_setup,
1632 .write_entry = i965_write_entry, 1624 .write_entry = i965_write_entry,
1625 .check_flags = i830_check_flags,
1633}; 1626};
1634static const struct intel_gtt_driver pineview_gtt_driver = { 1627static const struct intel_gtt_driver pineview_gtt_driver = {
1635 .gen = 3, 1628 .gen = 3,
1636 .is_pineview = 1, .is_g33 = 1, 1629 .is_pineview = 1, .is_g33 = 1,
1637 .setup = i9xx_setup, 1630 .setup = i9xx_setup,
1638 .write_entry = i965_write_entry, 1631 .write_entry = i965_write_entry,
1632 .check_flags = i830_check_flags,
1639}; 1633};
1640static const struct intel_gtt_driver i965_gtt_driver = { 1634static const struct intel_gtt_driver i965_gtt_driver = {
1641 .gen = 4, 1635 .gen = 4,
1642 .setup = i9xx_setup, 1636 .setup = i9xx_setup,
1643 .write_entry = i965_write_entry, 1637 .write_entry = i965_write_entry,
1638 .check_flags = i830_check_flags,
1644}; 1639};
1645static const struct intel_gtt_driver g4x_gtt_driver = { 1640static const struct intel_gtt_driver g4x_gtt_driver = {
1646 .gen = 5, 1641 .gen = 5,
1647 .setup = i9xx_setup, 1642 .setup = i9xx_setup,
1648 .write_entry = i965_write_entry, 1643 .write_entry = i965_write_entry,
1644 .check_flags = i830_check_flags,
1649}; 1645};
1650static const struct intel_gtt_driver ironlake_gtt_driver = { 1646static const struct intel_gtt_driver ironlake_gtt_driver = {
1651 .gen = 5, 1647 .gen = 5,
1652 .is_ironlake = 1, 1648 .is_ironlake = 1,
1653 .setup = i9xx_setup, 1649 .setup = i9xx_setup,
1654 .write_entry = i965_write_entry, 1650 .write_entry = i965_write_entry,
1651 .check_flags = i830_check_flags,
1655}; 1652};
1656static const struct intel_gtt_driver sandybridge_gtt_driver = { 1653static const struct intel_gtt_driver sandybridge_gtt_driver = {
1657 .gen = 6, 1654 .gen = 6,