OpenCores
URL https://opencores.org/ocsvn/pci/pci/trunk

Subversion Repositories pci

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 35 to Rev 36
    Reverse comparison

Rev 35 → Rev 36

/trunk/apps/sw/driver/fb/spartan_fb.c
664,7 → 664,7
writel(0x80000000, pspartan_dev.base_map[0] + SPARTAN_W_AM1_ADDR);
 
/* Enable address traslation for CRT registers */
writel(0x03, pspartan_dev.base_map[0] + SPARTAN_W_IMG_CTRL1_ADDR);
writel(0x01, pspartan_dev.base_map[0] + SPARTAN_W_IMG_CTRL1_ADDR);
 
/* Set base address of frame buffer in CRT */
writel(video_base, pspartan_dev.base_map[1] + SPARTAN_CRT_ADDR);
/trunk/apps/sw/driver/fb/startx
1,5 → 1,4
#!/bin/sh
 
#!/bin/sh
# $XConsortium: startx.cpp,v 1.4 91/08/22 11:41:29 rws Exp $
# $XFree86: xc/programs/xinit/startx.cpp,v 3.2 1998/12/20 11:58:22 dawes Exp $
#
13,79 → 12,70
# Site administrators are STRONGLY urged to write nicer versions.
#
 
bindir=BINDIR
 
userclientrc=$HOME/.xinitrc
userserverrc=$HOME/.xserverrc
sysclientrc=$HOME/delete/xinitrc
sysserverrc=/etc/X11/xinit/xserverrc
clientargs=""
serverargs=""
 
if [ -f $userclientrc ]; then
clientargs=$userclientrc
else if [ -f $sysclientrc ]; then
clientargs=$sysclientrc
fi
fi
 
if [ -f $userserverrc ]; then
serverargs=$userserverrc
else if [ -f $sysserverrc ]; then
serverargs=$sysserverrc
fi
fi
 
display=:1
#server=/usr/X11R6/bin/XF86_FBDev
server=/usr/X11R6/bin/XFree86
#server=/home/simons/X11R6.5.1/bin/XFree86
whoseargs="client"
while [ "x$1" != "x" ]; do
case "$1" in
/''*|\.*) if [ "$whoseargs" = "client" ]; then
if [ "x$clientargs" = x ]; then
clientargs="$1"
else
clientargs="$clientargs $1"
fi
else
if [ "x$serverargs" = x ]; then
serverargs="$1"
else
serverargs="$serverargs $1"
fi
fi ;;
--) whoseargs="server" ;;
*) if [ "$whoseargs" = "client" ]; then
clientargs="$clientargs $1"
else
case "$1" in
:[0-9]) display="$1"
;;
*) serverargs="$serverargs $1"
;;
esac
fi ;;
esac
shift
done
 
# set up default Xauth info for this machine
mcookie=`mcookie`
serverargs="$serverargs -xf86config ./XF86Config-fb -auth $HOME/.Xauthority"
xauth add $display . $mcookie
xauth add `hostname -f`$display . $mcookie
xinit $clientargs -- $server $display $serverargs
 
# various machines need special cleaning up,
# which should be done here
 
 
 
 
 
 
 
 
 
bindir=BINDIR
 
userclientrc=$HOME/.xinitrc
userserverrc=$HOME/.xserverrc
sysclientrc=$HOME/delete/xinitrc
sysserverrc=/etc/X11/xinit/xserverrc
clientargs=""
serverargs=""
 
if [ -f $userclientrc ]; then
clientargs=$userclientrc
else if [ -f $sysclientrc ]; then
clientargs=$sysclientrc
fi
fi
 
if [ -f $userserverrc ]; then
serverargs=$userserverrc
else if [ -f $sysserverrc ]; then
serverargs=$sysserverrc
fi
fi
 
