aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2010-09-09 12:11:41 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2010-09-21 06:35:58 -0400
commitd0b6dc4b930e3be9c02cc9638f02e14d271d5f0d (patch)
treeebccc4c31b3b11ae4f3b1009ee44d7d5633e06af /drivers
parent97ef1bdd0bc75bce7b2058e9c432b6c277dcf4d3 (diff)
intel-gtt: drop agp scratch page support stuff
intel-gtt.c now handles the scratch page itself, so drop all that was just there to support it. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/agp/intel-gtt.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-gtt.c
index 1de45f96db9c..64a62d9afb75 100644
--- a/drivers/char/agp/intel-gtt.c
+++ b/drivers/char/agp/intel-gtt.c
@@ -124,21 +124,6 @@ static struct _intel_private {
124#define IS_IRONLAKE intel_private.driver->is_ironlake 124#define IS_IRONLAKE intel_private.driver->is_ironlake
125 125
126#if USE_PCI_DMA_API 126#if USE_PCI_DMA_API
127static int intel_agp_map_page(struct page *page, dma_addr_t *ret)
128{
129 *ret = pci_map_page(intel_private.pcidev, page, 0,
130 PAGE_SIZE, PCI_DMA_BIDIRECTIONAL);
131 if (pci_dma_mapping_error(intel_private.pcidev, *ret))
132 return -EINVAL;
133 return 0;
134}
135
136static void intel_agp_unmap_page(struct page *page, dma_addr_t dma)
137{
138 pci_unmap_page(intel_private.pcidev, dma,
139 PAGE_SIZE, PCI_DMA_BIDIRECTIONAL);
140}
141
142static void intel_agp_free_sglist(struct agp_memory *mem) 127static void intel_agp_free_sglist(struct agp_memory *mem)
143{ 128{
144 struct sg_table st; 129 struct sg_table st;
@@ -1447,7 +1432,6 @@ static const struct agp_bridge_driver intel_830_driver = {
1447 .size_type = FIXED_APER_SIZE, 1432 .size_type = FIXED_APER_SIZE,
1448 .aperture_sizes = intel_fake_agp_sizes, 1433 .aperture_sizes = intel_fake_agp_sizes,
1449 .num_aperture_sizes = ARRAY_SIZE(intel_fake_agp_sizes), 1434 .num_aperture_sizes = ARRAY_SIZE(intel_fake_agp_sizes),
1450 .needs_scratch_page = true,
1451 .configure = intel_fake_agp_configure, 1435 .configure = intel_fake_agp_configure,
1452 .fetch_size = intel_fake_agp_fetch_size, 1436 .fetch_size = intel_fake_agp_fetch_size,
1453 .cleanup = intel_gtt_cleanup, 1437 .cleanup = intel_gtt_cleanup,
@@ -1474,7 +1458,6 @@ static const struct agp_bridge_driver intel_915_driver = {
1474 .size_type = FIXED_APER_SIZE, 1458 .size_type = FIXED_APER_SIZE,
1475 .aperture_sizes = intel_fake_agp_sizes, 1459 .aperture_sizes = intel_fake_agp_sizes,
1476 .num_aperture_sizes = ARRAY_SIZE(intel_fake_agp_sizes), 1460 .num_aperture_sizes = ARRAY_SIZE(intel_fake_agp_sizes),
1477 .needs_scratch_page = true,
1478 .configure = intel_fake_agp_configure, 1461 .configure = intel_fake_agp_configure,
1479 .fetch_size = intel_fake_agp_fetch_size, 1462 .fetch_size = intel_fake_agp_fetch_size,
1480 .cleanup = intel_gtt_cleanup, 1463 .cleanup = intel_gtt_cleanup,
@@ -1495,8 +1478,6 @@ static const struct agp_bridge_driver intel_915_driver = {
1495 .agp_type_to_mask_type = intel_i830_type_to_mask_type, 1478 .agp_type_to_mask_type = intel_i830_type_to_mask_type,
1496 .chipset_flush = intel_i915_chipset_flush, 1479 .chipset_flush = intel_i915_chipset_flush,
1497#if USE_PCI_DMA_API 1480#if USE_PCI_DMA_API
1498 .agp_map_page = intel_agp_map_page,
1499 .agp_unmap_page = intel_agp_unmap_page,
1500 .agp_map_memory = intel_agp_map_memory, 1481 .agp_map_memory = intel_agp_map_memory,
1501 .agp_unmap_memory = intel_agp_unmap_memory, 1482 .agp_unmap_memory = intel_agp_unmap_memory,
1502#endif 1483#endif
@@ -1507,7 +1488,6 @@ static const struct agp_bridge_driver intel_i965_driver = {
1507 .size_type = FIXED_APER_SIZE, 1488 .size_type = FIXED_APER_SIZE,
1508 .aperture_sizes = intel_fake_agp_sizes, 1489 .aperture_sizes = intel_fake_agp_sizes,
1509 .num_aperture_sizes = ARRAY_SIZE(intel_fake_agp_sizes), 1490 .num_aperture_sizes = ARRAY_SIZE(intel_fake_agp_sizes),
1510 .needs_scratch_page = true,
1511 .configure = intel_fake_agp_configure, 1491 .configure = intel_fake_agp_configure,
1512 .fetch_size = intel_fake_agp_fetch_size, 1492 .fetch_size = intel_fake_agp_fetch_size,
1513 .cleanup = intel_gtt_cleanup, 1493 .cleanup = intel_gtt_cleanup,
@@ -1528,8 +1508,6 @@ static const struct agp_bridge_driver intel_i965_driver = {
1528 .agp_type_to_mask_type = intel_i830_type_to_mask_type, 1508 .agp_type_to_mask_type = intel_i830_type_to_mask_type,
1529 .chipset_flush = intel_i915_chipset_flush, 1509 .chipset_flush = intel_i915_chipset_flush,
1530#if USE_PCI_DMA_API 1510#if USE_PCI_DMA_API
1531 .agp_map_page = intel_agp_map_page,
1532 .agp_unmap_page = intel_agp_unmap_page,
1533 .agp_map_memory = intel_agp_map_memory, 1511 .agp_map_memory = intel_agp_map_memory,
1534 .agp_unmap_memory = intel_agp_unmap_memory, 1512 .agp_unmap_memory = intel_agp_unmap_memory,
1535#endif 1513#endif
@@ -1540,7 +1518,6 @@ static const struct agp_bridge_driver intel_gen6_driver = {
1540 .size_type = FIXED_APER_SIZE, 1518 .size_type = FIXED_APER_SIZE,
1541 .aperture_sizes = intel_fake_agp_sizes, 1519 .aperture_sizes = intel_fake_agp_sizes,
1542 .num_aperture_sizes = ARRAY_SIZE(intel_fake_agp_sizes), 1520 .num_aperture_sizes = ARRAY_SIZE(intel_fake_agp_sizes),
1543 .needs_scratch_page = true,
1544 .configure = intel_fake_agp_configure, 1521 .configure = intel_fake_agp_configure,
1545 .fetch_size = intel_fake_agp_fetch_size, 1522 .fetch_size = intel_fake_agp_fetch_size,
1546 .cleanup = intel_gtt_cleanup, 1523 .cleanup = intel_gtt_cleanup,
@@ -1561,8 +1538,6 @@ static const struct agp_bridge_driver intel_gen6_driver = {
1561 .agp_type_to_mask_type = intel_gen6_type_to_mask_type, 1538 .agp_type_to_mask_type = intel_gen6_type_to_mask_type,
1562 .chipset_flush = intel_i915_chipset_flush, 1539 .chipset_flush = intel_i915_chipset_flush,
1563#if USE_PCI_DMA_API 1540#if USE_PCI_DMA_API
1564 .agp_map_page = intel_agp_map_page,
1565 .agp_unmap_page = intel_agp_unmap_page,
1566 .agp_map_memory = intel_agp_map_memory, 1541 .agp_map_memory = intel_agp_map_memory,
1567 .agp_unmap_memory = intel_agp_unmap_memory, 1542 .agp_unmap_memory = intel_agp_unmap_memory,
1568#endif 1543#endif
@@ -1573,7 +1548,6 @@ static const struct agp_bridge_driver intel_g33_driver = {
1573 .size_type = FIXED_APER_SIZE, 1548 .size_type = FIXED_APER_SIZE,
1574 .aperture_sizes = intel_fake_agp_sizes, 1549 .aperture_sizes = intel_fake_agp_sizes,
1575 .num_aperture_sizes = ARRAY_SIZE(intel_fake_agp_sizes), 1550 .num_aperture_sizes = ARRAY_SIZE(intel_fake_agp_sizes),
1576 .needs_scratch_page = true,
1577 .configure = intel_fake_agp_configure, 1551 .configure = intel_fake_agp_configure,
1578 .fetch_size = intel_fake_agp_fetch_size, 1552 .fetch_size = intel_fake_agp_fetch_size,
1579 .cleanup = intel_gtt_cleanup, 1553 .cleanup = intel_gtt_cleanup,
@@ -1594,8 +1568,6 @@ static const struct agp_bridge_driver intel_g33_driver = {
1594 .agp_type_to_mask_type = intel_i830_type_to_mask_type, 1568 .agp_type_to_mask_type = intel_i830_type_to_mask_type,
1595 .chipset_flush = intel_i915_chipset_flush, 1569 .chipset_flush = intel_i915_chipset_flush,
1596#if USE_PCI_DMA_API 1570#if USE_PCI_DMA_API
1597 .agp_map_page = intel_agp_map_page,
1598 .agp_unmap_page = intel_agp_unmap_page,
1599 .agp_map_memory = intel_agp_map_memory, 1571 .agp_map_memory = intel_agp_map_memory,
1600 .agp_unmap_memory = intel_agp_unmap_memory, 1572 .agp_unmap_memory = intel_agp_unmap_memory,
1601#endif 1573#endif