summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2004-11-23 10:13:05 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2004-11-23 10:13:05 +0000
commitf8e7607672cf71f2c84bb44148f27d1428840fe8 (patch)
treeb3fb2d528c55bd484e51d86a66fb4a3ffe77ee6d /sys
parenta7b2471ab522d25c6e01aa1d3ee3b4fedbba8b71 (diff)
store number of supported gpio pins
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/ar5210.c5
-rw-r--r--sys/dev/ic/ar5xxx.h3
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/ic/ar5210.c b/sys/dev/ic/ar5210.c
index c834b06f3bd..daa9283a6a1 100644
--- a/sys/dev/ic/ar5210.c
+++ b/sys/dev/ic/ar5210.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar5210.c,v 1.6 2004/11/11 20:11:28 reyk Exp $ */
+/* $OpenBSD: ar5210.c,v 1.7 2004/11/23 10:13:04 reyk Exp $ */
/*
* Copyright (c) 2004 Reyk Floeter <reyk@vantronix.net>.
@@ -2339,6 +2339,9 @@ ar5k_ar5210_get_capabilities(hal)
/* Set supported modes */
hal->ah_capabilities.cap_mode = HAL_MODE_11A | HAL_MODE_TURBO;
+ /* Set number of GPIO pins */
+ hal->ah_gpio_npins = AR5K_AR5210_NUM_GPIO;
+
return (AH_TRUE);
}
diff --git a/sys/dev/ic/ar5xxx.h b/sys/dev/ic/ar5xxx.h
index b3fbae8251f..a254cbb10ba 100644
--- a/sys/dev/ic/ar5xxx.h
+++ b/sys/dev/ic/ar5xxx.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar5xxx.h,v 1.5 2004/11/11 20:11:28 reyk Exp $ */
+/* $OpenBSD: ar5xxx.h,v 1.6 2004/11/23 10:13:04 reyk Exp $ */
/*
* Copyright (c) 2004 Reyk Floeter <reyk@vantronix.net>.
@@ -772,6 +772,7 @@ struct ath_hal {
u_int8_t ah_bssid[IEEE80211_ADDR_LEN];
u_int32_t ah_gpio[AR5K_MAX_GPIO];
+ int ah_gpio_npins;
ar5k_capabilities_t ah_capabilities;