r8180_93cx6.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. This is part of rtl8187 OpenSource driver
  3. Copyright (C) Andrea Merello 2004-2005 <andrea.merello@gmail.com>
  4. Released under the terms of GPL (General Public Licence)
  5. Parts of this driver are based on the GPL part of the
  6. official realtek driver
  7. Parts of this driver are based on the rtl8180 driver skeleton
  8. from Patric Schenke & Andres Salomon
  9. Parts of this driver are based on the Intel Pro Wireless 2100 GPL driver
  10. We want to thank the Authors of such projects and the Ndiswrapper
  11. project Authors.
  12. */
  13. /*This files contains card eeprom (93c46 or 93c56) programming routines*/
  14. /*memory is addressed by WORDS*/
  15. #include "r8192U.h"
  16. #include "r8192U_hw.h"
  17. #define EPROM_DELAY 10
  18. #define EPROM_ANAPARAM_ADDRLWORD 0xd
  19. #define EPROM_ANAPARAM_ADDRHWORD 0xe
  20. #define EPROM_RFCHIPID 0x6
  21. #define EPROM_TXPW_BASE 0x05
  22. #define EPROM_RFCHIPID_RTL8225U 5
  23. #define EPROM_RF_PARAM 0x4
  24. #define EPROM_CONFIG2 0xc
  25. #define EPROM_VERSION 0x1E
  26. #define MAC_ADR 0x7
  27. #define CIS 0x18
  28. #define EPROM_TXPW0 0x16
  29. #define EPROM_TXPW2 0x1b
  30. #define EPROM_TXPW1 0x3d
  31. u32 eprom_read(struct net_device *dev, u32 addr); /* reads a 16 bits word */