head 1.5; access; symbols pkgsrc-2019Q4:1.4.0.98 pkgsrc-2019Q4-base:1.4 pkgsrc-2019Q3:1.4.0.94 pkgsrc-2019Q3-base:1.4 pkgsrc-2019Q2:1.4.0.92 pkgsrc-2019Q2-base:1.4 pkgsrc-2019Q1:1.4.0.90 pkgsrc-2019Q1-base:1.4 pkgsrc-2018Q4:1.4.0.88 pkgsrc-2018Q4-base:1.4 pkgsrc-2018Q3:1.4.0.86 pkgsrc-2018Q3-base:1.4 pkgsrc-2018Q2:1.4.0.84 pkgsrc-2018Q2-base:1.4 pkgsrc-2018Q1:1.4.0.82 pkgsrc-2018Q1-base:1.4 pkgsrc-2017Q4:1.4.0.80 pkgsrc-2017Q4-base:1.4 pkgsrc-2017Q3:1.4.0.78 pkgsrc-2017Q3-base:1.4 pkgsrc-2017Q2:1.4.0.74 pkgsrc-2017Q2-base:1.4 pkgsrc-2017Q1:1.4.0.72 pkgsrc-2017Q1-base:1.4 pkgsrc-2016Q4:1.4.0.70 pkgsrc-2016Q4-base:1.4 pkgsrc-2016Q3:1.4.0.68 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.4.0.66 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.4.0.64 pkgsrc-2016Q1-base:1.4 pkgsrc-2015Q4:1.4.0.62 pkgsrc-2015Q4-base:1.4 pkgsrc-2015Q3:1.4.0.60 pkgsrc-2015Q3-base:1.4 pkgsrc-2015Q2:1.4.0.58 pkgsrc-2015Q2-base:1.4 pkgsrc-2015Q1:1.4.0.56 pkgsrc-2015Q1-base:1.4 pkgsrc-2014Q4:1.4.0.54 pkgsrc-2014Q4-base:1.4 pkgsrc-2014Q3:1.4.0.52 pkgsrc-2014Q3-base:1.4 pkgsrc-2014Q2:1.4.0.50 pkgsrc-2014Q2-base:1.4 pkgsrc-2014Q1:1.4.0.48 pkgsrc-2014Q1-base:1.4 pkgsrc-2013Q4:1.4.0.46 pkgsrc-2013Q4-base:1.4 pkgsrc-2013Q3:1.4.0.44 pkgsrc-2013Q3-base:1.4 pkgsrc-2013Q2:1.4.0.42 pkgsrc-2013Q2-base:1.4 pkgsrc-2013Q1:1.4.0.40 pkgsrc-2013Q1-base:1.4 pkgsrc-2012Q4:1.4.0.38 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q3:1.4.0.36 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.34 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.4.0.32 pkgsrc-2012Q1-base:1.4 pkgsrc-2011Q4:1.4.0.30 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q3:1.4.0.28 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.26 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.24 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.22 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.20 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.18 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.16 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.4.0.14 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.4.0.12 pkgsrc-2009Q3-base:1.4 pkgsrc-2009Q2:1.4.0.10 pkgsrc-2009Q2-base:1.4 pkgsrc-2009Q1:1.4.0.8 pkgsrc-2009Q1-base:1.4 pkgsrc-2008Q4:1.4.0.6 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.4 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.2 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.3.0.48 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.46 pkgsrc-2008Q1:1.3.0.44 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.42 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.40 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.38 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.36 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.34 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.32 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.30 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.28 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.26 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.24 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.22 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.20 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.18 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.16 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.3.0.14 pkgsrc-2004Q2-base:1.3 pkgsrc-2004Q1:1.3.0.12 pkgsrc-2004Q1-base:1.3 pkgsrc-2003Q4:1.3.0.10 pkgsrc-2003Q4-base:1.3 netbsd-1-6-1:1.3.0.6 netbsd-1-6-1-base:1.3 netbsd-1-6:1.3.0.8 netbsd-1-6-RELEASE-base:1.3 pkgviews:1.3.0.4 pkgviews-base:1.3 buildlink2:1.3.0.2 buildlink2-base:1.3 netbsd-1-5-PATCH003:1.3 netbsd-1-5-PATCH001:1.3 netbsd-1-5-RELEASE:1.3 netbsd-1-4-PATCH003:1.3 netbsd-1-4-PATCH002:1.3 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.5 date 2020.01.29.19.00.34; author maya; state dead; branches; next 1.4; commitid JDjVXcHPhz5YoCUB; 1.4 date 2008.08.02.18.32.15; author dholland; state Exp; branches; next 1.3; 1.3 date 2000.01.11.11.31.19; author agc; state Exp; branches; next 1.2; 1.2 date 99.12.31.22.07.49; author agc; state Exp; branches; next 1.1; 1.1 date 99.12.31.21.19.50; author agc; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.12.31.21.19.50; author agc; state Exp; branches; next ; desc @@ 1.5 log @Remove Rio-related packages. These pacakges are intended to handle an early 2000s MP3 player. I expect they are no longer in use. Proposed on pkgsrc-users a month ago. @ text @$NetBSD: patch-ab,v 1.4 2008/08/02 18:32:15 dholland Exp $ Add NetBSD and Solaris platforms Add inb() and outb() from XFree86 sources. Add NetBSD/x86_64 support. --- rio.cpp.orig 1999-06-11 12:26:46.000000000 -0400 +++ rio.cpp 2008-08-02 14:16:07.000000000 -0400 @@@@ -109,11 +109,101 @@@@ #define CLOCK_SECOND ((int)CLOCKS_PER_SEC) #define DELETEARRAY delete +#elif defined(__NetBSD__) + // NetBSD/i386,amd64 g++ + #include + #include + #include + //#include + #define OUTPORT(p,v) outb( p, v ) + #define INPORT(p) inb( p ) + #define CLOCK_SECOND CLOCKS_PER_SEC + #define DELETEARRAY delete[] + +#elif defined(__sun__) && defined(__svr4__) + // Solaris/i386 g++ + #include + #include + #include + #include + #include + #include + #define OUTPORT(p,v) outb( p, v ) + #define INPORT(p) inb( p ) + #define CLOCK_SECOND CLOCKS_PER_SEC + #define DELETEARRAY delete[] + #else // not supported #error ! ! compiler/platform not supported ! ! #endif +#if defined(__NetBSD__) +/* copied from the XFree86 sources */ +/* xc/programs/Xserver/hw/xfree86/common/compiler.h */ +/* $XFree86: xc/programs/Xserver/hw/xfree86/common/compiler.h,v 3.24.2.4 1998/10/18 20:42:10 hohndel Exp $ */ +/* + * Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany. + * + * Permission to use, copy, modify, distribute, and sell this software and its + * documentation for any purpose is hereby granted without fee, provided that + * the above copyright notice appear in all copies and that both that + * copyright notice and this permission notice appear in supporting + * documentation, and that the name of Thomas Roell not be used in + * advertising or publicity pertaining to distribution of the software without + * specific, written prior permission. Thomas Roell makes no representations + * about the suitability of this software for any purpose. It is provided + * "as is" without express or implied warranty. + * + * THOMAS ROELL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO + * EVENT SHALL THOMAS ROELL BE LIABLE FOR ANY SPECIAL, INDIRECT OR + * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, + * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER + * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + * PERFORMANCE OF THIS SOFTWARE. + * + */ +/* $XConsortium: compiler.h /main/16 1996/10/25 15:38:34 kaleb $ */ +/* also hacked by agc to do i386_iopl, and by dholland for x86_64_iopl */ +static int ports_enabled; + +static __inline__ unsigned int +inb(unsigned short int port) +{ + unsigned char ret; + + if (!ports_enabled) { +#ifdef __i386__ + i386_iopl(1); +#endif +#ifdef __x86_64__ + x86_64_iopl(1); +#endif + ports_enabled = 1; + } + __asm__ __volatile__("inb %1,%0" : + "=a" (ret) : + "d" (port)); + return ret; +} + +static __inline__ void +outb(unsigned short int port, unsigned char val) +{ + if (!ports_enabled) { +#ifdef __i386__ + i386_iopl(1); +#endif +#ifdef __x86_64__ + x86_64_iopl(1); +#endif + ports_enabled = 1; + } + __asm__ __volatile__("outb %0,%1" : :"a" (val), "d" (port)); +} +#endif + // port offset constants #define OFFSET_PORT_DATA 0 #define OFFSET_PORT_STATUS 1 @ 1.4 log @Make this build on amd64. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.3 2000/01/11 11:31:19 agc Exp $ @ 1.3 log @Make this program work. + add -li386, and a check to make sure that root is running the program (for obvious reasons) + add a small shell script to find the lpt port easily Initialisation of flash RAM on the rio is slow, but upload works quite well and fast. Not yet tested with external flash media. @ text @d1 1 a1 1 $NetBSD$ d5 1 d7 3 a9 4 --- rio.cpp 1999/12/17 17:42:31 1.1 +++ rio.cpp 1999/12/17 17:44:25 +++ rio.cpp Fri Jan 7 12:43:45 2000 @@@@ -109,9 +109,89 @@@@ d14 1 a14 1 + // NetBSD/i386 g++ d18 1 a18 1 + #include d40 2 a41 2 +#endif + d69 1 a69 1 +/* also hacked by agc to do i386_iopl */ d78 1 d80 4 d96 1 d98 4 d106 2 a107 2 #endif d109 2 @ 1.2 log @Add the XFree86 copyright notice from the file from which inb() and outb() were taken. Regenerate patchsum. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.1.1.1 1999/12/31 21:19:50 agc Exp $ d8 2 a9 1 @@@@ -109,9 +109,78 @@@@ d14 1 a14 1 + // NetBSD g++ d17 1 d25 1 a25 1 + // NetBSD g++ d43 2 a44 2 +/* copied from the XFree86 sources, the copyright notice follows (agc): */ + d69 2 d77 4 d90 4 @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d8 1 a8 1 @@@@ -109,9 +109,53 @@@@ d41 27 a67 2 +/* copied from the XFree86 sources */ +/* xc/programs/Xserver/hw/xfree86/common/compiler.h */ @ 1.1.1.1 log @Import the Snowblind Alliance rio tools into the NetBSD packages collection: 'rio' is a simple command line utility which allows you to display and manage files on your Diamond Rio portable music player. At present the Rio utility supports the Diamond Rio PMP300 with 32M internal flash memory. Additional external flash memory is now supported thanks to the work done by Guido March (march@@pc40.mpier.uni-frankfurt.de). @ text @@