From owner-freebsd-current@FreeBSD.ORG Wed Jan 6 11:37:25 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 79AB51065693; Wed, 6 Jan 2010 11:37:25 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by mx1.freebsd.org (Postfix) with ESMTP id DAD1F8FC18; Wed, 6 Jan 2010 11:37:24 +0000 (UTC) Received: by ewy26 with SMTP id 26so15311239ewy.3 for ; Wed, 06 Jan 2010 03:37:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=O3GND7INsTm3p8x87fSinTH4z4rPi2L0ASCjxw5+KEE=; b=ZmvXOOcJ/NsTAcx+lwTjMtrCbVooZWRSCTKbwen7skNiCqJHk/3pehAqvQRGpnOt3S x1PS4stD7ytW9f91RgyCWFwYr0lMz6+37mHvSo+9RbYYxyqMu39Ff0kY/BzsprIXjDA7 PPReqD0UJxsFPWJcS6DepTASojhQ7kneOAskU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=vCPlRRTFY/q4j3cuP6w/2iGh19RdUrqi755Kx8LFAVHCTPOYHjlxGm3PBJWPRPbuL7 bMzuaO+aVXN7ajgc0NlOrFriKaza3WXEab2Rhd+7OCXVQKmQU4ZVYRtbftp/RMXfshAx AU5X6cpu59ThPuCYGRv2zMGb4TFJ2EOEtCoO4= MIME-Version: 1.0 Received: by 10.216.88.144 with SMTP id a16mr5966988wef.208.1262777838172; Wed, 06 Jan 2010 03:37:18 -0800 (PST) In-Reply-To: <201001061216.12121.hselasky@c2i.net> References: <747dc8f31001051046v3fd62732j85b3df10e7db4d8d@mail.gmail.com> <20100105202205.GA29437@citylink.fud.org.nz> <747dc8f31001060217j4cf3156ehcc481c49194bdc9b@mail.gmail.com> <201001061216.12121.hselasky@c2i.net> From: Renato Botelho Date: Wed, 6 Jan 2010 09:36:58 -0200 Message-ID: <747dc8f31001060336j51d6c350x4abda99d18ec3423@mail.gmail.com> To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current@freebsd.org, Andrew Thompson Subject: Re: USB stop to identify sun keyboard X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jan 2010 11:37:25 -0000 On Wed, Jan 6, 2010 at 9:16 AM, Hans Petter Selasky wrote: > That is because these devices provide a device string, while your SUN keyboard > does not. See: > > usbconfig -u X -a Y dump_device_desc dump_curr_config_desc > > Look for fields starting with iXXXX . There is an iProduct string there: ugen0.4: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x0430 idProduct = 0x00a2 bcdDevice = 0x0104 iManufacturer = 0x0000 iProduct = 0x0001 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0022 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x00a0 bMaxPower = 0x0032 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0001 bInterfaceProtocol = 0x0001 iInterface = 0x0000 Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x10 RAW dump: 0x00 | 0x09, 0x21, 0x10, 0x01, 0x21, 0x01, 0x22, 0x40, 0x08 | 0x00 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x000a bRefresh = 0x0000 bSynchAddress = 0x0000 -- Renato Botelho