Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Aug 2002 13:14:55 +0100 (BST)
From:      Bruce M Simpson <bms@spc.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        joe@FreeBSD.org
Subject:   ports/42075: New port: devel/udesc_dump: Dump USB config descriptor for ugen
Message-ID:  <20020827121455.B54C09623@triage.dollah.com>

next in thread | raw e-mail | index | archive | help

>Number:         42075
>Category:       ports
>Synopsis:       New port: devel/udesc_dump: Dump USB config descriptor for ugen
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 27 05:20:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Bruce M Simpson
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD triage.dollah.com 4.6-STABLE FreeBSD 4.6-STABLE #1: Sun Aug 25 11:23:33 BST 2002 root@triage.dollah.com:/usr/src/sys/compile/TRIAGE i386


	
>Description:
	This is a tool to dump the USB configuration descriptor for a given
	ugen(4) device. It is fairly essential for developing USB device
	drivers.
>How-To-Repeat:
	
>Fix:

	

--- udesc_dump.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	udesc_dump
#	udesc_dump/Makefile
#	udesc_dump/pkg-descr
#	udesc_dump/pkg-comment
#	udesc_dump/pkg-plist
#	udesc_dump/distinfo
#	udesc_dump/files
#	udesc_dump/files/patch-Makefile
#	udesc_dump/files/patch-standard.c
#
echo c - udesc_dump
mkdir -p udesc_dump > /dev/null 2>&1
echo x - udesc_dump/Makefile
sed 's/^X//' >udesc_dump/Makefile << 'END-of-udesc_dump/Makefile'
X# New ports collection makefile for:    udesc_dump
X# Date created:         27 August 2002
X# Whom:                 Bruce M Simpson <bms@spc.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=       udesc_dump
XPORTVERSION=    1.3.0
XCATEGORIES=     devel
XMASTER_SITES=   http://home.jp.freebsd.org/~gehenna/src/
X
XMAINTAINER=     bms@spc.org
X
XMAN8=		udesc_dump.8
X
X.include <bsd.port.mk>
END-of-udesc_dump/Makefile
echo x - udesc_dump/pkg-descr
sed 's/^X//' >udesc_dump/pkg-descr << 'END-of-udesc_dump/pkg-descr'
Xudesc_dump is a tool which is used with the ugen(4) device driver to report
Xon the configuration descriptors of an attached USB device. It is commonly
Xused by device driver writers to gain as much information about a given
XUSB device as possible.
X
XWWW: http://home.jp.freebsd.org/~gehenna/USB/
X
XBruce
Xbms@spc.org
END-of-udesc_dump/pkg-descr
echo x - udesc_dump/pkg-comment
sed 's/^X//' >udesc_dump/pkg-comment << 'END-of-udesc_dump/pkg-comment'
XDump the USB device descriptor for any given ugen(4) device
END-of-udesc_dump/pkg-comment
echo x - udesc_dump/pkg-plist
sed 's/^X//' >udesc_dump/pkg-plist << 'END-of-udesc_dump/pkg-plist'
Xbin/udesc_dump
END-of-udesc_dump/pkg-plist
echo x - udesc_dump/distinfo
sed 's/^X//' >udesc_dump/distinfo << 'END-of-udesc_dump/distinfo'
XMD5 (udesc_dump-1.3.0.tar.gz) = 054b05c96a53190e9d0f08d3c2b840d8
END-of-udesc_dump/distinfo
echo c - udesc_dump/files
mkdir -p udesc_dump/files > /dev/null 2>&1
echo x - udesc_dump/files/patch-Makefile
sed 's/^X//' >udesc_dump/files/patch-Makefile << 'END-of-udesc_dump/files/patch-Makefile'
X--- Makefile.orig	Sat Jul 27 00:31:04 2002
X+++ Makefile	Tue Aug 27 13:11:17 2002
X@@ -8,11 +8,14 @@
X CFLAGS += -I${.CURDIR}/include
X CFLAGS += -ansi -pedantic \
X 	  -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual \
X-	  -Wchar-subscripts -Werror -Winline -Wmissing-prototypes \
X+	  -Wchar-subscripts -Winline -Wmissing-prototypes \
X 	  -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow \
X 	  -Wstrict-prototypes -Wwrite-strings -g
X 
X MAN	= udesc_dump.8
X MAN8	= udesc_dump.8
X+
X+BINDIR?=	${PREFIX}/bin
X+MANDIR?=	${PREFIX}/man/man
X 
X .include <bsd.prog.mk>
END-of-udesc_dump/files/patch-Makefile
echo x - udesc_dump/files/patch-standard.c
sed 's/^X//' >udesc_dump/files/patch-standard.c << 'END-of-udesc_dump/files/patch-standard.c'
X--- standard.c.orig	Wed Jul 31 16:34:52 2002
X+++ standard.c	Fri Aug 23 12:52:50 2002
X@@ -39,8 +39,10 @@
X 
X static void dump_config(const usb_config_descriptor_t *);
X static int dump_interface(const usb_descriptor_t *);
X-static void dump_interface_power(const usb_descriptor_t *);
X static void dump_endpoint(const usb_descriptor_t *);
X+#if !defined(__FreeBSD__)
X+static void dump_interface_power(const usb_descriptor_t *);
X+#endif
X 
X extern int indexes;
X 
X@@ -73,9 +75,11 @@
X 		case UDESC_ENDPOINT:
X 			dump_endpoint(desc);
X 			break;
X+#if !defined(__FreeBSD__)
X 		case UDESC_INTERFACE_POWER:
X 			dump_interface_power(desc);
X 			break;
X+#endif
X 		case UDESC_CS_DEVICE:
X 			dump_cs_device(desc, current_interface);
X 			break;
X@@ -195,6 +199,7 @@
X 	return (idesc->bInterfaceNumber);
X }
X 
X+#if !defined(__FreeBSD__)
X static void
X dump_interface_power(const usb_descriptor_t *desc)
X {
X@@ -247,6 +252,7 @@
X 
X 	printf("\n\n");
X }
X+#endif
X 
X static void
X dump_endpoint(const usb_descriptor_t *desc)
END-of-udesc_dump/files/patch-standard.c
exit
--- udesc_dump.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020827121455.B54C09623>