From owner-svn-src-projects@FreeBSD.ORG Thu Jul 30 23:54:01 2009 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2041E1065678; Thu, 30 Jul 2009 23:54:01 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E80558FC16; Thu, 30 Jul 2009 23:54:00 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n6UNs05j049670; Thu, 30 Jul 2009 23:54:00 GMT (envelope-from gonzo@svn.freebsd.org) Received: (from gonzo@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n6UNs0oN049667; Thu, 30 Jul 2009 23:54:00 GMT (envelope-from gonzo@svn.freebsd.org) Message-Id: <200907302354.n6UNs0oN049667@svn.freebsd.org> From: Oleksandr Tymoshenko Date: Thu, 30 Jul 2009 23:54:00 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r195985 - projects/mips/sys/mips/atheros X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jul 2009 23:54:01 -0000 Author: gonzo Date: Thu Jul 30 23:54:00 2009 New Revision: 195985 URL: http://svn.freebsd.org/changeset/base/195985 Log: - Make USB part of AR71XX kernel buildable again Modified: projects/mips/sys/mips/atheros/ar71xx_ehci.c projects/mips/sys/mips/atheros/ar71xx_ohci.c Modified: projects/mips/sys/mips/atheros/ar71xx_ehci.c ============================================================================== --- projects/mips/sys/mips/atheros/ar71xx_ehci.c Thu Jul 30 23:48:29 2009 (r195984) +++ projects/mips/sys/mips/atheros/ar71xx_ehci.c Thu Jul 30 23:54:00 2009 (r195985) @@ -35,11 +35,14 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include +#include +#include #include -#include #include +#include #include #include @@ -129,7 +132,7 @@ ar71xx_ehci_attach(device_t self) sc->sc_bus.devices_max = EHCI_MAX_DEVICES; /* get all DMA memory */ - if (usb2_bus_mem_alloc_all(&sc->sc_bus, + if (usb_bus_mem_alloc_all(&sc->sc_bus, USB_GET_DMA_TAG(self), &ehci_iterate_hw_softc)) { return (ENOMEM); } @@ -257,7 +260,7 @@ ar71xx_ehci_detach(device_t self) sc->sc_io_res); sc->sc_io_res = NULL; } - usb2_bus_mem_free_all(&sc->sc_bus, &ehci_iterate_hw_softc); + usb_bus_mem_free_all(&sc->sc_bus, &ehci_iterate_hw_softc); return (0); } Modified: projects/mips/sys/mips/atheros/ar71xx_ohci.c ============================================================================== --- projects/mips/sys/mips/atheros/ar71xx_ohci.c Thu Jul 30 23:48:29 2009 (r195984) +++ projects/mips/sys/mips/atheros/ar71xx_ohci.c Thu Jul 30 23:54:00 2009 (r195985) @@ -28,8 +28,16 @@ #include __FBSDID("$FreeBSD$"); -#include +#include +#include +#include +#include +#include +#include +#include + #include +#include #include #include @@ -71,7 +79,7 @@ ar71xx_ohci_attach(device_t dev) sc->sc_ohci.sc_bus.devices_max = OHCI_MAX_DEVICES; /* get all DMA memory */ - if (usb2_bus_mem_alloc_all(&sc->sc_ohci.sc_bus, + if (usb_bus_mem_alloc_all(&sc->sc_ohci.sc_bus, USB_GET_DMA_TAG(dev), &ohci_iterate_hw_softc)) { return (ENOMEM); } @@ -177,7 +185,7 @@ ar71xx_ohci_detach(device_t dev) sc->sc_ohci.sc_io_tag = 0; sc->sc_ohci.sc_io_hdl = 0; } - usb2_bus_mem_free_all(&sc->sc_ohci.sc_bus, &ohci_iterate_hw_softc); + usb_bus_mem_free_all(&sc->sc_ohci.sc_bus, &ohci_iterate_hw_softc); return (0); }