diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-03-05 16:54:34 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-03-05 16:54:34 +0000 |
commit | 86104cba783e0657e0f0472f7229c73503094d3b (patch) | |
tree | 3d3e6dc0b9baa25060523a2468655afeb91be81e /sys/dev | |
parent | f43c4ace9dc866f75d5d53f1d7a3e888abcaef8b (diff) |
back out, reyk is not paying attention
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/ar5210.c | 68 | ||||
-rw-r--r-- | sys/dev/ic/ar5210reg.h | 4 | ||||
-rw-r--r-- | sys/dev/ic/ar5210var.h | 4 | ||||
-rw-r--r-- | sys/dev/ic/ar5211.c | 69 | ||||
-rw-r--r-- | sys/dev/ic/ar5211reg.h | 4 | ||||
-rw-r--r-- | sys/dev/ic/ar5211var.h | 4 | ||||
-rw-r--r-- | sys/dev/ic/ar5212.c | 78 | ||||
-rw-r--r-- | sys/dev/ic/ar5212reg.h | 4 | ||||
-rw-r--r-- | sys/dev/ic/ar5212var.h | 4 | ||||
-rw-r--r-- | sys/dev/ic/ar5xxx.c | 4 | ||||
-rw-r--r-- | sys/dev/ic/ar5xxx.h | 21 |
11 files changed, 28 insertions, 236 deletions
diff --git a/sys/dev/ic/ar5210.c b/sys/dev/ic/ar5210.c index db5146742d7..1225efd50d7 100644 --- a/sys/dev/ic/ar5210.c +++ b/sys/dev/ic/ar5210.c @@ -1,7 +1,7 @@ -/* $OpenBSD: ar5210.c,v 1.35 2007/03/05 15:13:26 reyk Exp $ */ +/* $OpenBSD: ar5210.c,v 1.36 2007/03/05 16:54:33 deraadt Exp $ */ /* - * Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org> + * Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -171,22 +171,6 @@ ar5k_ar5210_fill(struct ath_hal *hal) AR5K_HAL_FUNCTION(hal, ar5210, eeprom_is_busy); AR5K_HAL_FUNCTION(hal, ar5210, eeprom_read); AR5K_HAL_FUNCTION(hal, ar5210, eeprom_write); - - /* - * Unused functions or functions not implemented - */ - AR5K_HAL_FUNCTION(hal, ar5210, set_bssid_mask); - AR5K_HAL_FUNCTION(hal, ar5210, get_tx_queueprops); - AR5K_HAL_FUNCTION(hal, ar5210, num_tx_pending); - AR5K_HAL_FUNCTION(hal, ar5210, phy_disable); - AR5K_HAL_FUNCTION(hal, ar5210, set_txpower_limit); - AR5K_HAL_FUNCTION(hal, ar5210, set_def_antenna); - AR5K_HAL_FUNCTION(hal, ar5210, get_def_antenna); -#ifdef notyet - AR5K_HAL_FUNCTION(hal, ar5210, set_capability); - AR5K_HAL_FUNCTION(hal, ar5210, proc_mib_event); - AR5K_HAL_FUNCTION(hal, ar5210, get_tx_inter_queue); -#endif } struct ath_hal * @@ -357,13 +341,6 @@ ar5k_ar5210_detach(struct ath_hal *hal) } HAL_BOOL -ar5k_ar5210_phy_disable(struct ath_hal *hal) -{ - AR5K_REG_WRITE(AR5K_AR5210_PHY_ACTIVE, AR5K_AR5210_PHY_DISABLE); - return (AH_TRUE); -} - -HAL_BOOL ar5k_ar5210_reset(struct ath_hal *hal, HAL_OPMODE op_mode, HAL_CHANNEL *channel, HAL_BOOL change_channel, HAL_STATUS *status) { @@ -457,19 +434,6 @@ ar5k_ar5210_reset(struct ath_hal *hal, HAL_OPMODE op_mode, HAL_CHANNEL *channel, } void -ar5k_ar5210_set_def_antenna(struct ath_hal *hal, u_int ant) -{ - /* Not available */ - return; -} - -u_int -ar5k_ar5210_get_def_antenna(struct ath_hal *hal) -{ - return (0); -} - -void ar5k_ar5210_set_opmode(struct ath_hal *hal) { u_int32_t pcu_reg, beacon_reg, low_id, high_id; @@ -774,15 +738,6 @@ ar5k_ar5210_setup_tx_queueprops(struct ath_hal *hal, int queue, } HAL_BOOL -ar5k_ar5210_get_tx_queueprops(struct ath_hal *hal, int queue, - HAL_TXQ_INFO *queue_info) -{ - AR5K_ASSERT_ENTRY(queue, hal->ah_capabilities.cap_queues.q_tx_num); - bcopy(&hal->ah_txq[queue], queue_info, sizeof(HAL_TXQ_INFO)); - return (AH_TRUE); -} - -HAL_BOOL ar5k_ar5210_release_tx_queue(struct ath_hal *hal, u_int queue) { AR5K_ASSERT_ENTRY(queue, hal->ah_capabilities.cap_queues.q_tx_num); @@ -918,12 +873,6 @@ ar5k_ar5210_put_tx_buf(struct ath_hal *hal, u_int queue, u_int32_t phys_addr) return (AH_TRUE); } -u_int32_t -ar5k_ar5210_num_tx_pending(struct ath_hal *hal, u_int queue) -{ - return (AH_FALSE); -} - HAL_BOOL ar5k_ar5210_tx_start(struct ath_hal *hal, u_int queue) { @@ -1584,13 +1533,6 @@ ar5k_ar5210_set_associd(struct ath_hal *hal, const u_int8_t *bssid, } HAL_BOOL -ar5k_ar5210_set_bssid_mask(struct ath_hal *hal, const u_int8_t* mask) -{ - /* Not supported in 5210 */ - return (AH_FALSE); -} - -HAL_BOOL ar5k_ar5210_set_gpio_output(struct ath_hal *hal, u_int32_t gpio) { if (gpio > AR5K_AR5210_NUM_GPIO) @@ -2379,9 +2321,3 @@ ar5k_ar5210_eeprom_write(struct ath_hal *hal, u_int32_t offset, u_int16_t data) return (ETIMEDOUT); } -HAL_BOOL -ar5k_ar5210_set_txpower_limit(struct ath_hal *hal, u_int power) -{ - /* Not implemented */ - return (AH_FALSE); -} diff --git a/sys/dev/ic/ar5210reg.h b/sys/dev/ic/ar5210reg.h index 42efa2973db..eb443c263e1 100644 --- a/sys/dev/ic/ar5210reg.h +++ b/sys/dev/ic/ar5210reg.h @@ -1,7 +1,7 @@ -/* $OpenBSD: ar5210reg.h,v 1.11 2007/03/05 15:13:26 reyk Exp $ */ +/* $OpenBSD: ar5210reg.h,v 1.12 2007/03/05 16:54:33 deraadt Exp $ */ /* - * Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org> + * Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above diff --git a/sys/dev/ic/ar5210var.h b/sys/dev/ic/ar5210var.h index 08089488013..bf73d52a1cc 100644 --- a/sys/dev/ic/ar5210var.h +++ b/sys/dev/ic/ar5210var.h @@ -1,7 +1,7 @@ -/* $OpenBSD: ar5210var.h,v 1.12 2007/03/05 15:13:26 reyk Exp $ */ +/* $OpenBSD: ar5210var.h,v 1.13 2007/03/05 16:54:33 deraadt Exp $ */ /* - * Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org> + * Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above diff --git a/sys/dev/ic/ar5211.c b/sys/dev/ic/ar5211.c index 3236b9865e3..4d7e39f57fa 100644 --- a/sys/dev/ic/ar5211.c +++ b/sys/dev/ic/ar5211.c @@ -1,7 +1,7 @@ -/* $OpenBSD: ar5211.c,v 1.30 2007/03/05 15:13:26 reyk Exp $ */ +/* $OpenBSD: ar5211.c,v 1.31 2007/03/05 16:54:33 deraadt Exp $ */ /* - * Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org> + * Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -175,22 +175,6 @@ ar5k_ar5211_fill(struct ath_hal *hal) AR5K_HAL_FUNCTION(hal, ar5211, eeprom_is_busy); AR5K_HAL_FUNCTION(hal, ar5211, eeprom_read); AR5K_HAL_FUNCTION(hal, ar5211, eeprom_write); - - /* - * Unused functions or functions not implemented - */ - AR5K_HAL_FUNCTION(hal, ar5211, get_tx_queueprops); - AR5K_HAL_FUNCTION(hal, ar5211, num_tx_pending); - AR5K_HAL_FUNCTION(hal, ar5211, phy_disable); - AR5K_HAL_FUNCTION(hal, ar5211, set_txpower_limit); - AR5K_HAL_FUNCTION(hal, ar5211, set_def_antenna); - AR5K_HAL_FUNCTION(hal, ar5211, get_def_antenna); - AR5K_HAL_FUNCTION(hal, ar5211, set_bssid_mask); -#ifdef notyet - AR5K_HAL_FUNCTION(hal, ar5211, set_capability); - AR5K_HAL_FUNCTION(hal, ar5211, proc_mib_event); - AR5K_HAL_FUNCTION(hal, ar5211, get_tx_inter_queue); -#endif } struct ath_hal * @@ -407,13 +391,6 @@ ar5k_ar5211_detach(struct ath_hal *hal) } HAL_BOOL -ar5k_ar5211_phy_disable(struct ath_hal *hal) -{ - AR5K_REG_WRITE(AR5K_AR5211_PHY_ACTIVE, AR5K_AR5211_PHY_DISABLE); - return (AH_TRUE); -} - -HAL_BOOL ar5k_ar5211_reset(struct ath_hal *hal, HAL_OPMODE op_mode, HAL_CHANNEL *channel, HAL_BOOL change_channel, HAL_STATUS *status) { @@ -667,18 +644,6 @@ ar5k_ar5211_reset(struct ath_hal *hal, HAL_OPMODE op_mode, HAL_CHANNEL *channel, } void -ar5k_ar5211_set_def_antenna(struct ath_hal *hal, u_int ant) -{ - AR5K_REG_WRITE(AR5K_AR5211_DEFAULT_ANTENNA, ant); -} - -u_int -ar5k_ar5211_get_def_antenna(struct ath_hal *hal) -{ - return AR5K_REG_READ(AR5K_AR5211_DEFAULT_ANTENNA); -} - -void ar5k_ar5211_set_opmode(struct ath_hal *hal) { u_int32_t pcu_reg, low_id, high_id; @@ -857,15 +822,6 @@ ar5k_ar5211_setup_tx_queueprops(struct ath_hal *hal, int queue, } HAL_BOOL -ar5k_ar5211_get_tx_queueprops(struct ath_hal *hal, int queue, - HAL_TXQ_INFO *queue_info) -{ - AR5K_ASSERT_ENTRY(queue, hal->ah_capabilities.cap_queues.q_tx_num); - bcopy(&hal->ah_txq[queue], queue_info, sizeof(HAL_TXQ_INFO)); - return (AH_TRUE); -} - -HAL_BOOL ar5k_ar5211_release_tx_queue(struct ath_hal *hal, u_int queue) { AR5K_ASSERT_ENTRY(queue, hal->ah_capabilities.cap_queues.q_tx_num); @@ -1081,13 +1037,6 @@ ar5k_ar5211_put_tx_buf(struct ath_hal *hal, u_int queue, u_int32_t phys_addr) return (AH_TRUE); } -u_int32_t -ar5k_ar5211_num_tx_pending(struct ath_hal *hal, u_int queue) -{ - AR5K_ASSERT_ENTRY(queue, hal->ah_capabilities.cap_queues.q_tx_num); - return (AR5K_AR5211_QCU_STS(queue) & AR5K_AR5211_QCU_STS_FRMPENDCNT); -} - HAL_BOOL ar5k_ar5211_tx_start(struct ath_hal *hal, u_int queue) { @@ -1690,13 +1639,6 @@ ar5k_ar5211_set_associd(struct ath_hal *hal, const u_int8_t *bssid, } HAL_BOOL -ar5k_ar5211_set_bssid_mask(struct ath_hal *hal, const u_int8_t* mask) -{ - /* Not supported in 5211 */ - return (AH_FALSE); -} - -HAL_BOOL ar5k_ar5211_set_gpio_output(struct ath_hal *hal, u_int32_t gpio) { if (gpio > AR5K_AR5211_NUM_GPIO) @@ -2575,10 +2517,3 @@ ar5k_ar5211_rfregs(struct ath_hal *hal, HAL_CHANNEL *channel, u_int freq, hal->ah_rf_gain = HAL_RFGAIN_INACTIVE; } - -HAL_BOOL -ar5k_ar5211_set_txpower_limit(struct ath_hal *hal, u_int power) -{ - /* Not implemented */ - return (AH_FALSE); -} diff --git a/sys/dev/ic/ar5211reg.h b/sys/dev/ic/ar5211reg.h index 9671c4ddf59..186399c7932 100644 --- a/sys/dev/ic/ar5211reg.h +++ b/sys/dev/ic/ar5211reg.h @@ -1,7 +1,7 @@ -/* $OpenBSD: ar5211reg.h,v 1.9 2007/03/05 15:13:26 reyk Exp $ */ +/* $OpenBSD: ar5211reg.h,v 1.10 2007/03/05 16:54:33 deraadt Exp $ */ /* - * Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org> + * Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above diff --git a/sys/dev/ic/ar5211var.h b/sys/dev/ic/ar5211var.h index b41095c924c..1c38c362917 100644 --- a/sys/dev/ic/ar5211var.h +++ b/sys/dev/ic/ar5211var.h @@ -1,7 +1,7 @@ -/* $OpenBSD: ar5211var.h,v 1.8 2007/03/05 15:13:26 reyk Exp $ */ +/* $OpenBSD: ar5211var.h,v 1.9 2007/03/05 16:54:33 deraadt Exp $ */ /* - * Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org> + * Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above diff --git a/sys/dev/ic/ar5212.c b/sys/dev/ic/ar5212.c index ce6d3484cd0..cfa0c2ce375 100644 --- a/sys/dev/ic/ar5212.c +++ b/sys/dev/ic/ar5212.c @@ -1,7 +1,7 @@ -/* $OpenBSD: ar5212.c,v 1.36 2007/03/05 15:13:26 reyk Exp $ */ +/* $OpenBSD: ar5212.c,v 1.37 2007/03/05 16:54:33 deraadt Exp $ */ /* - * Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org> + * Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -172,22 +172,6 @@ ar5k_ar5212_fill(struct ath_hal *hal) AR5K_HAL_FUNCTION(hal, ar5212, eeprom_is_busy); AR5K_HAL_FUNCTION(hal, ar5212, eeprom_read); AR5K_HAL_FUNCTION(hal, ar5212, eeprom_write); - - /* - * Unused functions or functions not implemented - */ - AR5K_HAL_FUNCTION(hal, ar5212, set_bssid_mask); - AR5K_HAL_FUNCTION(hal, ar5212, get_tx_queueprops); - AR5K_HAL_FUNCTION(hal, ar5212, num_tx_pending); - AR5K_HAL_FUNCTION(hal, ar5212, phy_disable); - AR5K_HAL_FUNCTION(hal, ar5212, set_txpower_limit); - AR5K_HAL_FUNCTION(hal, ar5212, set_def_antenna); - AR5K_HAL_FUNCTION(hal, ar5212, get_def_antenna); -#ifdef notyet - AR5K_HAL_FUNCTION(hal, ar5212, set_capability); - AR5K_HAL_FUNCTION(hal, ar5212, proc_mib_event); - AR5K_HAL_FUNCTION(hal, ar5212, get_tx_inter_queue); -#endif } struct ath_hal * @@ -424,13 +408,6 @@ ar5k_ar5212_detach(struct ath_hal *hal) } HAL_BOOL -ar5k_ar5212_phy_disable(struct ath_hal *hal) -{ - AR5K_REG_WRITE(AR5K_AR5212_PHY_ACTIVE, AR5K_AR5212_PHY_DISABLE); - return (AH_TRUE); -} - -HAL_BOOL ar5k_ar5212_reset(struct ath_hal *hal, HAL_OPMODE op_mode, HAL_CHANNEL *channel, HAL_BOOL change_channel, HAL_STATUS *status) { @@ -815,18 +792,6 @@ ar5k_ar5212_reset(struct ath_hal *hal, HAL_OPMODE op_mode, HAL_CHANNEL *channel, } void -ar5k_ar5212_set_def_antenna(struct ath_hal *hal, u_int ant) -{ - AR5K_REG_WRITE(AR5K_AR5212_DEFAULT_ANTENNA, ant); -} - -u_int -ar5k_ar5212_get_def_antenna(struct ath_hal *hal) -{ - return AR5K_REG_READ(AR5K_AR5212_DEFAULT_ANTENNA); -} - -void ar5k_ar5212_set_opmode(struct ath_hal *hal) { u_int32_t pcu_reg, low_id, high_id; @@ -1013,15 +978,6 @@ ar5k_ar5212_setup_tx_queueprops(struct ath_hal *hal, int queue, } HAL_BOOL -ar5k_ar5212_get_tx_queueprops(struct ath_hal *hal, int queue, - HAL_TXQ_INFO *queue_info) -{ - AR5K_ASSERT_ENTRY(queue, hal->ah_capabilities.cap_queues.q_tx_num); - bcopy(&hal->ah_txq[queue], queue_info, sizeof(HAL_TXQ_INFO)); - return (AH_TRUE); -} - -HAL_BOOL ar5k_ar5212_release_tx_queue(struct ath_hal *hal, u_int queue) { AR5K_ASSERT_ENTRY(queue, hal->ah_capabilities.cap_queues.q_tx_num); @@ -1240,13 +1196,6 @@ ar5k_ar5212_put_tx_buf(struct ath_hal *hal, u_int queue, u_int32_t phys_addr) return (AH_TRUE); } -u_int32_t -ar5k_ar5212_num_tx_pending(struct ath_hal *hal, u_int queue) -{ - AR5K_ASSERT_ENTRY(queue, hal->ah_capabilities.cap_queues.q_tx_num); - return (AR5K_AR5212_QCU_STS(queue) & AR5K_AR5212_QCU_STS_FRMPENDCNT); -} - HAL_BOOL ar5k_ar5212_tx_start(struct ath_hal *hal, u_int queue) { @@ -1978,21 +1927,6 @@ ar5k_ar5212_set_associd(struct ath_hal *hal, const u_int8_t *bssid, } HAL_BOOL -ar5k_ar5212_set_bssid_mask(struct ath_hal *hal, const u_int8_t* mask) -{ - u_int32_t low_id, high_id; - - bcopy(mask, &low_id, 4); - bcopy(mask + 4, &high_id, 2); - high_id = 0x0000ffff & high_id; - - AR5K_REG_WRITE(AR5K_AR5212_BSS_IDM0, low_id); - AR5K_REG_WRITE(AR5K_AR5212_BSS_IDM1, high_id); - - return (AH_TRUE); -} - -HAL_BOOL ar5k_ar5212_set_gpio_output(struct ath_hal *hal, u_int32_t gpio) { if (gpio > AR5K_AR5212_NUM_GPIO) @@ -2950,11 +2884,3 @@ ar5k_ar5212_txpower(struct ath_hal *hal, HAL_CHANNEL *channel, u_int txpower) return (AH_TRUE); } -HAL_BOOL -ar5k_ar5212_set_txpower_limit(struct ath_hal *hal, u_int power) -{ - HAL_CHANNEL *channel = &hal->ah_current_channel; - - AR5K_PRINTF("changing txpower to %d\n", power); - return (ar5k_ar5212_txpower(hal, channel, power)); -} diff --git a/sys/dev/ic/ar5212reg.h b/sys/dev/ic/ar5212reg.h index d41fe036081..c240619ed26 100644 --- a/sys/dev/ic/ar5212reg.h +++ b/sys/dev/ic/ar5212reg.h @@ -1,7 +1,7 @@ -/* $OpenBSD: ar5212reg.h,v 1.9 2007/03/05 15:13:26 reyk Exp $ */ +/* $OpenBSD: ar5212reg.h,v 1.10 2007/03/05 16:54:33 deraadt Exp $ */ /* - * Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org> + * Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above diff --git a/sys/dev/ic/ar5212var.h b/sys/dev/ic/ar5212var.h index 1e3c57a92f4..7ac7adcb0a7 100644 --- a/sys/dev/ic/ar5212var.h +++ b/sys/dev/ic/ar5212var.h @@ -1,7 +1,7 @@ -/* $OpenBSD: ar5212var.h,v 1.12 2007/03/05 15:13:26 reyk Exp $ */ +/* $OpenBSD: ar5212var.h,v 1.13 2007/03/05 16:54:33 deraadt Exp $ */ /* - * Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org> + * Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above diff --git a/sys/dev/ic/ar5xxx.c b/sys/dev/ic/ar5xxx.c index 2389a818db0..3770bd6b9c3 100644 --- a/sys/dev/ic/ar5xxx.c +++ b/sys/dev/ic/ar5xxx.c @@ -1,7 +1,7 @@ -/* $OpenBSD: ar5xxx.c,v 1.37 2007/03/05 15:13:26 reyk Exp $ */ +/* $OpenBSD: ar5xxx.c,v 1.38 2007/03/05 16:54:33 deraadt Exp $ */ /* - * Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org> + * Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above diff --git a/sys/dev/ic/ar5xxx.h b/sys/dev/ic/ar5xxx.h index 54e479abb19..d617a2ac9c7 100644 --- a/sys/dev/ic/ar5xxx.h +++ b/sys/dev/ic/ar5xxx.h @@ -1,7 +1,7 @@ -/* $OpenBSD: ar5xxx.h,v 1.36 2007/03/05 15:13:26 reyk Exp $ */ +/* $OpenBSD: ar5xxx.h,v 1.37 2007/03/05 16:54:33 deraadt Exp $ */ /* - * Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org> + * Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -1026,6 +1026,11 @@ struct ath_desc { _t HAL_BOOL (_a _n##_is_cipher_supported)(struct ath_hal*, \ HAL_CIPHER); \ _t HAL_RFGAIN (_a _n##_get_rf_gain)(struct ath_hal*); \ + /* \ + u_int32_t (_a _n##_getCurRssi)(struct ath_hal*); \ + u_int32_t (_a _n##_getDefAntenna)(struct ath_hal*); \ + void (_a _n##_setDefAntenna)(struct ath_hal*, u_int32_t ant); \ + */ \ _t HAL_BOOL (_a _n##_set_slot_time)(struct ath_hal*, u_int); \ _t u_int (_a _n##_get_slot_time)(struct ath_hal*); \ _t HAL_BOOL (_a _n##_set_ack_timeout)(struct ath_hal *, u_int); \ @@ -1074,17 +1079,7 @@ struct ath_desc { _t int (_a _n##_eeprom_read)(struct ath_hal *, u_int32_t offset, \ u_int16_t *data); \ _t int (_a _n##_eeprom_write)(struct ath_hal *, u_int32_t offset, \ - u_int16_t data); \ - /* Unused functions */ \ - _t HAL_BOOL (_a _n##_get_tx_queueprops)(struct ath_hal *, int, \ - HAL_TXQ_INFO *); \ - _t u_int32_t (_a _n##_num_tx_pending)(struct ath_hal *, u_int); \ - _t HAL_BOOL (_a _n##_phy_disable)(struct ath_hal *); \ - _t HAL_BOOL (_a _n##_set_txpower_limit)(struct ath_hal *, u_int); \ - _t void (_a _n##_set_def_antenna)(struct ath_hal *, u_int); \ - _t u_int (_a _n ##_get_def_antenna)(struct ath_hal *); \ - _t HAL_BOOL (_a _n##_set_bssid_mask)(struct ath_hal *, \ - const u_int8_t*); + u_int16_t data); #define AR5K_MAX_GPIO 10 #define AR5K_MAX_RF_BANKS 8 |