Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jun 2013 04:33:57 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r252233 - head/sys/contrib/dev/ath/ath_hal/ar9300
Message-ID:  <201306260433.r5Q4Xv2T084198@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Wed Jun 26 04:33:57 2013
New Revision: 252233
URL: http://svnweb.freebsd.org/changeset/base/252233

Log:
  Add a stub AR93xx RF module just to keep the linker happy.
  
  When building AR933x test images, I'd like to only build only the ar9300
  HAL.  To do this, it needs to supply an RF linker entry or it won't compile.
  
  Tested:
  
  * AR933x test builds

Modified:
  head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c

Modified: head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c
==============================================================================
--- head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c	Wed Jun 26 04:33:32 2013	(r252232)
+++ head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c	Wed Jun 26 04:33:57 2013	(r252233)
@@ -652,3 +652,24 @@ ar9300SetMulticastFilterIndex(struct ath
 	}
 	return (AH_TRUE);
 }
+
+/*
+ * RF attach stubs
+ */
+
+static HAL_BOOL
+rf9330_attach(struct ath_hal *ah, HAL_STATUS *status)
+{
+
+	(*status) = HAL_EINVAL;
+	return (AH_FALSE);
+}
+
+static HAL_BOOL
+rf9330_probe(struct ath_hal *ah)
+{
+	return (AH_FALSE);
+}
+
+AH_RF(RF9330, rf9330_probe, rf9330_attach);
+



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306260433.r5Q4Xv2T084198>