OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

4 Pages V   1 2 3 > »   
Reply to this topicStart new topic
> Sl6000 Hardware Accelerated Display?, Anyone figured out how to use it?
cwaig
post Dec 3 2004, 01:52 AM
Post #1





Group: Members
Posts: 153
Joined: 5-January 04
Member No.: 1,081



I've been looking at the kernel source for the SL6000's framebuffer driver, and I can see an API provided to access the hardware acceleration - but it's documentation is pretty much zero sad.gif

The only example of it being actually used in the driver itself is the tc6393_clear_screen() function, that uses the hardware rectangle fill to clear the screen. There's a very interesting looking command set provided in the tc6393fb.h file, and an ioctl provided to pass lists of commands to the graphics hardware for processing - but the actual commands (although defined) aren't actually documented sad.gif

The clear screen example in the driver is
static u32 cmd[6];
cmd[0] = PXAIO_COMDI_DSADR|PXAIO_COMDD_DSADR(((int)remapped_fbuf));
cmd[1] = PXAIO_COMDI_DHPIX|PXAIO_COMDD_DHPIX(xres - 1);
cmd[2] = PXAIO_COMDI_DVPIX|PXAIO_COMDD_DVPIX(yres - 1);
cmd[3] = PXAIO_COMDI_FILL|PXAIO_COMDD_FILL(0xffff);
cmd[4] = PXAIO_COMDI_FLGO;

Using the ioctl interface to the framebuffer, this would be:
static u32 cmd[6];
cmd[0] = 5;
cmd[1] = PXAIO_COMDI_DSADR|PXAIO_COMDD_DSADR(((int)remapped_fbuf));
cmd[2] = PXAIO_COMDI_DHPIX|PXAIO_COMDD_DHPIX(xres - 1);
cmd[3] = PXAIO_COMDI_DVPIX|PXAIO_COMDD_DVPIX(yres - 1);
cmd[4] = PXAIO_COMDI_FILL|PXAIO_COMDD_FILL(0xffff);
cmd[5] = PXAIO_COMDI_FLGO;
ioctl(fbHandle,TC6393FB_ACC_CMD_WRITE,cmd);

and then I'm guessing that if you want to make sure it's completed before carrying on, you can use:
ioctl(fbHandle,TC6393FB_ACC_SYNC,0);

But the tc6393 looks like it can do blitting as well....I've no idea what the rest of the command API def's actually do though?

And glory be - Toshiba haven't released a datasheet for the chip sad.gif
When I eventually get my hands on my SL6000 (my wife's hidden it 'til Christmas) I'll start trying some of the commands, see if I can work it out through trial & error.....unless someone else beats me to it of course smile.gif

SDL would go much quicker with a bit of the ol' hardware accel...
Go to the top of the page
 
+Quote Post
GoLinux
post Dec 4 2004, 09:24 AM
Post #2





Group: Members
Posts: 82
Joined: 24-January 04
From: Boston, USA
Member No.: 1,531



Is this the same device?

http://www.mnementh.co.uk/eseries/docs/hwnotes/tc6393/

I don't have the programming skills required to write a driver, but I work for a semiconductor company (not Toshiba, by the way...)

If you have the exact part number of the chip(s) used in the graphic section of the SL-6000L I can try to find some documentation.
Go to the top of the page
 
+Quote Post
cwaig
post Dec 4 2004, 10:30 AM
Post #3





Group: Members
Posts: 153
Joined: 5-January 04
Member No.: 1,081



I believe the part number is TC6393XB - there's a tiny bit of information on Toshiba's website
here about it.
Go to the top of the page
 
+Quote Post
guylhem
post Dec 5 2004, 07:25 AM
Post #4





Group: Members
Posts: 577
Joined: 17-March 04
Member No.: 2,365



That would be a sweet addon to libsdl
Go to the top of the page
 
+Quote Post
GoLinux
post Dec 6 2004, 10:38 PM
Post #5





Group: Members
Posts: 82
Joined: 24-January 04
From: Boston, USA
Member No.: 1,531



cwaig,

the information you can find at the link I posted previously are for the TC6393XB, although it seems they deal mostly with the memory controller section.

I'll keep digging.....
Go to the top of the page
 
+Quote Post
psycoman
post Jan 2 2005, 10:02 AM
Post #6





Group: Members
Posts: 75
Joined: 2-December 04
Member No.: 5,713



asny news about TC6393XB video chip ?
Go to the top of the page
 
+Quote Post
GoLinux
post Jan 3 2005, 01:38 PM
Post #7





