@ -104,100 +104,56 @@
/* isn't a real PCMCIA host interface adapter providing all the */
/* card&socket services. */
/* LinuxPPC users! uncomment the following line to build for LinuxPPC */
/* a header file change has created a small problem that will be fixed */
/* in the next release. For the time being we can't automagically */
/* detect LinuxPPC */
/* #define CONFIG_PPC 1 */
/* Lets try to figure out what we've got. */
/* Lets try to figure out what we've got. Kernel mode or User mode? */
# if defined(__KERNEL__)
# define WLAN_OS WLAN_LINUX_KERNEL
# if defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__)
# define WLAN_CPU_FAMILY WLAN_Ix86
# define WLAN_CPU_CORE WLAN_I386CORE
# define WLAN_CPU_PART WLAN_I386PART
# define WLAN_SYSARCH WLAN_PCAT
# elif defined(CONFIG_PPC)
# define WLAN_CPU_FAMILY WLAN_PPC
# define WLAN_CPU_CORE WLAN_PPCCORE
# if defined(CONFIG_MBX)
# define WLAN_CPU_PART WLAN_MPC860
# define WLAN_SYSARCH WLAN_MBX
# elif defined(CONFIG_RPXLITE)
# define WLAN_CPU_PART WLAN_MPC823
# define WLAN_SYSARCH WLAN_RPX
# elif defined(CONFIG_RPXCLASSIC)
# define WLAN_CPU_PART WLAN_MPC860
# define WLAN_SYSARCH WLAN_RPX
# else
# define WLAN_CPU_PART WLAN_PPCPART
# define WLAN_SYSARCH WLAN_PMAC
# endif
# elif defined(__arm__)
# define WLAN_CPU_FAMILY WLAN_ARM
# define WLAN_CPU_CORE WLAN_ARMCORE
# define WLAN_CPU_PART WLAN_ARM_PART
# define WLAN_SYSARCH WLAN_SKIFF
# elif defined(__WLAN_ALPHA__)
# define WLAN_CPU_FAMILY WLAN_ALPHA
# define WLAN_CPU_CORE WLAN_ALPHACORE
# define WLAN_CPU_PART WLAN_ALPHAPART
# define WLAN_SYSARCH WLAN_ALPHAARCH
# elif defined(__mips__)
# define WLAN_CPU_FAMILY WLAN_MIPS
# define WLAN_CPU_CORE WLAN_MIPSCORE
# define WLAN_CPU_PART WLAN_MIPSPART
# define WLAN_SYSARCH WLAN_MIPSARCH
# elif defined(__hppa__)
# define WLAN_CPU_FAMILY WLAN_HPPA
# define WLAN_CPU_CORE WLAN_HPPACORE
# define WLAN_CPU_PART WLAN_HPPAPART
# define WLAN_SYSARCH WLAN_HPPAARCH
# else
# error "No CPU identified!"
# endif
# else /* not in kernel mode */
# else
# define WLAN_OS WLAN_LINUX_USER
# if defined(__I386__)
# define WLAN_CPU_FAMILY WLAN_Ix86
# define WLAN_CPU_CORE WLAN_I386CORE
# define WLAN_CPU_PART WLAN_I386PART
# define WLAN_SYSARCH WLAN_PCAT
# elif defined(__WLAN_PPC__)
# define WLAN_CPU_FAMILY WLAN_PPC
# define WLAN_CPU_CORE WLAN_PPCCORE
# if defined(CONFIG_MBX)
# define WLAN_CPU_PART WLAN_MPC860
# define WLAN_SYSARCH WLAN_MBX
# elif defined(CONFIG_RPX)
# define WLAN_CPU_PART WLAN_MPC850
# define WLAN_SYSARCH WLAN_RPX
# else
# define WLAN_CPU_PART WLAN_PPCPART
# define WLAN_SYSARCH WLAN_PMAC
# endif
# elif defined(__arm__)
# define WLAN_CPU_FAMILY WLAN_ARM
# define WLAN_CPU_CORE WLAN_ARMCORE
# define WLAN_CPU_PART WLAN_ARM_PART
# define WLAN_SYSARCH WLAN_SKIFF
# elif defined(__mips__)
# define WLAN_CPU_FAMILY WLAN_MIPS
# define WLAN_CPU_CORE WLAN_MIPSCORE
# define WLAN_CPU_PART WLAN_MIPSPART
# define WLAN_SYSARCH WLAN_MIPSARCH
# elif defined(__hppa__)
# define WLAN_CPU_FAMILY WLAN_HPPA
# define WLAN_CPU_CORE WLAN_HPPACORE
# define WLAN_CPU_PART WLAN_HPPAPART
# define WLAN_SYSARCH WLAN_HPPAARCH
# endif
# if defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__)
# define WLAN_CPU_FAMILY WLAN_Ix86
# define WLAN_CPU_CORE WLAN_I386CORE
# define WLAN_CPU_PART WLAN_I386PART
# define WLAN_SYSARCH WLAN_PCAT
# elif defined(__ppc__)
# define WLAN_CPU_FAMILY WLAN_PPC
# define WLAN_CPU_CORE WLAN_PPCCORE
# if defined(CONFIG_MBX)
# define WLAN_CPU_PART WLAN_MPC860
# define WLAN_SYSARCH WLAN_MBX
# elif defined(CONFIG_RPXLITE)
# define WLAN_CPU_PART WLAN_MPC823
# define WLAN_SYSARCH WLAN_RPX
# elif defined(CONFIG_RPXCLASSIC)
# define WLAN_CPU_PART WLAN_MPC860
# define WLAN_SYSARCH WLAN_RPX
# else
# error "No CPU identified!"
# define WLAN_CPU_PART WLAN_PPCPART
# define WLAN_SYSARCH WLAN_PMAC
# endif
# elif defined(__arm__)
# define WLAN_CPU_FAMILY WLAN_ARM
# define WLAN_CPU_CORE WLAN_ARMCORE
# define WLAN_CPU_PART WLAN_ARM_PART
# define WLAN_SYSARCH WLAN_SKIFF
# elif defined(__alpha__)
# define WLAN_CPU_FAMILY WLAN_ALPHA
# define WLAN_CPU_CORE WLAN_ALPHACORE
# define WLAN_CPU_PART WLAN_ALPHAPART
# define WLAN_SYSARCH WLAN_ALPHAARCH
# elif defined(__mips__)
# define WLAN_CPU_FAMILY WLAN_MIPS
# define WLAN_CPU_CORE WLAN_MIPSCORE
# define WLAN_CPU_PART WLAN_MIPSPART
# define WLAN_SYSARCH WLAN_MIPSARCH
# elif defined(__hppa__)
# define WLAN_CPU_FAMILY WLAN_HPPA
# define WLAN_CPU_CORE WLAN_HPPACORE
# define WLAN_CPU_PART WLAN_HPPAPART
# define WLAN_SYSARCH WLAN_HPPAARCH
# else
# error "No CPU identified!"
# endif
/*
@ -210,10 +166,11 @@
This may also affect PLX boards and other BE & | PPC platforms ;
as new ones are discovered , add them below .
*/
# if ((( WLAN_SYSARCH == WLAN_PMAC) || (WLAN_SYSARCH == WLAN_SKIFF)) && (WLAN_HOSTIF == WLAN_PCI ))
# if (WLAN_HOSTIF == WLAN_PCI)
# if ((WLAN_SYSARCH == WLAN_PMAC) || (WLAN_SYSARCH == WLAN_SKIFF))
# define PCI_REVERSES_ENDIAN
# endif
# endif
/*=============================================================*/
/*------ Bit settings -----------------------------------------*/