//protocol_0x301b sub_proto1 int pfs_set_proto_format_3050(protocol_format_set_t *pfs_p) { struct list_head *hl_head; int llist_num; hl_head = pfs_create_head_list(pfs_p->allocator); pfs_init_head_list(hl_head); /* *PFS_SET_PROTO_INFO(name,byte_pos,bit_pos,len,len_unit,vlenth_index,hl_head) */ PFS_SET_PROTO_INFO( PROTO_NUM, "0", "0", "2", "8", NULL, hl_head); PFS_SET_PROTO_INFO( LEN, "2", "0", "1", "8", NULL, hl_head); PFS_SET_PROTO_INFO( EMB_FLAG, "3", "0", "1", "8", NULL, hl_head); PFS_SET_PROTO_INFO( SLOT_INFO, "4", "0", "2", "8", NULL, hl_head); PFS_SET_PROTO_INFO( SYNC_INFO, "6", "0", "2", "8", NULL, hl_head); PFS_SET_PROTO_INFO( TACT_INFO, "8", "0", "1", "8", NULL, hl_head); PFS_SET_PROTO_INFO( SLC_INFO, "9", "0", "1", "8", NULL, hl_head); PFS_SET_PROTO_INFO( SLC_DATA, "10","0", "0", "8", SLC_INFO, hl_head); PFS_SET_PROTO_INFO( SYNC_INDEX, "10","0", "1", "8", NULL, hl_head); PFS_SET_PROTO_INFO( ST_INFO, "11","0", "1", "8", NULL, hl_head); PFS_SET_PROTO_INFO( DC_INFO, "12","0", "1", "8", NULL, hl_head); PFS_SET_PROTO_INFO( DC_DATA, "13","0", "0", "8", DC_INFO, hl_head); llist_num =0x3050 - pfs_p->proto_base_addr; pfs_add_proto_link_list(llist_num, hl_head,//struct list_head *new_proto_llist, pfs_p);//struct list_head **list_head) }
int pfs_set_pdu_format_ackd(protocol_format_set_t *pfs_p) { struct list_head *hl_head; int llist_num; hl_head = pfs_create_head_list(pfs_p->allocator); pfs_init_head_list(hl_head); /* *PFS_SET_PROTO_INFO( "LB", "0", "7", "1", "1", NULL, hl_head); *PFS_SET_PROTO_INFO( "PF", "0", "6", "1", "1", NULL, hl_head); *PFS_SET_PROTO_INFO( "CSBKO", "0", "0", "6", "1", NULL, hl_head); *PFS_SET_PROTO_INFO( "FID", "1", "0", "8", "1", NULL, hl_head); *PFS_SET_PROTO_INFO( "RI", "2", "1", "7", "1", NULL, hl_head); *PFS_SET_PROTO_INFO( "ARC", "3", "1", "8", "1", NULL, hl_head); *PFS_SET_PROTO_INFO( "RSVD", "3", "0", "1", "1", NULL, hl_head); *PFS_SET_PROTO_INFO( "TADDR", "6", "0", "24", "1", NULL, hl_head); *PFS_SET_PROTO_INFO( "SADDR", "9", "0", "24", "1", NULL, hl_head); */ PFS_SET_PROTO_INFO( "LB", "0", "7", "1", "1", NULL, hl_head); PFS_SET_PROTO_INFO( "PF", "0", "6", "1", "1", NULL, hl_head); PFS_SET_PROTO_INFO( "CSBKO", "0", "5", "6", "1", NULL, hl_head); PFS_SET_PROTO_INFO( "FID", "1", "7", "8", "1", NULL, hl_head); PFS_SET_PROTO_INFO( "RI", "2", "7", "7", "1", NULL, hl_head); PFS_SET_PROTO_INFO( "ARC", "2", "0", "8", "1", NULL, hl_head); PFS_SET_PROTO_INFO( "RSVD", "3", "0", "1", "1", NULL, hl_head); PFS_SET_PROTO_INFO( "TADDR", "4", "7", "24", "1", NULL, hl_head); PFS_SET_PROTO_INFO( "SADDR", "7", "7", "24", "1", NULL, hl_head); llist_num =0x8 - pfs_p->proto_base_addr; dbg_str(DBG_DETAIL,"llist_num=%d",llist_num); pfs_add_proto_link_list(llist_num, hl_head,//struct list_head *new_proto_llist, pfs_p);//struct list_head **list_head) }
int pfs_set_proto_format_3054(protocol_format_set_t *pfs_p) { struct list_head *hl_head; int llist_num; hl_head = pfs_create_head_list(pfs_p->allocator); pfs_init_head_list(hl_head); /* *PFS_SET_PROTO_INFO(name,byte_pos,bit_pos,len,len_unit,vlenth_index,hl_head) */ PFS_SET_PROTO_INFO( PROTO_NUM, "0", "0", "2", "8", NULL, hl_head); PFS_SET_PROTO_INFO( NO_NAME1, "2", "0", "1", "8", NULL, hl_head); PFS_SET_PROTO_INFO( ST_INFO, "3", "0", "1", "8", NULL, hl_head); PFS_SET_PROTO_INFO( DC_INFO, "4", "0", "1", "8", NULL, hl_head); PFS_SET_PROTO_INFO( DC_DATA, "5", "0", "0", "8", DC_INFO, hl_head); llist_num =0x3054 - pfs_p->proto_base_addr; pfs_add_proto_link_list(llist_num, hl_head,//struct list_head *new_proto_llist, pfs_p);//struct list_head **list_head) }