# HG changeset patch # User alex # Date 1040494270 0 # Node ID 3f9940a98d7fe51b51e1f8187bd3347c4d0ca8cb # Parent 55e80f13c826cff38a8e28370ce4e4b17f0dea99 updated diff -r 55e80f13c826 -r 3f9940a98d7f libdha/.cvsignore --- a/libdha/.cvsignore Sat Dec 21 17:49:52 2002 +0000 +++ b/libdha/.cvsignore Sat Dec 21 18:11:10 2002 +0000 @@ -1,3 +1,4 @@ +*.o .depend pci.db pci_vendors.h @@ -5,4 +6,4 @@ pci_names.c pci_names.h pci_dev_ids.c -libdha.so.* +libdha.so* diff -r 55e80f13c826 -r 3f9940a98d7f libdha/README --- a/libdha/README Sat Dec 21 17:49:52 2002 +0000 +++ b/libdha/README Sat Dec 21 18:11:10 2002 +0000 @@ -1,12 +1,30 @@ -libdha - Library of Direct Hardware Access. -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -This library was designed for direct hardware access under different -OS and architectures. It's not linux specific only (like harddrake -and other). +lidbha - Direct Hardware Access library +======================================= + +This library was designed for providing direct hardware access under different +OS'es and architectures, so it's platform- and os-independent. + +The main project on tthe top of libdha is Vidix. It provides userspace +video drivers (Matrox, Ati, 3Dlabs, Trident). -This library is based on gfxdump utility from GATOS project. -Full list of supported OS'es see in libdha.h +For the full list of supported OS'es read the sources, but here's a reported +as working list (these platforms are used daily): + Linux/x86 + FreeBSD/x86 + NetBSD/x86 + Linux/PPC -Note: This library requires ROOT privileges or SUID'ed executable -file (same as XServer). -(Or use newly developed libdha kernel helper. Look at kernelhelper/dhahelper.c) +There are different ways to access the hardware, normally only ROOT can do that. +With root privileges libdha will finely run, but there are some others ways +to use it as a normal user: +1, set the SUID bit on the binary (in this was it runs with root priviliges) +2, use svgalib kernel helper +3, use dhahelper (not yet finished) + +The library is based on XFree86 and gfxdump (a utility from GATOS project) +sources. + +Original import and design by Nick Kurshev and Alex Beregszaszi. +Current maintenance and dhahelper by Alex Beregszaszi. +Svgalib kernelhelper support by Matan Ziv-Av. +(for the e-mail addresses see the AUTHORS file in MPlayer)