view src/aci2/bmi/mmiNetwork.h @ 638:cab2f315827e

FFS dev.c: added Spansion PL032J to the "generic" table With the discovery of first GTM900 and then Tango, it now appears that Openmoko was not the only manuf after all who kept TI's TCS211 firmware largely intact (as opposed to changing it beyond all recognition like Compal, Chi-Mei and BenQ did), thus we are now getting new "alien" targets on which we reuse the original manuf's FFS with IMEI and RF calibration tables as if it were native. On these targets we use the original device table for FFS, even though we previously thought that it would never apply to any target other than dsample, leonardo and gtamodem. We have previously added Samsung K5L33xxCAM (a new kind of multi-ID device) to the generic table to support its use in Huawei GTM900-B modules; now we got news that some slightly older GTM900-B specimen used S71PL032J instead, so we are now adding PL032J as well.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 30 Jan 2020 17:45:48 +0000
parents 3c2acfa1a72f
children
line wrap: on
line source

/*******************************************************************************

					CONDAT (UK)

********************************************************************************                                                                              

 This software product is the property of Condat (UK) Ltd and may not be
 disclosed to any third party without the express permission of the owner.                                 
                                                                              
********************************************************************************

 $Project name:	Basic MMI                                                      
 $Project code:	BMI (6349)                                                           
 $Module:		
 $File:		    MmiNetwork.h
 $Revision:		1.0                                                       
                                                                              
 $Author:		Condat(UK)                                                         
 $Date:		    25/10/00                                                      
                                                                               
********************************************************************************
                                                                              
 Description:
 
                        
********************************************************************************



*******************************************************************************
                                                                              
                                Required Include Files
                                                                              
*******************************************************************************/


#ifndef _DEF_MMI_NETWORK_H_
#define _DEF_MMI_NETWORK_H_

/*
 * Events from network management dialog
 */
#define NETWORK_NO_SERVICE         400
#define NETWORK_FULL_SERVICE       401
#define NETWORK_SEARCH_NETWORK     402
#define NETWORK_NO_PLMN_XXX_AVAIL  403


/*
 * NETWORK_NO_SERVICE  : no parameter
 *
 * The mobile has no or limited service
 *
 * NETWORK_FULL_SERVICE : no parameter
 *
 * The mobile has full service. The current network as text string and in MCC/MNC format
 * can be requested by the function network_get_plmn.
 *
 * NETWORK_SEARCH_NETWORK : no parameter
 *
 * The mobile indicates searching for a network.
 *
 * NETWORK_NO_PLMN_XXX_AVAIL: no parameter
 *
 * The network has enabled network logging, but this network is not available. The logged
 * network can be requested by the function network_get_plmn.
 * 
 */
#define SIZE_PLMN_NAME 			20
#define SIZE_NETWORK_NAME		6

typedef struct  
{
  UBYTE plmn_name [SIZE_PLMN_NAME];        /* textual format of PLMN */
  UBYTE network_name [SIZE_NETWORK_NAME];      /* numeric format of PLMN */
  UBYTE service_provider_name[SP_NAME]; /* Marcus: Issue 1618: 24/01/2003 */
  UBYTE roaming_indicator;     /* Roaming Indicator      */
} T_CURRENT_NETWORK;


/*
 * Prototypes
 */
T_MFW_HND network_create             (T_MFW_HND parent_window);
void      network_destroy            (T_MFW_HND own_window);
void      network                    (T_MFW_HND win, USHORT event, SHORT value, void * parameter);

/*
 * Menu entries
 */
int       network_set_mode_auto      (T_MFW_MNU * m, T_MFW_MNU_ITEM * mi);
int       network_set_mode_man       (T_MFW_MNU * m, T_MFW_MNU_ITEM * mi);
int		  network_pref_list          (T_MFW_MNU * m, T_MFW_MNU_ITEM * mi);
int       network_log_on             (T_MFW_MNU * m, T_MFW_MNU_ITEM * mi);
int       network_log_off            (T_MFW_MNU * m, T_MFW_MNU_ITEM * mi);

USHORT    nm_flag_log_on             (T_MFW_MNU * m, T_MFW_MNU_ATTR * ma, T_MFW_MNU_ITEM * mi);
USHORT    nm_flag_log_off            (T_MFW_MNU * m, T_MFW_MNU_ATTR * ma, T_MFW_MNU_ITEM * mi);

void      network_get_name           (T_CURRENT_NETWORK * nm);
void      network_start_full_service (void);
T_MFW_HND networkInit (T_MFW_HND parent_window);

#endif