display=:1
#server=/usr/X11R6/bin/XF86_FBDev
server=/usr/X11R6/bin/XFree86
#server=/home/simons/X11R6.5.1/bin/XFree86
whoseargs="client"
while [ "x$1" != "x" ]; do
case "$1" in
/''*|\.*) if [ "$whoseargs" = "client" ]; then
if [ "x$clientargs" = x ]; then
clientargs="$1"
else
clientargs="$clientargs $1"
fi
else
if [ "x$serverargs" = x ]; then
serverargs="$1"
else
serverargs="$serverargs $1"
fi
fi ;;
--) whoseargs="server" ;;
*) if [ "$whoseargs" = "client" ]; then
clientargs="$clientargs $1"
else
case "$1" in
:[0-9]) display="$1"
;;
*) serverargs="$serverargs $1"
;;
esac
fi ;;
esac
shift
done
 
# set up default Xauth info for this machine
mcookie=`mcookie`
serverargs="$serverargs -xf86config ./XF86Config-fb -auth $HOME/.Xauthority"
xauth add $display . $mcookie
xauth add `hostname -f`$display . $mcookie
xinit $clientargs -- $server $display $serverargs
 
# various machines need special cleaning up,
# which should be done here
/trunk/apps/sw/driver/fb/XF86Config-fb
1,77 → 1,77
# XFree86 4.0 configuration generated by Xconfigurator
 
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
 
# By default, Red Hat Linux 6.0 and later use xfs
 
Section "Files"
FontPath "unix/:7100"
EndSection
 
# This loads all the modules...
 
Section "Module"
Load "GLcore"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "pex5"
Load "record"
Load "xie"
Load "v4l"
EndSection
 
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbLayout" "us"
EndSection
 
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Device" "/dev/mouse"
Option "Protocol" "MouseManPlusPS/2"
Option "Emulate3Buttons" "off"
Option "ZAxisMapping" "4 5"
EndSection
 
Section "Monitor"
Identifier "Iiyama A201HT, VisionMaster Pro 510"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 30.0-130.0
VertRefresh 50.0-160.0
EndSection
 
Section "Device"
Identifier "spartan"
Driver "fbdev"
Option "UseFBDev"
Option "fbdev" "/dev/fb1"
Option "ShadowFB" "off"
EndSection
 
Section "Screen"
Identifier "Screen0"
Device "spartan"
Monitor "Iiyama A201HT, VisionMaster Pro 510"
DefaultDepth 8
Subsection "Display"
Depth 8
Modes "default"
EndSubSection
Subsection "Display"
Depth 8
Modes "default"
EndSubSection
EndSection
 
Section "DRI"
EndSection
# XFree86 4.0 configuration generated by Xconfigurator
 
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
 
# By default, Red Hat Linux 6.0 and later use xfs
 
Section "Files"
FontPath "unix/:7100"
EndSection
 
# This loads all the modules...
 
Section "Module"
Load "GLcore"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "pex5"
Load "record"
Load "xie"
Load "v4l"
EndSection
 
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbLayout" "us"
EndSection
 
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Device" "/dev/mouse"
Option "Protocol" "MouseManPlusPS/2"
Option "Emulate3Buttons" "off"
Option "ZAxisMapping" "4 5"
EndSection
 
Section "Monitor"
Identifier "Iiyama A201HT, VisionMaster Pro 510"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 30.0-130.0
VertRefresh 50.0-160.0
EndSection
 
Section "Device"
Identifier "spartan"
Driver "fbdev"
Option "UseFBDev"
Option "fbdev" "/dev/fb1"
Option "ShadowFB" "off"
EndSection
 
Section "Screen"
Identifier "Screen0"
Device "spartan"
Monitor "Iiyama A201HT, VisionMaster Pro 510"
DefaultDepth 8
Subsection "Display"
Depth 8
Modes "default"
EndSubSection
Subsection "Display"
Depth 8
Modes "default"
EndSubSection
EndSection
 
Section "DRI"
EndSection

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.