aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/agp/intel-agp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/agp/intel-agp.c')
-rw-r--r--drivers/char/agp/intel-agp.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c
index 06b0bb6d982f..e542a628f1c7 100644
--- a/drivers/char/agp/intel-agp.c
+++ b/drivers/char/agp/intel-agp.c
@@ -63,7 +63,7 @@ extern int agp_memory_reserved;
63#define INTEL_I7505_AGPCTRL 0x70 63#define INTEL_I7505_AGPCTRL 0x70
64#define INTEL_I7505_MCHCFG 0x50 64#define INTEL_I7505_MCHCFG 0x50
65 65
66static struct aper_size_info_fixed intel_i810_sizes[] = 66static const struct aper_size_info_fixed intel_i810_sizes[] =
67{ 67{
68 {64, 16384, 4}, 68 {64, 16384, 4},
69 /* The 32M mode still requires a 64k gatt */ 69 /* The 32M mode still requires a 64k gatt */
@@ -1365,18 +1365,18 @@ static int intel_7505_configure(void)
1365} 1365}
1366 1366
1367/* Setup function */ 1367/* Setup function */
1368static struct gatt_mask intel_generic_masks[] = 1368static const struct gatt_mask intel_generic_masks[] =
1369{ 1369{
1370 {.mask = 0x00000017, .type = 0} 1370 {.mask = 0x00000017, .type = 0}
1371}; 1371};
1372 1372
1373static struct aper_size_info_8 intel_815_sizes[2] = 1373static const struct aper_size_info_8 intel_815_sizes[2] =
1374{ 1374{
1375 {64, 16384, 4, 0}, 1375 {64, 16384, 4, 0},
1376 {32, 8192, 3, 8}, 1376 {32, 8192, 3, 8},
1377}; 1377};
1378 1378
1379static struct aper_size_info_8 intel_8xx_sizes[7] = 1379static const struct aper_size_info_8 intel_8xx_sizes[7] =
1380{ 1380{
1381 {256, 65536, 6, 0}, 1381 {256, 65536, 6, 0},
1382 {128, 32768, 5, 32}, 1382 {128, 32768, 5, 32},
@@ -1387,7 +1387,7 @@ static struct aper_size_info_8 intel_8xx_sizes[7] =
1387 {4, 1024, 0, 63} 1387 {4, 1024, 0, 63}
1388}; 1388};
1389 1389
1390static struct aper_size_info_16 intel_generic_sizes[7] = 1390static const struct aper_size_info_16 intel_generic_sizes[7] =
1391{ 1391{
1392 {256, 65536, 6, 0}, 1392 {256, 65536, 6, 0},
1393 {128, 32768, 5, 32}, 1393 {128, 32768, 5, 32},
@@ -1398,7 +1398,7 @@ static struct aper_size_info_16 intel_generic_sizes[7] =
1398 {4, 1024, 0, 63} 1398 {4, 1024, 0, 63}
1399}; 1399};
1400 1400
1401static struct aper_size_info_8 intel_830mp_sizes[4] = 1401static const struct aper_size_info_8 intel_830mp_sizes[4] =
1402{ 1402{
1403 {256, 65536, 6, 0}, 1403 {256, 65536, 6, 0},
1404 {128, 32768, 5, 32}, 1404 {128, 32768, 5, 32},
@@ -1406,7 +1406,7 @@ static struct aper_size_info_8 intel_830mp_sizes[4] =
1406 {32, 8192, 3, 56} 1406 {32, 8192, 3, 56}
1407}; 1407};
1408 1408
1409static struct agp_bridge_driver intel_generic_driver = { 1409static const struct agp_bridge_driver intel_generic_driver = {
1410 .owner = THIS_MODULE, 1410 .owner = THIS_MODULE,
1411 .aperture_sizes = intel_generic_sizes, 1411 .aperture_sizes = intel_generic_sizes,
1412 .size_type = U16_APER_SIZE, 1412 .size_type = U16_APER_SIZE,
@@ -1430,7 +1430,7 @@ static struct agp_bridge_driver intel_generic_driver = {
1430 .agp_type_to_mask_type = agp_generic_type_to_mask_type, 1430 .agp_type_to_mask_type = agp_generic_type_to_mask_type,
1431}; 1431};
1432 1432
1433static struct agp_bridge_driver intel_810_driver = { 1433static const struct agp_bridge_driver intel_810_driver = {
1434 .owner = THIS_MODULE, 1434 .owner = THIS_MODULE,
1435 .aperture_sizes = intel_i810_sizes, 1435 .aperture_sizes = intel_i810_sizes,
1436 .size_type = FIXED_APER_SIZE, 1436 .size_type = FIXED_APER_SIZE,
@@ -1455,7 +1455,7 @@ static struct agp_bridge_driver intel_810_driver = {
1455 .agp_type_to_mask_type = agp_generic_type_to_mask_type, 1455 .agp_type_to_mask_type = agp_generic_type_to_mask_type,
1456}; 1456};
1457 1457
1458static struct agp_bridge_driver intel_815_driver = { 1458static const struct agp_bridge_driver intel_815_driver = {
1459 .owner = THIS_MODULE, 1459 .owner = THIS_MODULE,
1460 .aperture_sizes = intel_815_sizes, 1460 .aperture_sizes = intel_815_sizes,
1461 .size_type = U8_APER_SIZE, 1461 .size_type = U8_APER_SIZE,
@@ -1479,7 +1479,7 @@ static struct agp_bridge_driver intel_815_driver = {
1479 .agp_type_to_mask_type = agp_generic_type_to_mask_type, 1479 .agp_type_to_mask_type = agp_generic_type_to_mask_type,
1480}; 1480};
1481 1481
1482static struct agp_bridge_driver intel_830_driver = { 1482static const struct agp_bridge_driver intel_830_driver = {
1483 .owner = THIS_MODULE, 1483 .owner = THIS_MODULE,
1484 .aperture_sizes = intel_i830_sizes, 1484 .aperture_sizes = intel_i830_sizes,
1485 .size_type = FIXED_APER_SIZE, 1485 .size_type = FIXED_APER_SIZE,
@@ -1504,7 +1504,7 @@ static struct agp_bridge_driver intel_830_driver = {
1504 .agp_type_to_mask_type = intel_i830_type_to_mask_type, 1504 .agp_type_to_mask_type = intel_i830_type_to_mask_type,
1505}; 1505};
1506 1506
1507static struct agp_bridge_driver intel_820_driver = { 1507static const struct agp_bridge_driver intel_820_driver = {
1508 .owner = THIS_MODULE, 1508 .owner = THIS_MODULE,
1509 .aperture_sizes = intel_8xx_sizes, 1509 .aperture_sizes = intel_8xx_sizes,
1510 .size_type = U8_APER_SIZE, 1510 .size_type = U8_APER_SIZE,
@@ -1528,7 +1528,7 @@ static struct agp_bridge_driver intel_820_driver = {
1528 .agp_type_to_mask_type = agp_generic_type_to_mask_type, 1528 .agp_type_to_mask_type = agp_generic_type_to_mask_type,
1529}; 1529};
1530 1530
1531static struct agp_bridge_driver intel_830mp_driver = { 1531static const struct agp_bridge_driver intel_830mp_driver = {
1532 .owner = THIS_MODULE, 1532 .owner = THIS_MODULE,
1533 .aperture_sizes = intel_830mp_sizes, 1533 .aperture_sizes = intel_830mp_sizes,
1534 .size_type = U8_APER_SIZE, 1534 .size_type = U8_APER_SIZE,
@@ -1552,7 +1552,7 @@ static struct agp_bridge_driver intel_830mp_driver = {
1552 .agp_type_to_mask_type = agp_generic_type_to_mask_type, 1552 .agp_type_to_mask_type = agp_generic_type_to_mask_type,
1553}; 1553};
1554 1554
1555static struct agp_bridge_driver intel_840_driver = { 1555static const struct agp_bridge_driver intel_840_driver = {
1556 .owner = THIS_MODULE, 1556 .owner = THIS_MODULE,
1557 .aperture_sizes = intel_8xx_sizes, 1557 .aperture_sizes = intel_8xx_sizes,
1558 .size_type = U8_APER_SIZE, 1558 .size_type = U8_APER_SIZE,
@@ -1576,7 +1576,7 @@ static struct agp_bridge_driver intel_840_driver = {
1576 .agp_type_to_mask_type = agp_generic_type_to_mask_type, 1576 .agp_type_to_mask_type = agp_generic_type_to_mask_type,
1577}; 1577};
1578 1578
1579static struct agp_bridge_driver intel_845_driver = { 1579static const struct agp_bridge_driver intel_845_driver = {
1580 .owner = THIS_MODULE, 1580 .owner = THIS_MODULE,
1581 .aperture_sizes = intel_8xx_sizes, 1581 .aperture_sizes = intel_8xx_sizes,
1582 .size_type = U8_APER_SIZE, 1582 .size_type = U8_APER_SIZE,
@@ -1600,7 +1600,7 @@ static struct agp_bridge_driver intel_845_driver = {
1600 .agp_type_to_mask_type = agp_generic_type_to_mask_type, 1600 .agp_type_to_mask_type = agp_generic_type_to_mask_type,
1601}; 1601};
1602 1602
1603static struct agp_bridge_driver intel_850_driver = { 1603static const struct agp_bridge_driver intel_850_driver = {
1604 .owner = THIS_MODULE, 1604 .owner = THIS_MODULE,
1605 .aperture_sizes = intel_8xx_sizes, 1605 .aperture_sizes = intel_8xx_sizes,
1606 .size_type = U8_APER_SIZE, 1606 .size_type = U8_APER_SIZE,
@@ -1624,7 +1624,7 @@ static struct agp_bridge_driver intel_850_driver = {
1624 .agp_type_to_mask_type = agp_generic_type_to_mask_type, 1624 .agp_type_to_mask_type = agp_generic_type_to_mask_type,
1625}; 1625};
1626 1626
1627static struct agp_bridge_driver intel_860_driver = { 1627static const struct agp_bridge_driver intel_860_driver = {
1628 .owner = THIS_MODULE, 1628 .owner = THIS_MODULE,
1629 .aperture_sizes = intel_8xx_sizes, 1629 .aperture_sizes = intel_8xx_sizes,
1630 .size_type = U8_APER_SIZE, 1630 .size_type = U8_APER_SIZE,
@@ -1648,7 +1648,7 @@ static struct agp_bridge_driver intel_860_driver = {
1648 .agp_type_to_mask_type = agp_generic_type_to_mask_type, 1648 .agp_type_to_mask_type = agp_generic_type_to_mask_type,
1649}; 1649};
1650 1650
1651static struct agp_bridge_driver intel_915_driver = { 1651static const struct agp_bridge_driver intel_915_driver = {
1652 .owner = THIS_MODULE, 1652 .owner = THIS_MODULE,
1653 .aperture_sizes = intel_i830_sizes, 1653 .aperture_sizes = intel_i830_sizes,
1654 .size_type = FIXED_APER_SIZE, 1654 .size_type = FIXED_APER_SIZE,
@@ -1673,7 +1673,7 @@ static struct agp_bridge_driver intel_915_driver = {
1673 .agp_type_to_mask_type = intel_i830_type_to_mask_type, 1673 .agp_type_to_mask_type = intel_i830_type_to_mask_type,
1674}; 1674};
1675 1675
1676static struct agp_bridge_driver intel_i965_driver = { 1676static const struct agp_bridge_driver intel_i965_driver = {
1677 .owner = THIS_MODULE, 1677 .owner = THIS_MODULE,
1678 .aperture_sizes = intel_i830_sizes, 1678 .aperture_sizes = intel_i830_sizes,
1679 .size_type = FIXED_APER_SIZE, 1679 .size_type = FIXED_APER_SIZE,
@@ -1698,7 +1698,7 @@ static struct agp_bridge_driver intel_i965_driver = {
1698 .agp_type_to_mask_type = intel_i830_type_to_mask_type, 1698 .agp_type_to_mask_type = intel_i830_type_to_mask_type,
1699}; 1699};
1700 1700
1701static struct agp_bridge_driver intel_7505_driver = { 1701static const struct agp_bridge_driver intel_7505_driver = {
1702 .owner = THIS_MODULE, 1702 .owner = THIS_MODULE,
1703 .aperture_sizes = intel_8xx_sizes, 1703 .aperture_sizes = intel_8xx_sizes,
1704 .size_type = U8_APER_SIZE, 1704 .size_type = U8_APER_SIZE,