Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus
[linux-btrfs-devel.git] / drivers / staging / rtl8192e / r8180_93cx6.h
blob55d20544a9c9ae85e0ba94f09dcf85bf11c00a0d
1 /* r8180_93cx6.h - 93c46 or 93c56 eeprom card programming routines
3 * This is part of rtl8187 OpenSource driver
4 * Copyright (C) Andrea Merello 2004-2005 <andreamrl@tiscali.it>
5 * Released under the terms of GPL (General Public Licence)
6 * Parts of this driver are based on the GPL part of the official realtek driver
8 * Parts of this driver are based on the rtl8180 driver skeleton from
9 * Patric Schenke & Andres Salomon.
11 * Parts of this driver are based on the Intel Pro Wireless 2100 GPL driver
13 * We want to thank the authors of the above mentioned projects and to
14 * the authors of the Ndiswrapper project.
17 #include "r8192E.h"
18 #include "r8192E_hw.h"
20 #define EPROM_DELAY 10
22 #define EPROM_ANAPARAM_ADDRLWORD 0xd
23 #define EPROM_ANAPARAM_ADDRHWORD 0xe
25 #define EPROM_RFCHIPID 0x6
26 #define EPROM_TXPW_BASE 0x05
27 #define EPROM_RFCHIPID_RTL8225U 5
28 #define EPROM_RF_PARAM 0x4
29 #define EPROM_CONFIG2 0xc
31 #define EPROM_VERSION 0x1E
32 #define MAC_ADR 0x7
34 #define CIS 0x18
36 #define EPROM_TXPW0 0x16
37 #define EPROM_TXPW2 0x1b
38 #define EPROM_TXPW1 0x3d
40 /* Reads a 16 bits word. */
41 u32 eprom_read(struct r8192_priv *priv, u32 addr);