From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 12 03:25:06 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B2A379F2 for ; Tue, 12 Mar 2013 03:25:06 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x232.google.com (mail-we0-x232.google.com [IPv6:2a00:1450:400c:c03::232]) by mx1.freebsd.org (Postfix) with ESMTP id 4BD9237C for ; Tue, 12 Mar 2013 03:25:06 +0000 (UTC) Received: by mail-we0-f178.google.com with SMTP id o45so4484396wer.9 for ; Mon, 11 Mar 2013 20:25:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Iy8CRAWKOavwf0fgpNRByAVgMABo9XiQ2KzuKJXClVg=; b=G8OZFbVPbaa5aOG7zJVAgMl1aQvDn9UAD09n2Cp+ikWY010FNfoT2p4qXMcPPEajdD khwhBUPkFRvEe6Lf0HMord0hIKejK2pRlBkohkxobDSwR0b6OD57PCwZRQNQMXFYowjN mY+Cdc1tcL3znDXeNHgvwh+qg8bpSDSPvvM84UWHoyA+zs7NTd/7Knm2NOn/HtyYq/uJ c5h9zu/3ssaNb+xPfA27Pzda73zVxm6baT/wrlWqCxHhnOxvq+AR6S6lYtQnhwXvur8s cVgnamKCW2kFKI0JKuzffm9bL6J/zPVfDrWWKyh217y99vR0AWYQEPMgUhXDzoOt05xW FpZw== MIME-Version: 1.0 X-Received: by 10.180.94.135 with SMTP id dc7mr16658248wib.11.1363058705363; Mon, 11 Mar 2013 20:25:05 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.111.201 with HTTP; Mon, 11 Mar 2013 20:25:05 -0700 (PDT) In-Reply-To: References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> <513E6AF5.9010304@gmail.com> <513E7924.3060302@gmail.com> Date: Mon, 11 Mar 2013 20:25:05 -0700 X-Google-Sender-Auth: 3_3xwLtI0J9dgOyU_KR5RzLhvgQ Message-ID: Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support From: Adrian Chadd To: Joshua Isom Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Mar 2013 03:25:06 -0000 Ok, I see that clang is doing some odd expansion there. I've poked the clang nerds about it, I'll see what they say. Anyway - I've shifted its location - now please create a new directory - sys/contrib/dev/ath/ath_hal/ar9300/, and put your symlinks in there. Then uncomment in ath/Makefile like this: Index: ath/Makefile =================================================================== --- ath/Makefile (revision 248181) +++ ath/Makefile (working copy) @@ -124,13 +124,13 @@ SRCS+= ar9287.c ar9287_reset.c ar9287_attach.c ar9287_cal.c ar9287_olc.c # + AR9300 HAL -# .PATH: ${.CURDIR}/../../contrib/sys/dev/ath/ath_hal/ar9300 -#SRCS+= ar9300_interrupts.c ar9300_radar.c ar9300_ani.c ar9300_keycache.c -#SRCS+= ar9300_radio.c ar9300_xmit.c ar9300_attach.c ar9300_mci.c ar9300_stub.c -#SRCS+= ar9300_xmit_ds.c ar9300_beacon.c ar9300_misc.c ar9300_recv.c -#SRCS+= ar9300_stub_funcs.c ar9300_eeprom.c ar9300_paprd.c ar9300_recv_ds.c -#SRCS+= ar9300_freebsd.c ar9300_phy.c ar9300_reset.c ar9300_gpio.c -#SRCS+= ar9300_power.c ar9300_timer.c +.PATH: ${.CURDIR}/../../contrib/sys/dev/ath/ath_hal/ar9300 +SRCS+= ar9300_interrupts.c ar9300_radar.c ar9300_ani.c ar9300_keycache.c +SRCS+= ar9300_radio.c ar9300_xmit.c ar9300_attach.c ar9300_mci.c ar9300_stub.c +SRCS+= ar9300_xmit_ds.c ar9300_beacon.c ar9300_misc.c ar9300_recv.c +SRCS+= ar9300_stub_funcs.c ar9300_eeprom.c ar9300_paprd.c ar9300_recv_ds.c +SRCS+= ar9300_freebsd.c ar9300_phy.c ar9300_reset.c ar9300_gpio.c +SRCS+= ar9300_power.c ar9300_timer.c # NB: rate control is bound to the driver by symbol names so only pick one .if ${ATH_RATE} == "sample" @@ -149,7 +149,7 @@ SRCS+= dfs_null.c CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${.CURDIR}/../../dev/ath/ath_hal -# CFLAGS+= -I. -I${.CURDIR}/../../contrib/sys/dev/ath/ath_hal/ +CFLAGS+= -I. -I${.CURDIR}/../../contrib/sys/dev/ath/ath_hal/ .if !defined(KERNBUILDDIR) opt_ah.h: