diff options
author | martin <martin@pkgsrc.org> | 2005-06-02 15:10:52 +0000 |
---|---|---|
committer | martin <martin@pkgsrc.org> | 2005-06-02 15:10:52 +0000 |
commit | aef9674ea1d024b4091bc13d6b388d75a05412c1 (patch) | |
tree | 96e89678daa25efcc0b0e1ff3410e12ea9a208ef | |
parent | c968fdaf4e2a284dd2cdc00306932eb00f820bce (diff) | |
download | pkgsrc-aef9674ea1d024b4091bc13d6b388d75a05412c1.tar.gz |
Import afbinit, a tool to download microcode to Sun AFB graphic cards.
-rw-r--r-- | sysutils/afbinit/DESCR | 6 | ||||
-rw-r--r-- | sysutils/afbinit/MESSAGE | 10 | ||||
-rw-r--r-- | sysutils/afbinit/Makefile | 18 | ||||
-rw-r--r-- | sysutils/afbinit/PLIST | 2 | ||||
-rw-r--r-- | sysutils/afbinit/distinfo | 6 | ||||
-rw-r--r-- | sysutils/afbinit/patches/patch-aa | 21 |
6 files changed, 63 insertions, 0 deletions
diff --git a/sysutils/afbinit/DESCR b/sysutils/afbinit/DESCR new file mode 100644 index 00000000000..0a4095e2c2d --- /dev/null +++ b/sysutils/afbinit/DESCR @@ -0,0 +1,6 @@ +This pkg provides a program that loads the microcode firmware onto Sun +Microsystems AFB Graphics Accelerators aka Sun Microsystems Elite 3D +found in many UltraSPARC systems. The microcode is necessary if you want +to run XFree86 with acceleration on these cards. +The microcode in itself has to be obtained from an existing SunOS/Solaris +installation. diff --git a/sysutils/afbinit/MESSAGE b/sysutils/afbinit/MESSAGE new file mode 100644 index 00000000000..e3437800a82 --- /dev/null +++ b/sysutils/afbinit/MESSAGE @@ -0,0 +1,10 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2005/06/02 15:10:52 martin Exp $ + +In order to use afbinit(8) you have to manually copy /usr/lib/afb.ucode +from a SunOS/Solaris installation. You might find it on Sun's website, too. + +To load the micrcocode into the first AFB card, use this command: + + afbinit /dev/fb0 afb.ucode +=========================================================================== diff --git a/sysutils/afbinit/Makefile b/sysutils/afbinit/Makefile new file mode 100644 index 00000000000..96ad9fad1b6 --- /dev/null +++ b/sysutils/afbinit/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/06/02 15:10:52 martin Exp $ + +DISTNAME= afbinit_1.0.orig +PKGNAME= afbinit-1.0 +CATEGORIES= sysutils graphics +MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/contrib/a/afbinit/} + +MAINTAINER= macallan@NetBSD.org +COMMENT= Firmware download tool for Sun AFB graphic cards + +WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/} +BUILD_TARGET= afbinit +ONLY_FOR_PLATFORM= *-*-sparc64 *-*-sparc + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/afbinit ${PREFIX}/bin + +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/afbinit/PLIST b/sysutils/afbinit/PLIST new file mode 100644 index 00000000000..337d567a9ee --- /dev/null +++ b/sysutils/afbinit/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/06/02 15:10:52 martin Exp $ +bin/afbinit diff --git a/sysutils/afbinit/distinfo b/sysutils/afbinit/distinfo new file mode 100644 index 00000000000..f03caa5b348 --- /dev/null +++ b/sysutils/afbinit/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/06/02 15:10:52 martin Exp $ + +SHA1 (afbinit_1.0.orig.tar.gz) = bb02434819301bb55e1d7f984540868353bd6153 +RMD160 (afbinit_1.0.orig.tar.gz) = a56f33696865fbc77b4b27f10b680b3d9a359635 +Size (afbinit_1.0.orig.tar.gz) = 2979 bytes +SHA1 (patch-aa) = ea57e2ca73123f3e71bb733d84fe5dc6d7db501e diff --git a/sysutils/afbinit/patches/patch-aa b/sysutils/afbinit/patches/patch-aa new file mode 100644 index 00000000000..25f8de8bc3f --- /dev/null +++ b/sysutils/afbinit/patches/patch-aa @@ -0,0 +1,21 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/06/02 15:10:52 martin Exp $ + +--- afbinit.c.orig 2001-11-30 03:04:21.000000000 +0100 ++++ afbinit.c 2005-06-02 15:22:11.000000000 +0200 +@@ -13,6 +13,7 @@ + #include <unistd.h> + #include <fcntl.h> + #include <stdio.h> ++#include <stdlib.h> + + /* Define this to debug the microcode loading procedure. */ + #undef DEBUG_UCODE_LOAD +@@ -193,7 +194,7 @@ + struct afb_ucode_header { + char ident[8]; + unsigned int ucode_words; +- unsigned int __unused[2]; ++ unsigned int unused[2]; + } ucheader; + unsigned int *ucode; + int afb_fd, ucode_fd, ucode_version; |