view cdg211/cdginc/p_smreg.val @ 629:3231dd9b38c1

armio.c: make GPIOs 8 & 13 outputs driving 1 on all "classic" targets Calypso GPIOs 8 & 13 are pinmuxed with MCUEN1 & MCUEN2, respectively, and on powerup these pins are MCUEN, i.e., outputs driving 1. TI's code for C-Sample and earlier turns them into GPIOs configured as outputs also driving 1 - so far, so good - but TI's code for BOARD 41 (which covers D-Sample, Leonardo and all real world Calypso devices derived from the latter) switches them from MCUEN to GPIOs, but then leaves them as inputs. Given that the hardware powerup state of these two pins is outputs driving 1, every Calypso board design MUST be compatible with such driving; typically these GPIO signals will be either unused and unconnected or connected as outputs driving some peripheral. Turning these pins into GPIO inputs will result in floating inputs on every reasonably-wired board, thus I am convinced that this configuration is nothing but a bug on the part of whoever wrote this code at TI. This floating input bug had already been fixed earlier for GTA modem and FCDEV3B targets; the present change makes the fix unconditional for all "classic" targets. The newly affected targets are D-Sample, Leonardo, Tango and GTM900.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 02 Jan 2020 05:38:26 +0000
parents 56abf6cf8a0b
children
line wrap: on
line source

/*
+--------------------------------------------------------------------------+
| PROJECT : PROTOCOL STACK                                                 |
| FILE    : p_smreg.val                                                    |
| SOURCE  : "__out__\g23m_dfile\prim\smreg.pdf"                            |
| LastModified : "2002-04-26"                                              |
| IdAndVersion : "8441.108.99.007"                                         |
| SrcFileTime  : "Mon Jul 26 13:29:38 2004"                                |
| Generated by CCDGEN_2.5.5 on Fri Jun 08 13:59:16 2007                    |
|           !!DO NOT MODIFY!!DO NOT MODIFY!!DO NOT MODIFY!!                |
+--------------------------------------------------------------------------+
*/

/* PRAGMAS
 * PREFIX                 : NONE
 * COMPATIBILITY_DEFINES  : NO (require PREFIX)
 * ALWAYS_ENUM_IN_VAL_FILE: NO
 * ENABLE_GROUP: NO
 * CAPITALIZE_TYPENAME: NO
 */


#ifndef P_SMREG_VAL
#define P_SMREG_VAL


#define CDG_ENTER__P_SMREG_VAL

#define CDG_ENTER__FILENAME _P_SMREG_VAL
#define CDG_ENTER__P_SMREG_VAL__FILE_TYPE CDGINC
#define CDG_ENTER__P_SMREG_VAL__LAST_MODIFIED _2002_04_26
#define CDG_ENTER__P_SMREG_VAL__ID_AND_VERSION _8441_108_99_007

#define CDG_ENTER__P_SMREG_VAL__SRC_FILE_TIME _Mon_Jul_26_13_29_38_2004

#include "CDG_ENTER.h"

#undef CDG_ENTER__P_SMREG_VAL

#undef CDG_ENTER__FILENAME


/*
 * Value constants for VAL_smreg_nsapi
 */
