From owner-freebsd-mips@FreeBSD.ORG Tue Feb 23 08:22:08 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED67B106568B for ; Tue, 23 Feb 2010 08:22:08 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-px0-f176.google.com (mail-px0-f176.google.com [209.85.216.176]) by mx1.freebsd.org (Postfix) with ESMTP id C5BB38FC1D for ; Tue, 23 Feb 2010 08:22:08 +0000 (UTC) Received: by pxi6 with SMTP id 6so1906986pxi.14 for ; Tue, 23 Feb 2010 00:21:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type; bh=3ENE6mMX23qWJ+zejLEVvgTk4YGbIBMv267cBksGrCg=; b=J3sETC+JARaSVSuEMfiKpcAozZkVhSv5/kKn6+pGajVkccEg9g6dBdmvZRwju9mO0Y Ds28ipSdOmO95Z4hPJ0gNXFOmfVEvkoVJ4vK9R7pfwbSWTE8pe0Zp9uwmjeqVNwyolHJ mzRNiHUvbUZri16x4RNP8713TrXO7vqnBJdSU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=de8L2eiqQriZp/Q5lNpsaR9trBr94UaXnE47rTKtwrUL+qkZVieHxF9K88s7uvYCfB dzrwzK7B4GA8QoJq/J4pxnIDaQIDSCtACHOje8w9Zk2PfhCzxHbxl1wEhetta7/uqPtv ofC2HS20wNKmkhrtVpEY3k54o0wH6n7Lr3ZLk= MIME-Version: 1.0 Received: by 10.141.124.18 with SMTP id b18mr2926015rvn.151.1266913319167; Tue, 23 Feb 2010 00:21:59 -0800 (PST) Date: Tue, 23 Feb 2010 13:51:59 +0530 Message-ID: <98a59be81002230021j6a0cc408j99fe6a5d57a21aff@mail.gmail.com> From: "C. Jayachandran" To: Randall Stewart Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-mips@freebsd.org Subject: USB support for RMI processors X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2010 08:22:09 -0000 I've two patches to add USB EHCI support for XLS processors. This is tested with umass driver on a USB attached disk and flash drive. Please review - I've left the original NetBSD license on xls_ehci.c (which came from ehci_pci.c), I hope this is not an issue. http://sites.google.com/site/cjayachandran/files/iodi-bus.patch - Move rmi_pci_bus_space to header and avoid extern - remove unused and commented code (MIPS_BUS_SPACE_PCI, pic_usb_ack) - use rmi_pci_bus_space for USB too (needs byteswap) http://sites.google.com/site/cjayachandran/files/xls-ehci.patch - uncomment xls_ehci.c in files.xlr - changes to xls_ehci.c - updated with dev/usb/controller/ehci_*.c as reference The files sys/mips/rmi/ehcireg.h and sys/mips/rmi/ehcivar.h can be deleted since they are not used now. Also sys/mips/rmi/pcibus.c is unused. Thanks, JC.