From owner-freebsd-mobile@FreeBSD.ORG Sat Sep 18 16:32:49 2010 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACCBA106566B for ; Sat, 18 Sep 2010 16:32:49 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 78D438FC14 for ; Sat, 18 Sep 2010 16:32:49 +0000 (UTC) Received: by iwn34 with SMTP id 34so3458716iwn.13 for ; Sat, 18 Sep 2010 09:32:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:cc:content-type; bh=5Quo0wwfDsycUcZUXJ3m3b1krNJQrr3Q9C2iNfaEpzE=; b=mdJYJMxb18UGkVjVvNpRdO0AGdusYsEtx28HhfOKODzEv/06V7S4o8YFnziUAZIjQT tlS5YK7MyAnzowXFxw8N9PBrtF7MFHKBJBZcroKwMIxXy3FmlHhrribP2MR2DIVfryLH 4+l2b+O5KRlBp06JmQwaHltT1dhvNKbhcBr4U= 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=Nn6VxjZz5isoQ2r9/0/NPSQYrLbYvi8FJGrPzUAz3kt2mGGDit+T2oXF5TjyT836cz VnYCdC9YJNVfviM9CjHswMNolLTFNMgH2CU8bIS0FmLEgVhASE1FqUqoap/NFAJt7p3g EweqvI33dLH+3VnU3w11vXBZ/4mtn39AV4WEM= MIME-Version: 1.0 Received: by 10.231.33.129 with SMTP id h1mr6036219ibd.140.1284826161793; Sat, 18 Sep 2010 09:09:21 -0700 (PDT) Received: by 10.231.156.206 with HTTP; Sat, 18 Sep 2010 09:09:21 -0700 (PDT) Date: Sun, 19 Sep 2010 00:09:21 +0800 Message-ID: From: Adrian Chadd To: freebsd-current Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-mobile@freebsd.org Subject: RFT: if_ath HAL refactoring X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Sep 2010 16:32:49 -0000 Hi all, I've uploaded a snapshot of the if_ath HAL which i've been working on. I've been refactoring out various bits of the AR5416 HAL into something that resembles the ath9k hardware MAC/PHY operations to make it easier to port further ath9k updates over. It also includes the AR9100 support (but it's missing a couple bits of glue needed to use it outside of my GIT tree.) Finally, it includes the probe/attach operations for the AR2427, but I haven't at all tested it yet (and i've explained why it isn't working in a previous email.) It's available for download at http://people.freebsd.org/~adrian/ath/ . There's a diff against src/sys/files/conf and a tarball that just replaces the ath device/module directory. Note you'll need to add "device if_ath_pci" to your kernel configuration file as the PCI bus glue is now not built by default in a static kernel in this HAL. (It's included in the module Makefile by default.) This was done to allow multiple backend bus types - now being PCI and "AHB" for the AR9100 SoC. I'd appreciate testing by AR5416/AR9160/AR9280/AR9285 users. I only currently have easy access to AR5416/AR9160. Please let me know immediately if something doesn't work with this which does work in -head. If you're an AR2427 user, I'd appreciate some brief testing with HAL_DEBUG_ATTACH/HAL_DEBUG_EEPROM enabled (sysctl hw.ath.hal.debug=0x8002.) I doubt it'll work but it should attach and then spit out some computetxtime errors. Let me know if that happens and I'll see about trying to fix that. Adrian