From owner-freebsd-usb@FreeBSD.ORG Tue Jun 19 17:21:00 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8DDD7106564A for ; Tue, 19 Jun 2012 17:21:00 +0000 (UTC) (envelope-from yerenkow@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 493088FC0C for ; Tue, 19 Jun 2012 17:21:00 +0000 (UTC) Received: by yenl8 with SMTP id l8so5802243yen.13 for ; Tue, 19 Jun 2012 10:20:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=bB3Tg2BVSafAOcKg6gCRTet6CIE5aAeKgcuaPIrojLA=; b=VAfwRpX5cMVAUBL7zmZ+9/6guJFVfFJ+2J87whJm0KFSKCmQpwacNZYE8sVzKJ61yR Ytp9k2IpuWSTyr4xhxjHxOkzghi2bhjaG5F9Svl955r30TmMJNQ7vhxuJbcLz5zFj71A IR19rH6FVv1Gc++GktU42fFPtKSc39xYuueH17XiM1bSBR9QxcPY+NsAHcHbmjtUPXC7 2J5CP/dLWvlKQ2SNLskErQyDdZ9j5sP1+rNNSoe249eobd0exnRACxG1nrUbBfFPs3e7 NFYlgyZGLprHG48yRsi4KyFTLLa88q7Dt4lWFmxnthzDNm6sB3iB4WvPC+/fjcGrb5qQ 2cfg== MIME-Version: 1.0 Received: by 10.50.36.199 with SMTP id s7mr2025012igj.48.1340126459410; Tue, 19 Jun 2012 10:20:59 -0700 (PDT) Received: by 10.231.235.9 with HTTP; Tue, 19 Jun 2012 10:20:59 -0700 (PDT) In-Reply-To: <201206191854.33487.hselasky@c2i.net> References: <201206191854.33487.hselasky@c2i.net> Date: Tue, 19 Jun 2012 20:20:59 +0300 Message-ID: From: Alexander Yerenkow To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-usb@freebsd.org Subject: Re: Internal Card Reader X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2012 17:21:00 -0000 2012/6/19 Hans Petter Selasky : > On Tuesday 19 June 2012 18:51:14 Alexander Yerenkow wrote: >> Hello all! >> I have here internal card reader (some cheap one), which detects as: >> >> ugen4.2: at usbus4, cfg=0 md=HOST >> spd=HIGH (480Mbps) pwr=ON >> >> What I need to produce(info/code/patches etc) to make this card reader >> work under FreeBSD? :) > > Can you dump the device and configuration descriptor using usbconfig ? > > --HPS # usbconfig -u 4 -a 2 dump_info ugen4.2: at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON # usbconfig -u 4 -a 2 dump_device_desc ugen4.2: at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x0d8c idProduct = 0x5200 bcdDevice = 0x0100 iManufacturer = 0x0000 iProduct = 0x0000 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 # usbconfig -u 4 -a 2 dump_curr_config_desc ugen4.2: at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0027 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0080 bMaxPower = 0x00fa Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0003 bInterfaceClass = 0x00ff bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x00ff iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0001 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 2 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0084 bmAttributes = 0x0003 wMaxPacketSize = 0x0004 bInterval = 0x0009 bRefresh = 0x0000 bSynchAddress = 0x0000 Something like this? -- Regards, Alexander Yerenkow