Author Topic: Sl6000 Hardware Accelerated Display?  (Read 41153 times)

cwaig

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Sl6000 Hardware Accelerated Display?
« on: December 03, 2004, 04:52:41 am »
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

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

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
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

SDL would go much quicker with a bit of the ol' hardware accel...
« Last Edit: December 03, 2004, 04:53:30 am by cwaig »
SL5500+Origo WIFI+Pocketop Keyboard+BlueMonkey Bluetooth+IBM Microdrive+SL6000+iRiver USB host+PackardBell USB RF mini-mouse+Cheapo Kingmax USB laptop Keyboard+Dynamode USB Ethernet Adaptor
Wrote a couple of things....
IRK, SubApplet, QMode2, NetActive, SimpleEdit, zPocketScript.

GoLinux

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
    • http://
Sl6000 Hardware Accelerated Display?
« Reply #1 on: December 04, 2004, 12:24:13 pm »
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.
____________________________
SL-6000L, Sharp ROM 1.12, Linux Kernel 2.4.18 with "pelrun patched" >1Gb SD driver
2Gb PNY SD
1Gb Sandisk SD
256Mb Sandisk CF
Psion 5mx
Psion 3c
D-Link DI-614+ 802.11b Access Point
Dell 4550 2.4GHz
Windows XP Home Edition (Sic.....)
MEPIS Linux 6.5.02 (YESSSSSS!!!)

cwaig

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Sl6000 Hardware Accelerated Display?
« Reply #2 on: December 04, 2004, 01:30:50 pm »
I believe the part number is TC6393XB - there's a tiny bit of information on Toshiba's website
here about it.
SL5500+Origo WIFI+Pocketop Keyboard+BlueMonkey Bluetooth+IBM Microdrive+SL6000+iRiver USB host+PackardBell USB RF mini-mouse+Cheapo Kingmax USB laptop Keyboard+Dynamode USB Ethernet Adaptor
Wrote a couple of things....
IRK, SubApplet, QMode2, NetActive, SimpleEdit, zPocketScript.

guylhem

  • Hero Member
  • *****
  • Posts: 577
    • View Profile
Sl6000 Hardware Accelerated Display?
« Reply #3 on: December 05, 2004, 10:25:15 am »
That would be a sweet addon to libsdl

GoLinux

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
    • http://
Sl6000 Hardware Accelerated Display?
« Reply #4 on: December 07, 2004, 01:38:25 am »
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.....
____________________________
SL-6000L, Sharp ROM 1.12, Linux Kernel 2.4.18 with "pelrun patched" >1Gb SD driver
2Gb PNY SD
1Gb Sandisk SD
256Mb Sandisk CF
Psion 5mx
Psion 3c
D-Link DI-614+ 802.11b Access Point
Dell 4550 2.4GHz
Windows XP Home Edition (Sic.....)
MEPIS Linux 6.5.02 (YESSSSSS!!!)

psycoman

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://www.tuxforum.com.br
Sl6000 Hardware Accelerated Display?
« Reply #5 on: January 02, 2005, 01:02:03 pm »
asny news about TC6393XB video chip  ?

GoLinux

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
    • http://
Sl6000 Hardware Accelerated Display?
« Reply #6 on: January 03, 2005, 04:38:50 pm »
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....  
____________________________
SL-6000L, Sharp ROM 1.12, Linux Kernel 2.4.18 with "pelrun patched" >1Gb SD driver
2Gb PNY SD
1Gb Sandisk SD
256Mb Sandisk CF
Psion 5mx
Psion 3c
D-Link DI-614+ 802.11b Access Point
Dell 4550 2.4GHz
Windows XP Home Edition (Sic.....)
MEPIS Linux 6.5.02 (YESSSSSS!!!)

psycoman

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://www.tuxforum.com.br
Sl6000 Hardware Accelerated Display?
« Reply #7 on: January 04, 2005, 05:43:17 am »
yeap, i send a email to this guy, he will send a partial document to me. lets see

someone can try, contact Toshiba ?

and some news, Wince .NET have a tc6393xb.dll, can use this for reverse engenier ?

