aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-07-21 18:25:01 +0200
committerpespin <pespin@sysmocom.de>2021-07-22 17:26:56 +0000
commite19289fb89c2176598cb3bbf1fb922993b908110 (patch)
treeceee2765c84415198cbf453ec68b79f06c598813 /include/osmocom
parentb2b47d2c472c85da6eb1fd02c28248c909c5869e (diff)
Split bsc_vty.c creating bts_vty.c
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/bsc/vty.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/include/osmocom/bsc/vty.h b/include/osmocom/bsc/vty.h
index 30094fa35..0b4504cdc 100644
--- a/include/osmocom/bsc/vty.h
+++ b/include/osmocom/bsc/vty.h
@@ -6,6 +6,13 @@
#include <osmocom/vty/command.h>
struct gsm_network;
+struct gsm_bts;
+struct gsm_bts_trx;
+struct gsm_bts_trx_ts;
+struct gsm_nm_state;
+struct pchan_load;
+struct gsm_lchan;
+struct bsc_subscr;
struct vty;
void openbsc_vty_print_statistics(struct vty *vty, struct gsm_network *);
@@ -32,9 +39,20 @@ enum bsc_vty_node {
struct log_info;
int bsc_vty_init(struct gsm_network *network);
int bsc_vty_init_extra(void);
+void net_dump_nmstate(struct vty *vty, struct gsm_nm_state *nms);
+int dummy_config_write(struct vty *v);
+void dump_pchan_load_vty(struct vty *vty, char *prefix, const struct pchan_load *pl);
+void bsc_subscr_dump_vty(struct vty *vty, struct bsc_subscr *bsub);
struct gsm_network *gsmnet_from_vty(struct vty *vty);
+int bts_vty_init(void);
+void bts_dump_vty(struct vty *vty, struct gsm_bts *bts);
+void trx_dump_vty(struct vty *vty, struct gsm_bts_trx *trx, bool print_rsl, bool show_connected);
+void ts_dump_vty(struct vty *vty, struct gsm_bts_trx_ts *ts);
+void lchan_dump_full_vty(struct vty *vty, struct gsm_lchan *lchan);
+void lchan_dump_short_vty(struct vty *vty, struct gsm_lchan *lchan);
+
enum bsc_vty_cmd_attr {
BSC_VTY_ATTR_RESTART_ABIS_OML_LINK = 0,
BSC_VTY_ATTR_RESTART_ABIS_RSL_LINK,
@@ -43,4 +61,26 @@ enum bsc_vty_cmd_attr {
/* NOTE: up to 32 entries */
};
+#define BTS_NR_STR "BTS Number\n"
+#define TRX_NR_STR "TRX Number\n"
+#define TS_NR_STR "Timeslot Number\n"
+#define SS_NR_STR "Sub-slot Number\n"
+#define LCHAN_NR_STR "Logical Channel Number\n"
+#define BTS_TRX_STR BTS_NR_STR TRX_NR_STR
+#define BTS_TRX_TS_STR BTS_TRX_STR TS_NR_STR
+#define BTS_TRX_TS_LCHAN_STR BTS_TRX_TS_STR LCHAN_NR_STR
+#define BTS_NR_TRX_TS_STR2 \
+ "BTS for manual command\n" BTS_NR_STR \
+ "TRX for manual command\n" TRX_NR_STR \
+ "Timeslot for manual command\n" TS_NR_STR
+#define BTS_NR_TRX_TS_SS_STR2 \
+ BTS_NR_TRX_TS_STR2 \
+ "Sub-slot for manual command\n" SS_NR_STR
+
+#define TSC_ARGS_OPT "[tsc] [<1-4>] [<0-7>]"
+#define TSC_ARGS_DOC \
+ "Provide specific TSC Set and Training Sequence Code\n" \
+ "TSC Set\n" \
+ "Training Sequence Code\n"
+
#endif