ALT Linux Bugzilla
– Attachment 2248 Details for
Bug 13285
Не работает xorg-x11-drv-nsc
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
patch для версии xf86-video-nsc-2.8.2.
xf86-video-nsc-2.8.2.patch (text/plain), 1.92 KB, created by
Pavel Vainerman
on 2007-11-01 01:18:51 MSK
(
hide
)
Description:
patch для версии xf86-video-nsc-2.8.2.
Filename:
MIME Type:
Creator:
Pavel Vainerman
Created:
2007-11-01 01:18:51 MSK
Size:
1.92 KB
patch
obsolete
>--- src/gfx/gfx_init.c.orig 2007-10-31 03:10:46 +0300 >+++ src/gfx/gfx_init.c 2007-10-31 02:50:58 +0300 >@@ -517,13 +517,18 @@ > unsigned long > gfx_pci_config_read(unsigned long address) > { >- unsigned long value = 0xFFFFFFFF; >+ unsigned long value = 0xFFFFFFFF; >+ >+ outl(address, PCI_CONFIG_ADDR); >+ value = inl(PCI_CONFIG_DATA); >+ /* OUTD(PCI_CONFIG_ADDR, address); >+ value = IND(PCI_CONFIG_DATA); */ > >- OUTD(PCI_CONFIG_ADDR, address); >- value = IND(PCI_CONFIG_DATA); >- return (value); >+ return (value); > } > >+ >+ > /*----------------------------------------------------------------------------- > * gfx_pci_config_write > * > >--- src/gfx/init_gu1.c.orig 2007-10-31 03:11:34 +0300 >+++ src/gfx/init_gu1.c 2007-10-31 02:52:56 +0300 >@@ -128,6 +128,7 @@ > * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA > * > * END_NSC_LIC_GPL */ >+#include <sys/io.h> > > unsigned char gfx_gxm_config_read(unsigned char index); > unsigned long gu1_get_core_freq(void); >@@ -149,18 +150,27 @@ > unsigned char > gfx_gxm_config_read(unsigned char index) > { >- unsigned char value = 0xFF; >- unsigned char lock; >+ unsigned char value = 0xFF; >+ unsigned char lock; > >- OUTB(0x22, GXM_CONFIG_CCR3); >- lock = INB(0x23); >- OUTB(0x22, GXM_CONFIG_CCR3); >- OUTB(0x23, (unsigned char)(lock | 0x10)); >- OUTB(0x22, index); >- value = INB(0x23); >- OUTB(0x22, GXM_CONFIG_CCR3); >- OUTB(0x23, lock); >- return (value); >+/* OUTB(0x22, GXM_CONFIG_CCR3); >+ lock = INB(0x23); >+ OUTB(0x22, GXM_CONFIG_CCR3); >+ OUTB(0x23, (unsigned char)(lock | 0x10)); >+ OUTB(0x22, index); >+ value = INB(0x23); >+ OUTB(0x22, GXM_CONFIG_CCR3); >+ OUTB(0x23, lock); */ >+ >+ outb(GXM_CONFIG_CCR3,0x22); >+ lock = inb(0x23); >+ outb(GXM_CONFIG_CCR3,0x22); >+ outb( (unsigned char)(lock | 0x10),0x23); >+ outb( index,0x22); >+ value = inb(0x23); >+ outb(GXM_CONFIG_CCR3,0x22); >+ outb( lock,0x23); >+ return (value); > } > > /*-----------------------------------------------------------------------------
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 13285
: 2248