I just checked my TS7300 the blue is 6 bits using the 640x480 driver, but i
don't know much about
the mysterious transparency bit. So its RGB 565, maybe it goes to 4 bits blue
when this tranparency
bit is set.
Maybe thats what the equally mysterious bit 12 is of the VIDCTRL register.
I've still be unable to read from the VIDCTRL register, and i can't read back
from the framebuffer,
i'm curious if anyone else has noticed this or not ? It might be a problem with
the blit being in
progress since i can't successfully determine if it is, since my hardware locks
up if i read from
VIDCTRL.
This is the message i was referring to in the last post
///////////////
I use a macro define:
#define SetDispBufNums(x,y) (0x300 |(x<<3) | y)
Then I use:
VGAregs[_vVIDCTRL] = SetDispBufNums(1,2);
This selects screen 1 to view and 2 to edit (or was it the other way
round;)
Swapping the 1 and 2 will toggle displays. The values are 0..7.
main(){
int i;
volatile unsigned short *VGAregs; // VGA Registers 16 Bit
volatile unsigned short *fb; // Screen buffer 16 Bit
VGAregs = (unsigned short *)mmap(0, 4096, PROT_READ|PROT_WRITE,
MAP_SHARED, mem_fd, 0x72000000);
if (VGAregs == MAP_FAILED) { perror("mmap1:"); return 0; }
VGAregs += (0x30/sizeof(unsigned short));
fb = (unsigned short *)mmap(0, _scrW*_scrH*2, PROT_READ|PROT_WRITE,
MAP_SHARED, mem_fd, 0x72200000);
if (fb == MAP_FAILED) { perror("mmap2:"); return 0; }
VGAregs[_vVIDCTRL] = SetDispBufNums(1,2);
for (i=0; i<(640*480); i++) fb[i]=0xF800; // Fill Red
sleep(1);
VGAregs[_vVIDCTRL] = SetDispBufNums(2,1); // Display Red
for (i=0; i<(640*480); i++) fb[i]=0x07C0; // Fill Green
sleep(1);
VGAregs[_vVIDCTRL] = SetDispBufNums(1,2); // Display Green
sleep(1);
VGAregs[_vVIDCTRL] = SetDispBufNums(2,1); // Display Red
sleep(1);
VGAregs[_vVIDCTRL] = SetDispBufNums(1,2); // Display Green
}
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|