psycoman

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://www.tuxforum.com.br
Sl6000 Hardware Accelerated Display?
« Reply #8 on: January 05, 2005, 08:29:34 am »
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

cwaig

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Sl6000 Hardware Accelerated Display?
« Reply #9 on: January 17, 2005, 03:46:40 pm »
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)....
SL5500+Origo WIFI+Pocketop Keyboard+BlueMonkey Bluetooth+IBM Microdrive+SL6000+iRiver USB host+PackardBell USB RF mini-mouse+Cheapo Kingmax USB laptop Keyboard+Dynamode USB Ethernet Adaptor
Wrote a couple of things....
IRK, SubApplet, QMode2, NetActive, SimpleEdit, zPocketScript.

seed

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://
Sl6000 Hardware Accelerated Display?
« Reply #10 on: April 16, 2005, 03:01:51 pm »
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)
contact me at souldadguy2@hotmail.com

xjqian

  • Sr. Member
  • ****
  • Posts: 497
    • View Profile
    • http://
Sl6000 Hardware Accelerated Display?
« Reply #11 on: April 16, 2005, 07:44:12 pm »
Quote
do someone know about video performace of the sl6000l compare to the c1000 or c3000 (TC6393XB video chip vs W100)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75536\"][{POST_SNAPBACK}][/a][/div]
video performance seems to be worse than than those with hardware accl.
My Blog | 6000L Tosa + sled | is: Angstrom | was: pdaXrom 1.1.0beta1 | was: stock 1.12 rom + no-ffpe fash kernel + X/Qt Debian |
CF GPS (FGPCFCD01) | USB "Prolific 2303" GPS (USB-UG-200) | Socket CF BT rev. H |  USB "Pegasus II" Ethernet (ADM8511) | PocketTop IR kbd | sip:527630@fwd.pulver.com
Todo: OESF wiki | stable VOIP app | usable GPS app |      Wishlist: VOIP + Bluetooth | GPS + Routing Calc

seed

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://
Sl6000 Hardware Accelerated Display?
« Reply #12 on: April 16, 2005, 09:22:02 pm »
Quote
Quote
do someone know about video performace of the sl6000l compare to the c1000 or c3000 (TC6393XB video chip vs W100)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75536\"][{POST_SNAPBACK}][/a][/div]
video performance seems to be worse than than those with hardware accl.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75563\"][{POST_SNAPBACK}][/a][/div]
..... i dont clearly understand
performance of the sl6000l are worse than c1000??
contact me at souldadguy2@hotmail.com

xjqian

  • Sr. Member
  • ****
  • Posts: 497
    • View Profile
    • http://
Sl6000 Hardware Accelerated Display?
« Reply #13 on: April 17, 2005, 02:52:56 pm »
Quote
Quote
Quote
do someone know about video performace of the sl6000l compare to the c1000 or c3000 (TC6393XB video chip vs W100)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75536\"][{POST_SNAPBACK}][/a][/div]
video performance seems to be worse than than those with hardware accl.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75563\"][{POST_SNAPBACK}][/a][/div]
..... i dont clearly understand
performance of the sl6000l are worse than c1000??
[div align=\"right\"][a href=\"index.php?act=findpost&pid=75575\"][{POST_SNAPBACK}][/a][/div]
not sure about c1k and c3k. but worse than c860 with w100 hard accl driver.
My Blog | 6000L Tosa + sled | is: Angstrom | was: pdaXrom 1.1.0beta1 | was: stock 1.12 rom + no-ffpe fash kernel + X/Qt Debian |
CF GPS (FGPCFCD01) | USB "Prolific 2303" GPS (USB-UG-200) | Socket CF BT rev. H |  USB "Pegasus II" Ethernet (ADM8511) | PocketTop IR kbd | sip:527630@fwd.pulver.com
Todo: OESF wiki | stable VOIP app | usable GPS app |      Wishlist: VOIP + Bluetooth | GPS + Routing Calc

guylhem

  • Hero Member
  • *****
  • Posts: 577
    • View Profile
Sl6000 Hardware Accelerated Display?
« Reply #14 on: April 17, 2005, 03:53:36 pm »
cwaig, did you got the docs I sent ?

Any progress ?