1/* $FreeBSD: head/sys/dev/iwn/if_iwnvar.h 191746 2009-05-02 15:14:18Z thompsa $ */ |
2/*- 3 * Copyright (c) 2007 4 * Damien Bergamini <damien.bergamini@free.fr> 5 * Copyright (c) 2008 Sam Leffler, Errno Consulting 6 * 7 * Permission to use, copy, modify, and distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above 9 * copyright notice and this permission notice appear in all copies. --- 165 unchanged lines hidden (view full) --- 175 struct iwn_tx_ring txq[IWN_NTXQUEUES]; 176 struct iwn_rx_ring rxq; 177 178 bus_space_tag_t sc_st; 179 bus_space_handle_t sc_sh; 180 void *sc_ih; 181 bus_size_t sc_sz; 182 |
183 /* Tasks used by the driver */ |
184 struct task sc_reinit_task; 185 struct task sc_radioon_task; 186 struct task sc_radiooff_task; |
187 188 /* Thermal calibration */ 189 int calib_cnt; 190 struct iwn_calib_state calib; 191 192 struct iwn_rx_stat last_rx_stat; 193 int last_rx_valid; 194 struct iwn_ucode_info ucode_info; --- 11 unchanged lines hidden (view full) --- 206 207#define IWN_LOCK_INIT(_sc) \ 208 mtx_init(&(_sc)->sc_mtx, device_get_nameunit((_sc)->sc_dev), \ 209 MTX_NETWORK_LOCK, MTX_DEF) 210#define IWN_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 211#define IWN_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->sc_mtx, MA_OWNED) 212#define IWN_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 213#define IWN_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->sc_mtx) |