Deleted Added
full compact
if_runreg.h (208019) if_runreg.h (218676)
1/* $OpenBSD: rt2860reg.h,v 1.19 2009/05/18 19:25:07 damien Exp $ */
2
3/*-
4 * Copyright (c) 2007
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.
10 *
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 *
1/* $OpenBSD: rt2860reg.h,v 1.19 2009/05/18 19:25:07 damien Exp $ */
2
3/*-
4 * Copyright (c) 2007
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.
10 *
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 *
19 * $FreeBSD: head/sys/dev/usb/wlan/if_runreg.h 208019 2010-05-13 00:19:03Z thompsa $
19 * $FreeBSD: head/sys/dev/usb/wlan/if_runreg.h 218676 2011-02-14 08:14:06Z hselasky $
20 */
21
22#ifndef _IF_RUNREG_H_
23#define _IF_RUNREG_H_
24
25/* PCI registers */
26#define RT2860_PCI_CFG 0x0000
27#define RT2860_PCI_EECTRL 0x0004

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

1203 { 25, 0x15 }, \
1204 { 26, 0x85 }, \
1205 { 27, 0x00 }, \
1206 { 28, 0x00 }, \
1207 { 29, 0x9b }, \
1208 { 30, 0x09 }, \
1209 { 31, 0x10 }
1210
20 */
21
22#ifndef _IF_RUNREG_H_
23#define _IF_RUNREG_H_
24
25/* PCI registers */
26#define RT2860_PCI_CFG 0x0000
27#define RT2860_PCI_EECTRL 0x0004

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

1203 { 25, 0x15 }, \
1204 { 26, 0x85 }, \
1205 { 27, 0x00 }, \
1206 { 28, 0x00 }, \
1207 { 29, 0x9b }, \
1208 { 30, 0x09 }, \
1209 { 31, 0x10 }
1210
1211
1212union run_stats {
1213 uint32_t raw;
1214 struct {
1215 uint16_t fail;
1216 uint16_t pad;
1217 } error;
1218 struct {
1219 uint16_t success;
1220 uint16_t retry;
1221 } tx;
1222} __aligned(4);
1223
1211#endif /* _IF_RUNREG_H_ */
1224#endif /* _IF_RUNREG_H_ */