if_anreg.h (72200) | if_anreg.h (74698) |
---|---|
1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * | 1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 * |
32 * $FreeBSD: head/sys/dev/an/if_anreg.h 72200 2001-02-09 06:11:45Z bmilekic $ | 32 * $FreeBSD: head/sys/dev/an/if_anreg.h 74698 2001-03-23 17:46:32Z archie $ |
33 */ 34 35#define AN_TIMEOUT 65536 36 37/* Default network name: ANY */ 38#define AN_DEFAULT_NETNAME "ANY" 39 40/* The nodename must be less than 16 bytes */ --- 46 unchanged lines hidden (view full) --- 87#define AN_CMD_NOOP 0x0000 /* no-op */ 88#define AN_CMD_ENABLE 0x0001 /* enable */ 89#define AN_CMD_DISABLE 0x0002 /* disable */ 90#define AN_CMD_FORCE_SYNCLOSS 0x0003 /* force loss of sync */ 91#define AN_CMD_FW_RESTART 0x0004 /* firmware resrart */ 92#define AN_CMD_HOST_SLEEP 0x0005 93#define AN_CMD_MAGIC_PKT 0x0006 94#define AN_CMD_READCFG 0x0008 | 33 */ 34 35#define AN_TIMEOUT 65536 36 37/* Default network name: ANY */ 38#define AN_DEFAULT_NETNAME "ANY" 39 40/* The nodename must be less than 16 bytes */ --- 46 unchanged lines hidden (view full) --- 87#define AN_CMD_NOOP 0x0000 /* no-op */ 88#define AN_CMD_ENABLE 0x0001 /* enable */ 89#define AN_CMD_DISABLE 0x0002 /* disable */ 90#define AN_CMD_FORCE_SYNCLOSS 0x0003 /* force loss of sync */ 91#define AN_CMD_FW_RESTART 0x0004 /* firmware resrart */ 92#define AN_CMD_HOST_SLEEP 0x0005 93#define AN_CMD_MAGIC_PKT 0x0006 94#define AN_CMD_READCFG 0x0008 |
95#define AN_CMD_SET_MODE 0x0009 |
|
95#define AN_CMD_ALLOC_MEM 0x000A /* allocate NIC memory */ 96#define AN_CMD_TX 0x000B /* transmit */ 97#define AN_CMD_DEALLOC_MEM 0x000C 98#define AN_CMD_NOOP2 0x0010 99#define AN_CMD_ACCESS 0x0021 100#define AN_CMD_ALLOC_BUF 0x0028 101#define AN_CMD_PSP_NODES 0x0030 102#define AN_CMD_SET_PHYREG 0x003E --- 235 unchanged lines hidden (view full) --- 338#define AN_DIVERSITY_ANTENNA_2_ONLY 0x0002 339#define AN_DIVERSITY_ANTENNA_1_AND_2 0x0003 340 341#define AN_TXPOWER_FACTORY_DEFAULT 0x0000 342#define AN_TXPOWER_50MW 50 343#define AN_TXPOWER_100MW 100 344#define AN_TXPOWER_250MW 250 345 | 96#define AN_CMD_ALLOC_MEM 0x000A /* allocate NIC memory */ 97#define AN_CMD_TX 0x000B /* transmit */ 98#define AN_CMD_DEALLOC_MEM 0x000C 99#define AN_CMD_NOOP2 0x0010 100#define AN_CMD_ACCESS 0x0021 101#define AN_CMD_ALLOC_BUF 0x0028 102#define AN_CMD_PSP_NODES 0x0030 103#define AN_CMD_SET_PHYREG 0x003E --- 235 unchanged lines hidden (view full) --- 339#define AN_DIVERSITY_ANTENNA_2_ONLY 0x0002 340#define AN_DIVERSITY_ANTENNA_1_AND_2 0x0003 341 342#define AN_TXPOWER_FACTORY_DEFAULT 0x0000 343#define AN_TXPOWER_50MW 50 344#define AN_TXPOWER_100MW 100 345#define AN_TXPOWER_250MW 250 346 |
347#define AN_HOME_NETWORK 0x0001 348#define AN_HOME_INSTALL_AP 0x0002 349 |
|
346/* 347 * Valid SSID list. You can specify up to three SSIDs denoting 348 * the service sets that you want to join. The first SSID always 349 * defaults to "tsunami" which is a handy way to detect the 350 * card. 351 */ 352#define AN_RID_SSIDLIST 0xFF11 353struct an_ltv_ssidlist { --- 169 unchanged lines hidden (view full) --- 523 u_int16_t an_current_tx_rate; /* 0x6E */ 524 u_int16_t an_ap_device; /* 0x70 */ 525 u_int16_t an_normalized_rssi; /* 0x72 */ 526 u_int16_t an_short_pre_in_use; /* 0x74 */ 527 u_int8_t an_ap_ip_addr[4]; /* 0x76 */ 528 u_int16_t an_max_noise_prev_sec; /* 0x7A */ 529 u_int16_t an_avg_noise_prev_min; /* 0x7C */ 530 u_int16_t an_max_noise_prev_min; /* 0x7E */ | 350/* 351 * Valid SSID list. You can specify up to three SSIDs denoting 352 * the service sets that you want to join. The first SSID always 353 * defaults to "tsunami" which is a handy way to detect the 354 * card. 355 */ 356#define AN_RID_SSIDLIST 0xFF11 357struct an_ltv_ssidlist { --- 169 unchanged lines hidden (view full) --- 527 u_int16_t an_current_tx_rate; /* 0x6E */ 528 u_int16_t an_ap_device; /* 0x70 */ 529 u_int16_t an_normalized_rssi; /* 0x72 */ 530 u_int16_t an_short_pre_in_use; /* 0x74 */ 531 u_int8_t an_ap_ip_addr[4]; /* 0x76 */ 532 u_int16_t an_max_noise_prev_sec; /* 0x7A */ 533 u_int16_t an_avg_noise_prev_min; /* 0x7C */ 534 u_int16_t an_max_noise_prev_min; /* 0x7E */ |
531 u_int16_t an_spare[2]; | 535 u_int16_t an_spare[3]; |
532}; 533 534#define AN_STATUS_OPMODE_CONFIGURED 0x0001 535#define AN_STATUS_OPMODE_MAC_ENABLED 0x0002 536#define AN_STATUS_OPMODE_RX_ENABLED 0x0004 537#define AN_STATUS_OPMODE_IN_SYNC 0x0010 538#define AN_STATUS_OPMODE_ASSOCIATED 0x0020 539#define AN_STATUS_OPMODE_ERROR 0x8000 --- 358 unchanged lines hidden --- | 536}; 537 538#define AN_STATUS_OPMODE_CONFIGURED 0x0001 539#define AN_STATUS_OPMODE_MAC_ENABLED 0x0002 540#define AN_STATUS_OPMODE_RX_ENABLED 0x0004 541#define AN_STATUS_OPMODE_IN_SYNC 0x0010 542#define AN_STATUS_OPMODE_ASSOCIATED 0x0020 543#define AN_STATUS_OPMODE_ERROR 0x8000 --- 358 unchanged lines hidden --- |