Group: Members
Posts: 82
Joined: 24-January 04
From: Boston, USA
Member No.: 1,531



Not yet... I only found this guy who wrote a driver for the NAND controller part of it:

http://lists.infradead.org/pipermail/linux...6/nand_tmio.obj

Il keep digging, I'll find a way to get a datasheet of this little monster.... mad.gif
Go to the top of the page
 
+Quote Post
psycoman
post Jan 4 2005, 02:43 AM
Post #8





Group: Members
Posts: 75
Joined: 2-December 04
Member No.: 5,713



yeap, i send a email to this guy, he will send a partial document to me. lets see smile.gif

someone can try, contact Toshiba ?

and some news, Wince .NET have a tc6393xb.dll, can use this for reverse engenier ?
Go to the top of the page
 
+Quote Post
psycoman
post Jan 5 2005, 05:29 AM
Post #9





Group: Members
Posts: 75
Joined: 2-December 04
Member No.: 5,713



i get with ion, one documentation about the chip.

not complet at all but have some details, with some need it to make some hardware drivers (SDL etc..) tell me and i will send the document
Go to the top of the page
 
+Quote Post
cwaig
post Jan 17 2005, 12:46 PM
Post #10





Group: Members
Posts: 153
Joined: 5-January 04
Member No.: 1,081



Has anyone made any progress with this (or seen the docs Psycoman mentioned)?

I gave it a bit of a bosh today (tried out the tests I was pondering back in december before I got my 6000), and the hardware rectangle fill stuff is straightforward (sample code available, if anyones interested). Looks like there's a line drawing mode as well (although I've not figured out how to make it do anything apart from 45degree lines). The raster op and blit stuff is still mostly a mystery (but I'm hoping to decipher some of it over the next few weeks).

I have to say, I'm surprised no-one else has tried messing with it (after all, the op-codes for the graphics hardware are given in the SL6000 kernel source)....
Go to the top of the page
 
+Quote Post
seed
post Apr 16 2005, 11:01 AM
Post #11





Group: Members
Posts: 88
Joined: 8-January 05
Member No.: 6,156



any new about the TC6393XB video chip ? do someone work on a hardware accelarated display ?
do someone know about video performace of the sl6000l compare to the c1000 or c3000 (TC6393XB video chip vs W100)
Go to the top of the page
 
+Quote Post
xjqian
post Apr 16 2005, 03:44 PM
Post #12





Group: Members
Posts: 500
Joined: 17-January 04
From: St. Louis, USA
Member No.: 1,478



QUOTE(seed @ Apr 16 2005, 02:01 PM)
do someone know about video performace of the sl6000l compare to the c1000 or c3000 (TC6393XB video chip vs W100)
*

video performance seems to be worse than than those with hardware accl.
Go to the top of the page
 
+Quote Post
seed
post Apr 16 2005, 05:22 PM
Post #13





Group: Members
Posts: 88
Joined: 8-January 05
Member No.: 6,156



QUOTE(xjqian @ Apr 16 2005, 11:44 PM)
QUOTE(seed @ Apr 16 2005, 02:01 PM)
do someone know about video performace of the sl6000l compare to the c1000 or c3000 (TC6393XB video chip vs W100)
*

video performance seems to be worse than than those with hardware accl.
*


..... i dont clearly understand
performance of the sl6000l are worse than c1000??
Go to the top of the page
 
+Quote Post
xjqian
post Apr 17 2005, 10:52 AM
Post #14





Group: Members
Posts: 500
Joined: 17-January 04
From: St. Louis, USA
Member No.: 1,478



QUOTE(seed @ Apr 16 2005, 08:22 PM)
QUOTE(xjqian @ Apr 16 2005, 11:44 PM)
QUOTE(seed @ Apr 16 2005, 02:01 PM)
do someone know about video performace of the sl6000l compare to the c1000 or c3000 (TC6393XB video chip vs W100)
*

video performance seems to be worse than than those with hardware accl.
*


..... i dont clearly understand
performance of the sl6000l are worse than c1000??
*


not sure about c1k and c3k. but worse than c860 with w100 hard accl driver.
Go to the top of the page
 
+Quote Post
guylhem
post Apr 17 2005, 11:53 AM
Post #15





Group: Members
Posts: 577
Joined: 17-March 04
Member No.: 2,365



cwaig, did you got the docs I sent ?

Any progress ?
Go to the top of the page
 
+Quote Post

4 Pages V   1 2 3 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th July 2014 - 03:22 AM