Subversion Repositories Kolibri OS

Rev

Rev 2017 | Rev 2175 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2017 Rev 2160
Line 36... Line 36...
36
#include "display.h"
36
#include "display.h"
Line 37... Line 37...
37
 
37
 
Line 38... Line 38...
38
#include 
38
#include 
39
 
39
 
40
 
40
 
41
int radeon_no_wb;
41
int radeon_no_wb   =  1;
42
int radeon_modeset = -1;
42
int radeon_modeset = -1;
43
int radeon_dynclks = -1;
43
int radeon_dynclks = -1;
Line 54... Line 54...
54
int radeon_audio = 1;
54
int radeon_audio = 1;
55
int radeon_hw_i2c = 0;
55
int radeon_hw_i2c = 0;
56
int radeon_pcie_gen2 = 0;
56
int radeon_pcie_gen2 = 0;
57
int radeon_disp_priority = 0;
57
int radeon_disp_priority = 0;
Line -... Line 58...
-
 
58
 
Line 58... Line 59...
58
 
59
int irq_override = 0;
Line 59... Line 60...
59
 
60
 
Line 897... Line 898...
897
    if( radeon_modeset )
898
    if( radeon_modeset )
898
        init_display_kms(dev->dev_private, &usermode);
899
        init_display_kms(dev->dev_private, &usermode);
899
    else
900
    else
900
        init_display(dev->dev_private, &usermode);
901
        init_display(dev->dev_private, &usermode);
Line -... Line 902...
-
 
902
 
-
 
903
 
-
 
904
    uint32_t route0 = PciRead32(0, 31<<3, 0x60);
-
 
905
 
-
 
906
    uint32_t route1 = PciRead32(0, 31<<3, 0x68);
-
 
907
 
-
 
908
    uint8_t elcr0 = in8(0x4D0);
-
 
909
    uint8_t elcr1 = in8(0x4D1);
-
 
910
 
-
 
911
    dbgprintf("pci route: %x %x elcr: %x %x\n", route0, route1, elcr0, elcr1);
901
 
912
 
Line 902... Line 913...
902
    LEAVE();
913
    LEAVE();
Line 903... Line 914...
903
 
914
 
Line 1040... Line 1051...
1040
}
1051
}
Line 1041... Line 1052...
1041
 
1052
 
1042
static char  log[256];
1053
static char  log[256];
Line 1043... Line -...
1043
static pci_dev_t device;
-
 
1044
 
-
 
1045
u32_t
-
 
1046
#if defined(__GNUC__) && __GNUC__ >= 4
-
 
1047
// has sense only if -fwhole-program is used, like Makefile.lto
-
 
1048
__attribute__((externally_visible))
1054
static pci_dev_t device;
1049
#endif
1055
 
1050
drvEntry(int action, char *cmdline)
1056
u32_t drvEntry(int action, char *cmdline)
Line 1051... Line 1057...
1051
{
1057
{