diff options
Diffstat (limited to 'drivers/video/matrox/matroxfb_DAC1064.c')
-rw-r--r-- | drivers/video/matrox/matroxfb_DAC1064.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/video/matrox/matroxfb_DAC1064.c b/drivers/video/matrox/matroxfb_DAC1064.c index c4b570b4a4df..0ce3b0a89798 100644 --- a/drivers/video/matrox/matroxfb_DAC1064.c +++ b/drivers/video/matrox/matroxfb_DAC1064.c | |||
@@ -37,7 +37,7 @@ static void DAC1064_calcclock(CPMINFO unsigned int freq, unsigned int fmax, unsi | |||
37 | unsigned int fvco; | 37 | unsigned int fvco; |
38 | unsigned int p; | 38 | unsigned int p; |
39 | 39 | ||
40 | DBG(__FUNCTION__) | 40 | DBG(__func__) |
41 | 41 | ||
42 | /* only for devices older than G450 */ | 42 | /* only for devices older than G450 */ |
43 | 43 | ||
@@ -83,7 +83,7 @@ static const unsigned char MGA1064_DAC[] = { | |||
83 | static void DAC1064_setpclk(WPMINFO unsigned long fout) { | 83 | static void DAC1064_setpclk(WPMINFO unsigned long fout) { |
84 | unsigned int m, n, p; | 84 | unsigned int m, n, p; |
85 | 85 | ||
86 | DBG(__FUNCTION__) | 86 | DBG(__func__) |
87 | 87 | ||
88 | DAC1064_calcclock(PMINFO fout, ACCESS_FBINFO(max_pixel_clock), &m, &n, &p); | 88 | DAC1064_calcclock(PMINFO fout, ACCESS_FBINFO(max_pixel_clock), &m, &n, &p); |
89 | ACCESS_FBINFO(hw).DACclk[0] = m; | 89 | ACCESS_FBINFO(hw).DACclk[0] = m; |
@@ -95,7 +95,7 @@ static void DAC1064_setmclk(WPMINFO int oscinfo, unsigned long fmem) { | |||
95 | u_int32_t mx; | 95 | u_int32_t mx; |
96 | struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); | 96 | struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); |
97 | 97 | ||
98 | DBG(__FUNCTION__) | 98 | DBG(__func__) |
99 | 99 | ||
100 | if (ACCESS_FBINFO(devflags.noinit)) { | 100 | if (ACCESS_FBINFO(devflags.noinit)) { |
101 | /* read MCLK and give up... */ | 101 | /* read MCLK and give up... */ |
@@ -338,7 +338,7 @@ void DAC1064_global_restore(WPMINFO2) { | |||
338 | static int DAC1064_init_1(WPMINFO struct my_timming* m) { | 338 | static int DAC1064_init_1(WPMINFO struct my_timming* m) { |
339 | struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); | 339 | struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); |
340 | 340 | ||
341 | DBG(__FUNCTION__) | 341 | DBG(__func__) |
342 | 342 | ||
343 | memcpy(hw->DACreg, MGA1064_DAC, sizeof(MGA1064_DAC_regs)); | 343 | memcpy(hw->DACreg, MGA1064_DAC, sizeof(MGA1064_DAC_regs)); |
344 | switch (ACCESS_FBINFO(fbcon).var.bits_per_pixel) { | 344 | switch (ACCESS_FBINFO(fbcon).var.bits_per_pixel) { |
@@ -374,7 +374,7 @@ static int DAC1064_init_1(WPMINFO struct my_timming* m) { | |||
374 | static int DAC1064_init_2(WPMINFO struct my_timming* m) { | 374 | static int DAC1064_init_2(WPMINFO struct my_timming* m) { |
375 | struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); | 375 | struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); |
376 | 376 | ||
377 | DBG(__FUNCTION__) | 377 | DBG(__func__) |
378 | 378 | ||
379 | if (ACCESS_FBINFO(fbcon).var.bits_per_pixel > 16) { /* 256 entries */ | 379 | if (ACCESS_FBINFO(fbcon).var.bits_per_pixel > 16) { /* 256 entries */ |
380 | int i; | 380 | int i; |
@@ -418,7 +418,7 @@ static void DAC1064_restore_1(WPMINFO2) { | |||
418 | 418 | ||
419 | CRITFLAGS | 419 | CRITFLAGS |
420 | 420 | ||
421 | DBG(__FUNCTION__) | 421 | DBG(__func__) |
422 | 422 | ||
423 | CRITBEGIN | 423 | CRITBEGIN |
424 | 424 | ||
@@ -448,7 +448,7 @@ static void DAC1064_restore_2(WPMINFO2) { | |||
448 | unsigned int i; | 448 | unsigned int i; |
449 | #endif | 449 | #endif |
450 | 450 | ||
451 | DBG(__FUNCTION__) | 451 | DBG(__func__) |
452 | 452 | ||
453 | #ifdef DEBUG | 453 | #ifdef DEBUG |
454 | dprintk(KERN_DEBUG "DAC1064regs "); | 454 | dprintk(KERN_DEBUG "DAC1064regs "); |
@@ -521,7 +521,7 @@ static struct matrox_altout g450out = { | |||
521 | static int MGA1064_init(WPMINFO struct my_timming* m) { | 521 | static int MGA1064_init(WPMINFO struct my_timming* m) { |
522 | struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); | 522 | struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); |
523 | 523 | ||
524 | DBG(__FUNCTION__) | 524 | DBG(__func__) |
525 | 525 | ||
526 | if (DAC1064_init_1(PMINFO m)) return 1; | 526 | if (DAC1064_init_1(PMINFO m)) return 1; |
527 | if (matroxfb_vgaHWinit(PMINFO m)) return 1; | 527 | if (matroxfb_vgaHWinit(PMINFO m)) return 1; |
@@ -543,7 +543,7 @@ static int MGA1064_init(WPMINFO struct my_timming* m) { | |||
543 | static int MGAG100_init(WPMINFO struct my_timming* m) { | 543 | static int MGAG100_init(WPMINFO struct my_timming* m) { |
544 | struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); | 544 | struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); |
545 | 545 | ||
546 | DBG(__FUNCTION__) | 546 | DBG(__func__) |
547 | 547 | ||
548 | if (DAC1064_init_1(PMINFO m)) return 1; | 548 | if (DAC1064_init_1(PMINFO m)) return 1; |
549 | hw->MXoptionReg &= ~0x2000; | 549 | hw->MXoptionReg &= ~0x2000; |
@@ -565,7 +565,7 @@ static int MGAG100_init(WPMINFO struct my_timming* m) { | |||
565 | #ifdef CONFIG_FB_MATROX_MYSTIQUE | 565 | #ifdef CONFIG_FB_MATROX_MYSTIQUE |
566 | static void MGA1064_ramdac_init(WPMINFO2) { | 566 | static void MGA1064_ramdac_init(WPMINFO2) { |
567 | 567 | ||
568 | DBG(__FUNCTION__) | 568 | DBG(__func__) |
569 | 569 | ||
570 | /* ACCESS_FBINFO(features.DAC1064.vco_freq_min) = 120000; */ | 570 | /* ACCESS_FBINFO(features.DAC1064.vco_freq_min) = 120000; */ |
571 | ACCESS_FBINFO(features.pll.vco_freq_min) = 62000; | 571 | ACCESS_FBINFO(features.pll.vco_freq_min) = 62000; |
@@ -594,7 +594,7 @@ static void MGAG100_progPixClock(CPMINFO int flags, int m, int n, int p) { | |||
594 | int selClk; | 594 | int selClk; |
595 | int clk; | 595 | int clk; |
596 | 596 | ||
597 | DBG(__FUNCTION__) | 597 | DBG(__func__) |
598 | 598 | ||
599 | outDAC1064(PMINFO M1064_XPIXCLKCTRL, inDAC1064(PMINFO M1064_XPIXCLKCTRL) | M1064_XPIXCLKCTRL_DIS | | 599 | outDAC1064(PMINFO M1064_XPIXCLKCTRL, inDAC1064(PMINFO M1064_XPIXCLKCTRL) | M1064_XPIXCLKCTRL_DIS | |
600 | M1064_XPIXCLKCTRL_PLL_UP); | 600 | M1064_XPIXCLKCTRL_PLL_UP); |
@@ -636,7 +636,7 @@ static void MGAG100_progPixClock(CPMINFO int flags, int m, int n, int p) { | |||
636 | static void MGAG100_setPixClock(CPMINFO int flags, int freq) { | 636 | static void MGAG100_setPixClock(CPMINFO int flags, int freq) { |
637 | unsigned int m, n, p; | 637 | unsigned int m, n, p; |
638 | 638 | ||
639 | DBG(__FUNCTION__) | 639 | DBG(__func__) |
640 | 640 | ||
641 | DAC1064_calcclock(PMINFO freq, ACCESS_FBINFO(max_pixel_clock), &m, &n, &p); | 641 | DAC1064_calcclock(PMINFO freq, ACCESS_FBINFO(max_pixel_clock), &m, &n, &p); |
642 | MGAG100_progPixClock(PMINFO flags, m, n, p); | 642 | MGAG100_progPixClock(PMINFO flags, m, n, p); |
@@ -650,7 +650,7 @@ static int MGA1064_preinit(WPMINFO2) { | |||
650 | 2048, 0}; | 650 | 2048, 0}; |
651 | struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); | 651 | struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); |
652 | 652 | ||
653 | DBG(__FUNCTION__) | 653 | DBG(__func__) |
654 | 654 | ||
655 | /* ACCESS_FBINFO(capable.cfb4) = 0; ... preinitialized by 0 */ | 655 | /* ACCESS_FBINFO(capable.cfb4) = 0; ... preinitialized by 0 */ |
656 | ACCESS_FBINFO(capable.text) = 1; | 656 | ACCESS_FBINFO(capable.text) = 1; |
@@ -683,7 +683,7 @@ static int MGA1064_preinit(WPMINFO2) { | |||
683 | 683 | ||
684 | static void MGA1064_reset(WPMINFO2) { | 684 | static void MGA1064_reset(WPMINFO2) { |
685 | 685 | ||
686 | DBG(__FUNCTION__); | 686 | DBG(__func__); |
687 | 687 | ||
688 | MGA1064_ramdac_init(PMINFO2); | 688 | MGA1064_ramdac_init(PMINFO2); |
689 | } | 689 | } |
@@ -819,7 +819,7 @@ static int MGAG100_preinit(WPMINFO2) { | |||
819 | u_int32_t q; | 819 | u_int32_t q; |
820 | #endif | 820 | #endif |
821 | 821 | ||
822 | DBG(__FUNCTION__) | 822 | DBG(__func__) |
823 | 823 | ||
824 | /* there are some instabilities if in_div > 19 && vco < 61000 */ | 824 | /* there are some instabilities if in_div > 19 && vco < 61000 */ |
825 | if (ACCESS_FBINFO(devflags.g450dac)) { | 825 | if (ACCESS_FBINFO(devflags.g450dac)) { |
@@ -956,7 +956,7 @@ static void MGAG100_reset(WPMINFO2) { | |||
956 | u_int8_t b; | 956 | u_int8_t b; |
957 | struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); | 957 | struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); |
958 | 958 | ||
959 | DBG(__FUNCTION__) | 959 | DBG(__func__) |
960 | 960 | ||
961 | { | 961 | { |
962 | #ifdef G100_BROKEN_IBM_82351 | 962 | #ifdef G100_BROKEN_IBM_82351 |
@@ -1015,7 +1015,7 @@ static void MGA1064_restore(WPMINFO2) { | |||
1015 | 1015 | ||
1016 | CRITFLAGS | 1016 | CRITFLAGS |
1017 | 1017 | ||
1018 | DBG(__FUNCTION__) | 1018 | DBG(__func__) |
1019 | 1019 | ||
1020 | CRITBEGIN | 1020 | CRITBEGIN |
1021 | 1021 | ||
@@ -1041,7 +1041,7 @@ static void MGAG100_restore(WPMINFO2) { | |||
1041 | 1041 | ||
1042 | CRITFLAGS | 1042 | CRITFLAGS |
1043 | 1043 | ||
1044 | DBG(__FUNCTION__) | 1044 | DBG(__func__) |
1045 | 1045 | ||
1046 | CRITBEGIN | 1046 | CRITBEGIN |
1047 | 1047 | ||