Deleted Added
full compact
if_urtwvar.h (192873) if_urtwvar.h (192984)
1/* $FreeBSD: head/sys/dev/usb/wlan/if_urtwvar.h 192873 2009-05-27 03:57:38Z weongyo $ */
1/* $FreeBSD: head/sys/dev/usb/wlan/if_urtwvar.h 192984 2009-05-28 17:36:36Z thompsa $ */
2
3/*-
4 * Copyright (c) 2008 Weongyo Jeong <weongyo@FreeBSD.org>
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *

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

84 int (*newstate)(struct ieee80211vap *,
85 enum ieee80211_state, int);
86};
87#define URTW_VAP(vap) ((struct urtw_vap *)(vap))
88
89struct urtw_softc {
90 struct ifnet *sc_ifp;
91 device_t sc_dev;
2
3/*-
4 * Copyright (c) 2008 Weongyo Jeong <weongyo@FreeBSD.org>
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *

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

84 int (*newstate)(struct ieee80211vap *,
85 enum ieee80211_state, int);
86};
87#define URTW_VAP(vap) ((struct urtw_vap *)(vap))
88
89struct urtw_softc {
90 struct ifnet *sc_ifp;
91 device_t sc_dev;
92 struct usb2_device *sc_udev;
92 struct usb_device *sc_udev;
93 struct mtx sc_mtx;
94
95 int sc_debug;
96 int sc_if_flags;
97 int sc_flags;
98#define URTW_INIT_ONCE (1 << 1)
99#define URTW_RTL8187B (1 << 2)
100#define URTW_RTL8187B_REV_B (1 << 3)

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

116 int);
117 usb2_error_t (*sc_rf_set_sens)(struct urtw_softc *,
118 int);
119 usb2_error_t (*sc_rf_stop)(struct urtw_softc *);
120 uint8_t sc_rfchip;
121 uint32_t sc_max_sens;
122 uint32_t sc_sens;
123 /* for LED */
93 struct mtx sc_mtx;
94
95 int sc_debug;
96 int sc_if_flags;
97 int sc_flags;
98#define URTW_INIT_ONCE (1 << 1)
99#define URTW_RTL8187B (1 << 2)
100#define URTW_RTL8187B_REV_B (1 << 3)

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

116 int);
117 usb2_error_t (*sc_rf_set_sens)(struct urtw_softc *,
118 int);
119 usb2_error_t (*sc_rf_stop)(struct urtw_softc *);
120 uint8_t sc_rfchip;
121 uint32_t sc_max_sens;
122 uint32_t sc_sens;
123 /* for LED */
124 struct usb2_callout sc_led_ch;
124 struct usb_callout sc_led_ch;
125 struct task sc_led_task;
126 uint8_t sc_psr;
127 uint8_t sc_strategy;
128#define URTW_LED_GPIO 1
129 uint8_t sc_gpio_ledon;
130 uint8_t sc_gpio_ledinprogress;
131 uint8_t sc_gpio_ledstate;
132 uint8_t sc_gpio_ledpin;
133 uint8_t sc_gpio_blinktime;
134 uint8_t sc_gpio_blinkstate;
135 /* RX/TX */
125 struct task sc_led_task;
126 uint8_t sc_psr;
127 uint8_t sc_strategy;
128#define URTW_LED_GPIO 1
129 uint8_t sc_gpio_ledon;
130 uint8_t sc_gpio_ledinprogress;
131 uint8_t sc_gpio_ledstate;
132 uint8_t sc_gpio_ledpin;
133 uint8_t sc_gpio_blinktime;
134 uint8_t sc_gpio_blinkstate;
135 /* RX/TX */
136 struct usb2_xfer *sc_xfer[URTW_8187B_N_XFERS];
136 struct usb_xfer *sc_xfer[URTW_8187B_N_XFERS];
137#define URTW_PRIORITY_LOW 0
138#define URTW_PRIORITY_NORMAL 1
139#define URTW_DATA_TIMEOUT 10000 /* 10 sec */
140#define URTW_8187B_TXPIPE_BE 0x6 /* best effort */
141#define URTW_8187B_TXPIPE_BK 0x7 /* background */
142#define URTW_8187B_TXPIPE_VI 0x5 /* video */
143#define URTW_8187B_TXPIPE_VO 0x4 /* voice */
144#define URTW_8187B_TXPIPE_MAX 4

--- 30 unchanged lines hidden ---
137#define URTW_PRIORITY_LOW 0
138#define URTW_PRIORITY_NORMAL 1
139#define URTW_DATA_TIMEOUT 10000 /* 10 sec */
140#define URTW_8187B_TXPIPE_BE 0x6 /* best effort */
141#define URTW_8187B_TXPIPE_BK 0x7 /* background */
142#define URTW_8187B_TXPIPE_VI 0x5 /* video */
143#define URTW_8187B_TXPIPE_VO 0x4 /* voice */
144#define URTW_8187B_TXPIPE_MAX 4

--- 30 unchanged lines hidden ---