view cdg-hybrid/cdginc/p_llgmm.val @ 268:f2e52cab0a73

abb_inth.c: check all interrupt causes, not just one The original code used if - else if - else if etc constructs, thus the first detected interrupt was the only one handled. However, Iota ITSTATREG is a clear-on-read register, thus if we only handle the first detected interrupt and skip checking the others, then the other interrupts will be lost, if more than one interrupt happened to occur in one ABB interrupt handling cycle - a form of rare race condition. Change the code to check all interrupts that were read in this cycle.
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 13 Jun 2021 18:17:53 +0000
parents 35f7a1dc9f7d
children
line wrap: on
line source

/*
+--------------------------------------------------------------------------+
| PROJECT : PROTOCOL STACK                                                 |
| FILE    : p_llgmm.val                                                    |
| SOURCE  : "sap\llgmm.pdf"                                                |
| LastModified : "2003-03-21"                                              |
| IdAndVersion : "8441.103.99.014"                                         |
| SrcFileTime  : "Thu Nov 29 09:44:54 2007"                                |
| Generated by CCDGEN_2.5.5A on Fri Oct 14 21:41:52 2016                   |
|           !!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_LLGMM_VAL
#define P_LLGMM_VAL


#define CDG_ENTER__P_LLGMM_VAL

#define CDG_ENTER__FILENAME _P_LLGMM_VAL
#define CDG_ENTER__P_LLGMM_VAL__FILE_TYPE CDGINC
#define CDG_ENTER__P_LLGMM_VAL__LAST_MODIFIED _2003_03_21
#define CDG_ENTER__P_LLGMM_VAL__ID_AND_VERSION _8441_103_99_014

#define CDG_ENTER__P_LLGMM_VAL__SRC_FILE_TIME _Thu_Nov_29_09_44_54_2007

#include "CDG_ENTER.h"

#undef CDG_ENTER__P_LLGMM_VAL

#undef CDG_ENTER__FILENAME


/*
 * Value constants for VAL_ciphering_algorithm
 */
#define LLGMM_CIPHER_NO_ALGORITHM      (0x0)      /* no ciphering algorithm         */
#define LLGMM_CIPHER_GPRS_A5_1         (0x1)      /* GPRS A5/1 ciphering algorithm  */
#define LLGMM_CIPHER_GPRS_A5_2         (0x2)      /* GPRS A5/2 ciphering algorithm  */
#define LLGMM_CIPHER_NA                (0xff)     /* value n/a                      */

/*
 * Value constants for VAL_trigger_cause
 */
#define LLGMM_TRICS_PAGE_RESPONSE      (0x1)      /* trigger was sent due to a received paging message */
#define LLGMM_TRICS_CELL_UPDATE        (0x3)      /* trigger was sent because of a cell update */
// VAL-FF: REL99  
// #define LLGMM_TRICS_CELL_UPDATE_NULL_FRAME (0x4)/* LLC can use NULL frame for cell updates */

/*
 * Value constants for VAL_error_cause
 */
#define VAL_ERROR_CAUSE___DEF          (0x0)      /* invalid error cause            */
#define LLGMM_ERRCS_INVALID_UA         (0xd064)   /* invalid UA response            */
#define LLGMM_ERRCS_SABM_INVALID_XID   (0xd065)   /* invalid XID response during connection establishment */
#define LLGMM_ERRCS_SABM_NO_PEER_RES   (0xd066)   /* no peer response during connection establishment */
#define LLGMM_ERRCS_XID_INVALID_XID    (0xd067)   /* invalid XID response during parameter negotiation */
#define LLGMM_ERRCS_XID_NO_PEER_RES    (0xd068)   /* no peer response during parameter negotiation */
#define LLGMM_ERRCS_DISC_NO_PEER_RES   (0xd069)   /* no peer response during release of connection */
#define LLGMM_ERRCS_MULT_ASS_TLLI      (0xd06a)   /* possible multiple assignment of a TLLI value */
#define LLGMM_ERRCS_DM1_RECEIVED       (0xd06b)   /* unsolicited DM response with F bit 1 in state ABM */
#define LLGMM_ERRCS_DM1_RECEIVED_REEST (0xd06c)   /* unsolicited DM response with F bit 1 in state Timer Recovery; re-establishment procedure initiated */
#define LLGMM_ERRCS_ACK_NO_PEER_RES_REEST (0xd06d)/* no peer response during waiting for acknowledgement; re-establishment procedure initiated */
#define LLGMM_ERRCS_PEER_BUSY_REEST    (0xd06e)   /* peer receiver busy condition; re-establishment procedure initiated */
#define LLGMM_ERRCS_FRMR_COND          (0xd06f)   /* frame rejection condition; frame discarded */
#define LLGMM_ERRCS_FRMR_COND_REEST    (0xd070)   /* frame rejection condition; re-establishment procedure initiated */
#define LLGMM_ERRCS_FRMR_RECEIVED      (0xd071)   /* FRMR response received; frame discarded */
#define LLGMM_ERRCS_L3_REEST           (0xd072)   /* layer 3 initiated re-establishment procedure */
#define LLGMM_ERRCS_PEER_REEST         (0xd073)   /* peer initiated re-establishment procedure */
#define LLGMM_ERRCS_DM0_RECEIVED_REEST (0xd074)   /* unsolicited DM response with F bit 0; re-establishment procedure initiated */

/*
 * Value constants for VAL_susp_cause
 */
#define VAL_SUSP_CAUSE___DEF           (0x0)      /* suspension because of Attach or RAU */
#define LLGMM_RAU                      (0x0)      /* suspension because of Attach or RAU, GRR has to be suspended */
#define LLGMM_CALL                     (0x1)      /* suspension because of GSM establishment request */
#define LLGMM_LIMITED                  (0x2)      /* suspension because of limited service */
#define LLGMM_PERIODIC_RAU             (0x3)      /* suspension because of periodic RAU */
#define LLGMM_NO_GPRS_SERVICE          (0x4)      /* suspension because of no service or no GPRS supported */

/*
 * user defined constants
 */
#define LLGMM_MAX_SEQ_NR               (0x1ff)    
#define LLGMM_NUM_SAPIS                (0x10)     
#define LLGMM_TLLI_INVALID             (0xffffffff)

#include "CDG_LEAVE.h"


#endif