[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Graphic calls portability
From: |
Vincent Pelletier |
Subject: |
Graphic calls portability |
Date: |
Wed, 24 Aug 2005 09:57:31 +0200 |
User-agent: |
Debian Thunderbird 1.0.6 (X11/20050802) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi.
I implemented framebuffer basic primitives for ieee1275.
Here is a picture of what I get :
http://www.sysif.net/~vincent/sparc64-fb.png
For now it only works on the ati framebuffer card in my U10, because the
Creator 3D card seems only to offer 1bit colors, and almost no packages
functions. Full details below (both cards were open'ed, and they get
some more properties when it's the case, like "address").
ok cd ati
ok words
selftest disp-test close remove restore
draw-logo write open install
self-test read-rectangle draw-rectangle
fill-rectangle get-colors set-colors color!
color@ dimensions r1600x1200x70 r1600x1200x60
r1600x1000x76 r1600x1000x66 r1440x900x76 r1280x1024x85
r1280x1024x76 r1280x1024x75 r1280x1024x67 r1280x1024x60
r1280x800x76 r1152x900x76 r1152x900x66 r1024x800x84
r1024x768x77 r1024x768x75 r1024x768x70 r1024x768x60
r800x600x75 r640x480x60 r1600x1200x70x8
r1600x1200x60x8 r1600x1000x76x8
r1600x1000x66x8 r1440x900x76x8
r1280x1024x85x8 r1280x1024x76x8
r1280x1024x75x8 r1280x1024x67x8
r1280x1024x60x8 r1280x800x76x8
r1152x900x76x24 r1152x900x76x8
r1152x900x66x24 r1152x900x66x8
r1024x800x84x24 r1024x800x84x8
r1024x768x77x24 r1024x768x77x8
r1024x768x75x24 r1024x768x75x8
r1024x768x70x24 r1024x768x70x8
r1024x768x60x24 r1024x768x60x8
r800x600x75x24
r800x600x75x8 r640x480x60x24 r640x480x60x8
.version_pgx
ok .properties
address fe000000
assigned-addresses 82011010 00000000 e1000000 00000000 01000000
82011018 00000000 e2000000 00000000 00001000
aty,fcode 1.60
aty,card# 109-41900-00
aty,rom# 113-41901-104
model ATY,GT-C
name SUNW,m64B
pgx_version @(#)pgx24.fth 1.8 01/05/15
reg 00011000 00000000 00000000 00000000 00000000
02011010 00000000 00000000 00000000 01000000
02011018 00000000 00000000 00000000 00001000
character-set ISO8859-1
device_type display
linebytes 00 00 04 80
depth 00 00 00 08
height 00 00 03 84
width 00 00 04 80
fb-memory 00 00 00 04
aty,flags 00 00 00 02
aty,status 00 00 00 00
fast-back-to-back
devsel-speed 00000001
class-code 00030000
interrupts 00000001
max-latency 00000000
min-grant 00000008
revision-id 0000005c
device-id 00004750
vendor-id 00001002
ok cd screen
ok words
selftest disp-test close remove restore
draw-logo write open install
ffb_change_scrn_params ffb_do_edid .version_ffb
ok .properties
character-set ISO8859-1
address fdbee000
ihandle ff f9 2a 70
reg 000001fc 00000000 00000000 00000400
000001fc 00400000 00000000 00200000
000001fc 00600000 00000000 00200000
000001fc 01000000 00000000 00400000
000001fc 01400000 00000000 00400000
000001fc 01800000 00000000 00400000
000001fc 01c00000 00000000 00400000
000001fc 02000000 00000000 01000000
000001fc 03000000 00000000 01000000
000001fc 04000000 00000000 00400000
000001fc 04400000 00000000 00400000
000001fc 04800000 00000000 00400000
000001fc 04c00000 00000000 00400000
000001fc 05000000 00000000 01000000
000001fc 06000000 00000000 02000000
000001fc 09000000 00000000 00800000
000001fc 09800000 00000000 00800000
000001fc 0a000000 00000000 01000000
000001fc 0b000000 00000000 00800000
000001fc 0b800000 00000000 00800000
000001fc 0c000000 00000000 00400000
000001fc 0c800000 00000000 00800000
000001fc 0d000000 00000000 00800000
000001fc 0d800000 00000000 00800000
fbc_reg_id 32 41 90 6d
ramdac_rev 00 00 00 01
fcode_version @(#)ffb2p.fth 2.9 98/07/14
model SUNW,501-4788
board_type 00 00 00 33
upa-interrupt-slave
interrupts 00000005
upa-portid 0000001e
monitor_mode 00 00 00 02
v_freq 00 00 00 4b
height 00 00 04 b0
width 00 00 06 40
edid_data 00 ff ff ff ff ff ff 00 26 cd 18 19 ef d0 fb 02
no_edid_blks 00 00 00 01
device_type display
name SUNW,ffb
Now the point of my mail :
Couldn't we make a common interface for all graphic calls, so the
graphic commands would be in /commands ?
The needed commands would be the ones already defined in
video/i386/pc/vbe.c with those changes :
- -Add a function to list the available framebuffers
- -Allow to specify the framebuffer to open
- -Add a framebuffer handles (like file handles) for later use in
framebuffer functions
Exact prototypes to be defined, but if someone works on them, please
consider 64 bits archs :) .
Vincent Pelletier
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDDChrFEQoKRQyjtURAiYmAJ46x+0T+8UNjC3slKm9dewKLVR70QCfaFpq
lSi9S3+h8zlc7UpwI3eUa/0=
=Nhdh
-----END PGP SIGNATURE-----
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
- Graphic calls portability,
Vincent Pelletier <=