--- xc.orig/programs/Xserver/hw/xfree86/accel/mach64/mach64.c Wed Oct 13 03:07:03 1999 +++ xc/programs/Xserver/hw/xfree86/accel/mach64/mach64.c Tue Oct 31 00:21:09 2000 @@ -31,6 +31,12 @@ * */ /* $XConsortium: mach64.c /main/34 1996/10/28 04:46:47 kaleb $ */ +/***********************************************/ +/* This source is include Sony VAIO-C1VJ patch */ +/* Do not use another PC!! */ +/* This patch made by Junichi Morita */ +/* jun1m@mars.dti.ne.jp */ +/***********************************************/ #include "X.h" #include "Xmd.h" @@ -804,6 +810,7 @@ (bios_data[LCDPanelInfo + 0x1A] << 8) + bios_data[LCDPanelInfo + 0x19]; info.LCDVertical = (bios_data[LCDPanelInfo + 0x1C] << 8) + bios_data[LCDPanelInfo + 0x1B]; + info.LCDVertical = 480; return &info; } @@ -1576,7 +1583,18 @@ h_sync_strt_wid = inl(ioCRTC_H_SYNC_STRT_WID); v_total_disp = inl(ioCRTC_V_TOTAL_DISP); v_sync_strt_wid = inl(ioCRTC_V_SYNC_STRT_WID); +h_total_disp = (1024 << 16) + 1300; +ErrorF("--JUN- HT%d HS%d VT%d VS%d -----\n",h_total_disp,h_sync_strt_wid,v_total_disp,v_sync_strt_wid); + HDisplay = 1024; + LCDHSyncStart = 3; + LCDHSyncWidth = 15; + LCDHBlankWidth = 90; + VDisplay = 399; + LCDVSyncStart = 49; + LCDVSyncWidth = 15; + LCDVBlankWidth = 116; +/* HDisplay = h_total_disp >> 16; VDisplay = v_total_disp >> 16; @@ -1588,6 +1606,7 @@ LCDVSyncStart = (v_sync_strt_wid & 0x7FF) - VDisplay; LCDVSyncWidth = (v_sync_strt_wid & 0x1F0000) >> 16; LCDVBlankWidth = (v_total_disp & 0x7FF) - VDisplay; +*/ if (!(inl(ioCRTC_GEN_CNTL) & CRTC_EXT_DISP_EN)) { /* Adjust for VGA */