annotate vidix/README.dha @ 30534:65a8e80c1474

Avoid using sscanf for basic parsing, it is horribly slow. Now uses strncmp as a first step, which is 40 times faster.
author reimar
date Sun, 14 Feb 2010 13:57:30 +0000
parents 73714a7a98cf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8507
3f9940a98d7f updated
alex
parents: 4475
diff changeset
1 lidbha - Direct Hardware Access library
3f9940a98d7f updated
alex
parents: 4475
diff changeset
2 =======================================
3f9940a98d7f updated
alex
parents: 4475
diff changeset
3
3f9940a98d7f updated
alex
parents: 4475
diff changeset
4 This library was designed for providing direct hardware access under different
3f9940a98d7f updated
alex
parents: 4475
diff changeset
5 OS'es and architectures, so it's platform- and os-independent.
3f9940a98d7f updated
alex
parents: 4475
diff changeset
6
8508
50ec8b9699c4 ooh. many mistakes
alex
parents: 8507
diff changeset
7 The main project on the top of libdha is Vidix. It provides userspace
50ec8b9699c4 ooh. many mistakes
alex
parents: 8507
diff changeset
8 video drivers for Matrox, Ati, 3Dlabs, Trident (and it's still evolving).
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
9
8508
50ec8b9699c4 ooh. many mistakes
alex
parents: 8507
diff changeset
10 For the full list of supported OS'es read the sources, anyway here's a 'reported
50ec8b9699c4 ooh. many mistakes
alex
parents: 8507
diff changeset
11 as working' list (these platforms are used daily):
8507
3f9940a98d7f updated
alex
parents: 4475
diff changeset
12 Linux/x86
3f9940a98d7f updated
alex
parents: 4475
diff changeset
13 FreeBSD/x86
3f9940a98d7f updated
alex
parents: 4475
diff changeset
14 NetBSD/x86
3f9940a98d7f updated
alex
parents: 4475
diff changeset
15 Linux/PPC
3973
138800dfbe22 preliminary support of direct hardware access
nick
parents:
diff changeset
16
8507
3f9940a98d7f updated
alex
parents: 4475
diff changeset
17 There are different ways to access the hardware, normally only ROOT can do that.
11704
57c11c567f77 spelling + grammar
diego
parents: 8508
diff changeset
18 With root privileges libdha will run fine, but there are some others ways
8507
3f9940a98d7f updated
alex
parents: 4475
diff changeset
19 to use it as a normal user:
11704
57c11c567f77 spelling + grammar
diego
parents: 8508
diff changeset
20 1, set the SUID bit on the binary (in this way it runs with root privileges)
23644
73714a7a98cf Hint at the Makefile for information how to build dha with svgalib_helper
reimar
parents: 22921
diff changeset
21 2, use svgalib kernel helper (please read the comment in the Makefile)
8507
3f9940a98d7f updated
alex
parents: 4475
diff changeset
22 3, use dhahelper (not yet finished)
3f9940a98d7f updated
alex
parents: 4475
diff changeset
23
8508
50ec8b9699c4 ooh. many mistakes
alex
parents: 8507
diff changeset
24 The library is based on XFree86 and gfxdump (a utility from the GATOS project)
8507
3f9940a98d7f updated
alex
parents: 4475
diff changeset
25 sources.
3f9940a98d7f updated
alex
parents: 4475
diff changeset
26
3f9940a98d7f updated
alex
parents: 4475
diff changeset
27 Original import and design by Nick Kurshev and Alex Beregszaszi.
3f9940a98d7f updated
alex
parents: 4475
diff changeset
28 Current maintenance and dhahelper by Alex Beregszaszi.
3f9940a98d7f updated
alex
parents: 4475
diff changeset
29 Svgalib kernelhelper support by Matan Ziv-Av.
3f9940a98d7f updated
alex
parents: 4475
diff changeset
30 (for the e-mail addresses see the AUTHORS file in MPlayer)