--- zzzz-none-000/linux-2.6.28.10/arch/mips/include/asm/mips-boards/prom.h 2009-05-02 18:54:43.000000000 +0000 +++ fusiv-7390-686/linux-2.6.28.10/arch/mips/include/asm/mips-boards/prom.h 2012-02-14 14:37:49.000000000 +0000 @@ -43,5 +43,29 @@ unsigned int size; /* In bytes. */ unsigned int type; /* free or prom memory */ }; +/*------------------------------------------------------------------------------------------*\ + * Header WLAN - DECT - Config +\*------------------------------------------------------------------------------------------*/ +#define UR8_MAX_CONFIG_ENTRIES 8 +#define IKANOS_MAX_CONFIG_ENTRIES 8 +#define XR9_MAX_CONFIG_ENTRIES 8 + +enum wlan_dect_type { + WLAN, + DECT, + WLAN2, + ZERTIFIKATE, + DOCSIS, + MAX_TYPE +}; + +struct __attribute__ ((packed)) wlan_dect_config { + unsigned char Version; /*--- z.Z. 1 ---*/ + enum wlan_dect_type Type :8; /*--- 0 - WLAN; 1 - DECT ---*/ + unsigned short Len; /*--- 384 - WLAN, 128 - DECT ---*/ +}; + +extern void set_wlan_dect_config_address(unsigned int *pConfig); +extern int get_wlan_dect_config(enum wlan_dect_type Type, unsigned char *buffer, unsigned int len); #endif /* !(_MIPS_PROM_H) */