#define SMREG_NSAPI_0                  (0x0)      /* escape mechanism for future extensions */
#define SMREG_NSAPI_1                  (0x1)      /* Point-To-Multipoint Multicast information */
#define SMREG_NSAPI_2                  (0x2)      /* reserved for future use        */
#define SMREG_NSAPI_3                  (0x3)      /* reserved for future use        */
#define SMREG_NSAPI_4                  (0x4)      /* reserved for future use        */
#define SMREG_NSAPI_5                  (0x5)      /* dynamically allocated SMREG_NSAPI value */
#define SMREG_NSAPI_6                  (0x6)      /* dynamically allocated SMREG_NSAPI value */
#define SMREG_NSAPI_7                  (0x7)      /* dynamically allocated SMREG_NSAPI value */
#define SMREG_NSAPI_8                  (0x8)      /* dynamically allocated SMREG_NSAPI value */
#define SMREG_NSAPI_9                  (0x9)      /* dynamically allocated SMREG_NSAPI value */
#define SMREG_NSAPI_10                 (0xa)      /* dynamically allocated SMREG_NSAPI value */
#define SMREG_NSAPI_11                 (0xb)      /* dynamically allocated SMREG_NSAPI value */
#define SMREG_NSAPI_12                 (0xc)      /* dynamically allocated SMREG_NSAPI value */
#define SMREG_NSAPI_13                 (0xd)      /* dynamically allocated SMREG_NSAPI value */
#define SMREG_NSAPI_14                 (0xe)      /* dynamically allocated SMREG_NSAPI value */
#define SMREG_NSAPI_15                 (0xf)      /* dynamically allocated NSAPI value */

/*
 * Value constants for VAL_pdp_type
 */
#define X_121                          (0x0)      /* X.121 address                  */
#define IP_V_4                         (0x21)     /* IP version 4                   */
#define IP_V_6                         (0x57)     /* IP version 6                   */

/*
 * Value constants for VAL_peak
 */
#define SMREG_PEAK_SUB                 (0x0)      /* Subscribed peak throughput     */
#define SMREG_PEAK_1K                  (0x1)      /* Up to 1 000 octet/s            */
#define SMREG_PEAK_2K                  (0x2)      /* Up to 2 000 octet/s            */
#define SMREG_PEAK_4K                  (0x3)      /* Up to 4 000 octet/s            */
#define SMREG_PEAK_8K                  (0x4)      /* Up to 8 000 octet/s            */
#define SMREG_PEAK_16K                 (0x5)      /* Up to 16 000 octet/s           */
#define SMREG_PEAK_32K                 (0x6)      /* Up to 32 000 octet/s           */
#define SMREG_PEAK_64K                 (0x7)      /* Up to 64 000 octet/s           */
#define SMREG_PEAK_128K                (0x8)      /* Up to 128 000 octet/s          */
#define SMREG_PEAK_256K                (0x9)      /* Up to 256 000 octet/s          */

/*
 * Value constants for VAL_relclass
 */
#define SMREG_RELCLASS_SUB             (0x0)      /* Subscribed reliability class   */
#define SMREG_GTP_LLC_RLC_PROT         (0x1)      /* Acknowledged GTP, LLC, and RLC; Protected data */
#define SMREG_LLC_RLC_PROT             (0x2)      /* Unacknowledged GTP; Acknowledged LLC and RLC, Protected data */
#define SMREG_RLC_PROT                 (0x3)      /* Unacknowledged GTP and LLC; Acknowledged RLC, Protected data */
#define SMREG_PROT                     (0x4)      /* Unacknowledged GTP, LLC, and RLC, Protected data */
#define SMREG_NO_REL                   (0x5)      /* Unacknowledged GTP, LLC, and RLC, Unprotected data */

/*
 * Value constants for VAL_delay
 */
#define SMREG_DELAY_SUB                (0x0)      /* Subscribed delay class         */
#define SMREG_DELAY_1                  (0x1)      /* Delay class 1                  */
#define SMREG_DELAY_2                  (0x2)      /* Delay class 2                  */
#define SMREG_DELAY_3                  (0x3)      /* Delay class 3                  */
#define SMREG_DELAY_4                  (0x4)      /* Delay class 4 (best effort)    */

/*
 * Value constants for VAL_mean
 */
