summaryrefslogtreecommitdiff
path: root/sys/dev/pcmcia/if_malovar.h
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2007-05-28 13:51:10 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2007-05-28 13:51:10 +0000
commit8968ee9d819198c892377b9a35f405b81f51bca0 (patch)
treeefa797cde61959e32575d08f329905db075de2d7 /sys/dev/pcmcia/if_malovar.h
parent67902ee5c1ad7fb57141c675e37c58c7ddacd0a1 (diff)
Add a bunch of new firmware commands to configure MAC/PHY/RF, and do so.
Simplify command interface.
Diffstat (limited to 'sys/dev/pcmcia/if_malovar.h')
-rw-r--r--sys/dev/pcmcia/if_malovar.h37
1 files changed, 36 insertions, 1 deletions
diff --git a/sys/dev/pcmcia/if_malovar.h b/sys/dev/pcmcia/if_malovar.h
index 59f18c1382b..2235e3edec0 100644
--- a/sys/dev/pcmcia/if_malovar.h
+++ b/sys/dev/pcmcia/if_malovar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_malovar.h,v 1.4 2007/05/26 21:16:03 mglocker Exp $ */
+/* $OpenBSD: if_malovar.h,v 1.5 2007/05/28 13:51:09 mglocker Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
@@ -66,6 +66,21 @@ struct malo_cmd_body_spec {
uint32_t fw_capinfo;
} __packed;
+struct malo_cmd_body_status {
+ uint16_t fw_status;
+ uint16_t mac_status;
+ uint16_t rf_status;
+ uint16_t current_channel;
+ uint8_t ap_mac[ETHER_ADDR_LEN];
+ uint16_t reserved;
+ uint32_t max_linkspeed;
+} __packed;
+
+struct malo_cmd_body_radio {
+ uint16_t action;
+ uint16_t control;
+} __packed;
+
struct malo_cmd_body_channel {
uint16_t action;
uint16_t channel;
@@ -74,6 +89,26 @@ struct malo_cmd_body_channel {
uint8_t channel_list[32];
} __packed;
+struct malo_cmd_body_txpower {
+ uint16_t action;
+ int16_t txpower;
+} __packed;
+
+struct malo_cmd_body_antenna {
+ uint16_t action;
+ uint16_t antenna_mode;
+} __packed;
+
+struct malo_cmd_body_macctrl {
+ uint16_t action;
+ uint16_t reserved;
+} __packed;
+
+struct malo_cmd_body_macaddr {
+ uint16_t action;
+ uint8_t macaddr[ETHER_ADDR_LEN];
+} __packed;
+
struct malo_softc {
struct device sc_dev;
struct ieee80211com sc_ic;