Deleted Added
full compact
rt2560var.h (165352) rt2560var.h (170530)
1/* $FreeBSD: head/sys/dev/ral/rt2560var.h 165352 2006-12-19 17:37:41Z bms $ */
1/* $FreeBSD: head/sys/dev/ral/rt2560var.h 170530 2007-06-11 03:36:55Z sam $ */
2
3/*-
4 * Copyright (c) 2005, 2006
5 * Damien Bergamini <damien.bergamini@free.fr>
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.

--- 94 unchanged lines hidden (view full) ---

104 enum ieee80211_state, int);
105 device_t sc_dev;
106 bus_space_tag_t sc_st;
107 bus_space_handle_t sc_sh;
108
109 struct mtx sc_mtx;
110
111 struct callout watchdog_ch;
2
3/*-
4 * Copyright (c) 2005, 2006
5 * Damien Bergamini <damien.bergamini@free.fr>
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.

--- 94 unchanged lines hidden (view full) ---

104 enum ieee80211_state, int);
105 device_t sc_dev;
106 bus_space_tag_t sc_st;
107 bus_space_handle_t sc_sh;
108
109 struct mtx sc_mtx;
110
111 struct callout watchdog_ch;
112 struct callout scan_ch;
113 struct callout rssadapt_ch;
114
115 int sc_tx_timer;
112 struct callout rssadapt_ch;
113
114 int sc_tx_timer;
116
115 int sc_invalid;
116/*
117 * The same in both up to here
118 * ------------------------------------------------
119 */
117 uint32_t asic_rev;
118 uint32_t eeprom_rev;
119 uint8_t rf_rev;
120 uint32_t asic_rev;
121 uint32_t eeprom_rev;
122 uint8_t rf_rev;
123 uint8_t rssi_corr;
120
121 struct rt2560_tx_ring txq;
122 struct rt2560_tx_ring prioq;
123 struct rt2560_tx_ring atimq;
124 struct rt2560_tx_ring bcnq;
125 struct rt2560_rx_ring rxq;
126
127 struct ieee80211_beacon_offsets sc_bo;

--- 24 unchanged lines hidden (view full) ---

152 int sc_rxtap_len;
153
154 union {
155 struct rt2560_tx_radiotap_header th;
156 uint8_t pad[64];
157 } sc_txtapu;
158#define sc_txtap sc_txtapu.th
159 int sc_txtap_len;
124
125 struct rt2560_tx_ring txq;
126 struct rt2560_tx_ring prioq;
127 struct rt2560_tx_ring atimq;
128 struct rt2560_tx_ring bcnq;
129 struct rt2560_rx_ring rxq;
130
131 struct ieee80211_beacon_offsets sc_bo;

--- 24 unchanged lines hidden (view full) ---

156 int sc_rxtap_len;
157
158 union {
159 struct rt2560_tx_radiotap_header th;
160 uint8_t pad[64];
161 } sc_txtapu;
162#define sc_txtap sc_txtapu.th
163 int sc_txtap_len;
164#define RAL_INPUT_RUNNING 1
165 int sc_flags;
160};
161
162int rt2560_attach(device_t, int);
163int rt2560_detach(void *);
166};
167
168int rt2560_attach(device_t, int);
169int rt2560_detach(void *);
164void rt2560_shutdown(void *);
165void rt2560_suspend(void *);
170void rt2560_stop(void *);
166void rt2560_resume(void *);
167void rt2560_intr(void *);
168
169#define RAL_LOCK(sc) mtx_lock(&(sc)->sc_mtx)
170#define RAL_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx)
171void rt2560_resume(void *);
172void rt2560_intr(void *);
173
174#define RAL_LOCK(sc) mtx_lock(&(sc)->sc_mtx)
175#define RAL_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx)