blob: 143cd55f6c968f79f29486f1a82ae7228a018477 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001/*****************************************************************************
2* Copyright Statement:
3* --------------------
4* This software is protected by Copyright and the information contained
5* herein is confidential. The software may not be copied and the information
6* contained herein may not be used or disclosed except with the written
7* permission of MediaTek Inc. (C) 2019
8*
9* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
10* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
11* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
12* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
13* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
14* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
15* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
16* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
17* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
18* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
19* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
20* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
21*
22* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
23* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
24* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
25* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
26* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
27*
28* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
29* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
30* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
31* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
32* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
33*
34*****************************************************************************/
35
36#ifndef URSP_UPDS_STRUCT_H
37#define URSP_UPDS_STRUCT_H
38
39#include "mcd_l3_inc_struct.h"
40
41typedef enum
42{
43 UPDS_TYPE_RESERVED = 0x00,
44 UPDS_TYPE_URSP = 0x01,
45 UPDS_TYPE_ANDSP = 0x02
46} ue_policy_part_type_enum;
47
48typedef struct
49{
50 ue_policy_part_type_enum ue_policy_part_type; //No need to read by destination module due to only send URSP to MOD_URSP
51 kal_uint16 ue_policy_part_content_len; // Length of content in UE policy part
52 kal_uint8 *ue_policy_part_content; // Contents of UE policy part
53} ue_policy_part_struct;
54
55typedef struct
56{
57 kal_uint16 upsc;
58 kal_uint16 instruction_order;
59 kal_uint8 ue_policy_part_num; // num of UE policy part included in instruction
60 ue_policy_part_struct *ue_policy_part; // Array of UE policy part
61} ue_policy_instruction_struct;
62
63typedef struct
64{
65 plmn_id_struct plmn_id;
66 kal_uint8 instruction_num; // num of instruction included in 1 sublist
67 ue_policy_instruction_struct *instruction; // Array of instruction
68} ue_policy_sublist_struct;
69
70typedef struct
71{
72 kal_uint16 upsc;
73 kal_uint16 fail_instruction_order;
74 kal_uint8 cause;
75
76} ue_policy_result_struct;
77
78typedef struct
79{
80 plmn_id_struct plmn_id;
81 kal_uint8 result_num; // num of result included in subresult
82 ue_policy_result_struct *result; // Array of result
83} ue_policy_subresult_struct;
84
85typedef struct
86{
87 plmn_id_struct plmn_id;
88 kal_uint8 upsc_num;
89 kal_uint16 *upsc;
90} upsi_sublist_struct;
91
92typedef struct
93{
94 LOCAL_PARA_HDR
95 kal_uint8 seq_num;
96 kal_uint8 ue_policy_sublist_num; // num of sublist included
97 ue_policy_sublist_struct *ue_policy_sublist; // Array of sublist
98} ursp_upds_ue_policy_ind_struct;
99
100typedef struct
101{
102 LOCAL_PARA_HDR
103 kal_uint8 seq_num;
104 kal_bool result_success; // If all UE policy execute successfully, then retrun KAL_TRUE
105 kal_uint8 ue_policy_subresult_num; // num of subresult included
106 ue_policy_subresult_struct *ue_policy_subresult; // Array of subresult
107} ursp_upds_ue_policy_rsp_struct;
108
109typedef struct
110{
111 LOCAL_PARA_HDR
112 kal_uint8 seq_num;
113} ursp_upds_get_ue_policy_info_ind_struct;
114
115typedef struct
116{
117 LOCAL_PARA_HDR
118 kal_uint8 seq_num;
119 kal_uint8 upsi_sublist_num; // If this value is 0, no need to create UE_STATE_INDICATION
120 upsi_sublist_struct *upsi_sublist;
121/*
122kal_uint8 os_id_num;
123os_id_struct *os_id
124*/
125} ursp_upds_get_ue_policy_info_rsp_struct;
126
127#endif /* URSP_UPDS_STRUCT_H */