#define SMREG_MEAN_SUB                 (0x0)      /* Subscribed mean throughput     */
#define SMREG_MEAN_100                 (0x1)      /* 100 octet/h                    */
#define SMREG_MEAN_200                 (0x2)      /* 200 octet/h                    */
#define SMREG_MEAN_500                 (0x3)      /* 500 octet/h                    */
#define SMREG_MEAN_1K                  (0x4)      /* 1 000 octet/h                  */
#define SMREG_MEAN_2K                  (0x5)      /* 2 000 octet/h                  */
#define SMREG_MEAN_5K                  (0x6)      /* 5 000 octet/h                  */
#define SMREG_MEAN_10K                 (0x7)      /* 10 000 octet/h                 */
#define SMREG_MEAN_20K                 (0x8)      /* 20 000 octet/h                 */
#define SMREG_MEAN_50K                 (0x9)      /* 50 000 octet/h                 */
#define SMREG_MEAN_100K                (0xa)      /* 100 000 octet/h                */
#define SMREG_MEAN_200K                (0xb)      /* 200 000 octet/h                */
#define SMREG_MEAN_500K                (0xc)      /* 500 000 octet/h                */
#define SMREG_MEAN_1M                  (0xd)      /* 1 000 000 octet/h              */
#define SMREG_MEAN_2M                  (0xe)      /* 2 000 000 octet/h              */
#define SMREG_MEAN_5M                  (0xf)      /* 5 000 000 octet/h              */
#define SMREG_MEAN_10M                 (0x10)     /* 10 000 000 octet/h             */
#define SMREG_MEAN_20M                 (0x11)     /* 20 000 000 octet/h             */
#define SMREG_MEAN_50M                 (0x12)     /* 50 000 000 octet/h             */
#define SMREG_MEAN_BEST                (0x1f)     /* Best effort                    */

/*
 * Value constants for VAL_preced
 */
#define SMREG_PRECED_SUB               (0x0)      /* Subscribed precedence          */
#define SMREG_PRIO_HIGH                (0x1)      /* High priority                  */
#define SMREG_PRIO_NORM                (0x2)      /* Normal priority                */
#define SMREG_PRIO_LOW                 (0x3)      /* Low priority                   */

/*
 * Value constants for VAL_smreg_cause
 */
