1 /*
2 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
5 /*
6 * Copyright (c) 2004, 2005 David Young. All rights reserved.
7 *
8 * Driver for the Realtek RTL8180 802.11 MAC/BBP by David Young.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. The name of David Young may not be used to endorse or promote
19 * products derived from this software without specific prior
20 * written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY David Young ``AS IS'' AND ANY
23 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
61 #define RTW_DEBUG_INIT 0x000400
62 #define RTW_DEBUG_PKTDUMP 0x000800
63 #define RTW_DEBUG_RECV 0x001000
64 #define RTW_DEBUG_RECV_DESC 0x002000
65 #define RTW_DEBUG_IOSTATE 0x004000
66 #define RTW_DEBUG_INTR 0x008000
67 #define RTW_DEBUG_PHY 0x010000
68 #define RTW_DEBUG_PHYIO 0x020000
69 #define RTW_DEBUG_PHYBITIO 0x040000
70 #define RTW_DEBUG_TIMEOUT 0x080000
71 #define RTW_DEBUG_BUGS 0x100000
72 #define RTW_DEBUG_BEACON 0x200000
73 #define RTW_DEBUG_WIFICFG 0x400000
74 #define RTW_DEBUG_80211 0x800000
75 #define RTW_DEBUG_MAX 0xffffff
76
77 #ifdef DEBUG
78 #define RTW_DPRINTF \
79 rtw_dbg
80 #else /* DEBUG */
81 #define RTW_DPRINTF
82 #endif /* DEBUG */
83
84 enum rtw_locale {
85 RTW_LOCALE_USA = 0,
86 RTW_LOCALE_EUROPE,
87 RTW_LOCALE_JAPAN,
88 RTW_LOCALE_UNKNOWN
89 };
90
91 enum rtw_rfchipid {
92 RTW_RFCHIPID_RESERVED = 0,
93 RTW_RFCHIPID_INTERSIL = 1,
94 RTW_RFCHIPID_RFMD = 2,
95 RTW_RFCHIPID_PHILIPS = 3,
96 RTW_RFCHIPID_MAXIM = 4,
97 RTW_RFCHIPID_GCT = 5
98 };
99
100 /*
101 * sc_flags
|
1 /*
2 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 *
5 * Copyright 2019 Joyent, Inc.
6 */
7 /*
8 * Copyright (c) 2004, 2005 David Young. All rights reserved.
9 *
10 * Driver for the Realtek RTL8180 802.11 MAC/BBP by David Young.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright
16 * notice, this list of conditions and the following disclaimer.
17 * 2. Redistributions in binary form must reproduce the above copyright
18 * notice, this list of conditions and the following disclaimer in the
19 * documentation and/or other materials provided with the distribution.
20 * 3. The name of David Young may not be used to endorse or promote
21 * products derived from this software without specific prior
22 * written permission.
23 *
24 * THIS SOFTWARE IS PROVIDED BY David Young ``AS IS'' AND ANY
25 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
63 #define RTW_DEBUG_INIT 0x000400
64 #define RTW_DEBUG_PKTDUMP 0x000800
65 #define RTW_DEBUG_RECV 0x001000
66 #define RTW_DEBUG_RECV_DESC 0x002000
67 #define RTW_DEBUG_IOSTATE 0x004000
68 #define RTW_DEBUG_INTR 0x008000
69 #define RTW_DEBUG_PHY 0x010000
70 #define RTW_DEBUG_PHYIO 0x020000
71 #define RTW_DEBUG_PHYBITIO 0x040000
72 #define RTW_DEBUG_TIMEOUT 0x080000
73 #define RTW_DEBUG_BUGS 0x100000
74 #define RTW_DEBUG_BEACON 0x200000
75 #define RTW_DEBUG_WIFICFG 0x400000
76 #define RTW_DEBUG_80211 0x800000
77 #define RTW_DEBUG_MAX 0xffffff
78
79 #ifdef DEBUG
80 #define RTW_DPRINTF \
81 rtw_dbg
82 #else /* DEBUG */
83 #define RTW_DPRINTF(...) (void)(0)
84 #endif /* DEBUG */
85
86 enum rtw_locale {
87 RTW_LOCALE_USA = 0,
88 RTW_LOCALE_EUROPE,
89 RTW_LOCALE_JAPAN,
90 RTW_LOCALE_UNKNOWN
91 };
92
93 enum rtw_rfchipid {
94 RTW_RFCHIPID_RESERVED = 0,
95 RTW_RFCHIPID_INTERSIL = 1,
96 RTW_RFCHIPID_RFMD = 2,
97 RTW_RFCHIPID_PHILIPS = 3,
98 RTW_RFCHIPID_MAXIM = 4,
99 RTW_RFCHIPID_GCT = 5
100 };
101
102 /*
103 * sc_flags
|