#define SMREG_RC_INSUF_RES             (0x4b1a)   /* Insufficicent resources        */
#define SMREG_RC_INSUF_RES_NO          (0xb1a)    /* Insufficicent resources network originated */
#define SMREG_RC_MISS_UNKWN_APN        (0xb1b)    /* Missing or unknown APN network originated */
#define SMREG_RC_ADD_OR_TYPE_UNKNWN    (0xb1c)    /* Unknown PDP address or PDP type network originated */
#define SMREG_RC_USE_AUTHED_FAILED     (0xb1d)    /* User authentication failed network originated */
#define SMREG_RC_GGSN_ACT_REJ          (0xb1e)    /* Activation rejected by GGSN network originated */
#define SMREG_RC_ACT_REJ_UNSPEC        (0xb1f)    /* Activation rejected, unspecified network originated */
#define SMREG_RC_SERV_OPT_NOT_SUPP     (0xb20)    /* Service option not supported network originated */
#define SMREG_RC_SERV_OPT_NOT_SUBS     (0xb21)    /* Requested service option not subscribed network originated */
#define SMREG_RC_SERV_OPT_TEMP_OOO     (0xb22)    /* Service option temporarily out of order network originated */
#define SMREG_RC_NSAPI_ALREADY_USED    (0x4b23)   /* NSAPI already used             */
#define SMREG_RC_NSAPI_ALREADY_USED_NO (0xb23)    /* NSAPI already used network originated */
#define SMREG_RC_REGULAR_DEACTIVATION  (0x4b24)   /* Regular deactivation           */
#define SMREG_RC_REGULAR_DEACTIVATION_NO (0xb24)  /* Regular deactivation network originated */
#define SMREG_RC_QOS_NOT_ACCEPTED      (0x4b25)   /* QoS not accepted mobile originated */
#define SMREG_RC_NETWORK_FAILURE_NO    (0xb26)    /* Network failure network originated */
#define SMREG_RC_NETWORK_FAILURE       (0x4b26)   /* Network failure                */
#define SMREG_RC_REACTIVATION_REQD     (0xb27)    /* Reactivation required network originated */
#define SMREG_RC_TI_INVALID_NO         (0xb51)    /* Invalid transaction identifier value */
#define SMREG_RC_TI_INVALID            (0x4b51)   /* Invalid transaction identifier value */
#define SMREG_RC_SEMANTIC_INCORRECT_NO (0xb5f)    /* Semantically incorrect message network originated */
#define SMREG_RC_SEMANTIC_INCORRECT    (0x4b5f)   /* Semantically incorrect message */
#define SMREG_RC_INVALID_MANDAT_NO     (0xb60)    /* Invalid mandatory information network originated */
#define SMREG_RC_INVALID_MANDAT        (0x4b60)   /* Invalid mandatory information  */
#define SMREG_RC_TYPE_NONEXIST_NOTIMP_NO (0xb61)  /* Message type non-existant or not implemented network originated */
#define SMREG_RC_TYPE_NONEXIST_NOTIMP  (0x4b61)   /* Message type non-existant or not implemented */
#define SMREG_RC_TYPE_NOT_STATE_COMP_NO (0xb62)   /* Message type not compatible with the protocol state network originated */
#define SMREG_RC_TYPE_NOT_STATE_COMP   (0x4b62)   /* Message type not compatible with the protocol state */
#define SMREG_RC_IE_NONEXIST_NOTIMP_NO (0xb63)    /* Information element non-existatnt or not implemented network originated */
#define SMREG_RC_IE_NONEXIST_NOTIMP    (0x4b63)   /* Information element non-existatnt or not implemented */
#define SMREG_RC_COND_IE_ERROR_NO      (0xb64)    /* Conditional IE error network originated */
#define SMREG_RC_COND_IE_ERROR         (0x4b64)   /* Conditional IE error           */
#define SMREG_RC_MSG_NOT_STATE_COMP_NO (0xb65)    /* Message not compatible with protocol state network originated */
#define SMREG_RC_MSG_NOT_STATE_COMP    (0x4b65)   /* Message not compatible with protocol state */
#define SMREG_RC_PROT_ERROR_UNSPEC_NO  (0xb6f)    /* Protocol error, unspecified network originated */
#define SMREG_RC_PROT_ERROR_UNSPEC     (0x4b6f)   /* Protocol error, unspecified    */

/*
 * Value constants for VAL_ppp_hc
 */
#define SMREG_VAN_NOT_USED             (0x0)      /* Van Jacobson is not supported  */
#define SMREG_VAN_USED                 (0x1)      /* Van Jacobson is supported      */

/*
 * Value constants for VAL_hcomp
 */
#define SMREG_COMP_NEITHER_DIRECT      (0x0)      /* compress neither direction     */
#define SMREG_COMP_MS_SGSN_DIRECT      (0x1)      /* compress MS to SGSN direction only */
#define SMREG_COMP_SGSN_MS_DIRECT      (0x2)      /* compress SGSN to MS direction only */
#define SMREG_COMP_BOTH_DIRECT         (0x3)      /* compress both directions       */

/*
 * Value constants for VAL_direc
 */
#define DIREC_MO                       (0x0)      /* Mobile initiates               */
#define DIREC_MT                       (0x1)      /* Network initiates              */

/*
 * Value constants for VAL_smreg_local
 */
#define SMREG_NONLOCAL                 (0x0)      /* not local, air msg will be sent */
#define SMREG_LOCAL                    (0x1)      /* local, no air msg will be sent */

/*
 * Value constants for VAL_dti_direction
 */
#define SMREG_HOME                     (0x0)      /* mapped to HOME from dti.h      */
#define SMREG_NEIGHBOR                 (0x1)      /* mapped to NEIGHBOR from dti.h  */

/*
 * user defined constants
 */
#define COMP_USED                      (0x0)      
#define COMP_NOT_USED                  (0x1)      

#include "CDG_LEAVE.h"


#endif