pcu_l1_if_phy: add new PHY API function to initialize PHY
The PHY implementations we currently have do not require any initialization that has to run directly on startup. This will change when we introduce support for the E1 based Ericsson RBS CCU. Then we will have to perform at least one elarly initialization (VTY config file). So lets add an API function for PHY initialization now. Related: OS#5198 Change-Id: Ibf2a3a058c826f6ee5b740eee72d5be94d460517
This commit is contained in:
parent
72ed33303a
commit
916e9d3454
|
@ -404,3 +404,8 @@ int l1if_close_pdch(void *obj)
|
|||
talloc_free(fl1h);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int l1if_init(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -409,3 +409,8 @@ int l1if_close_pdch(void *obj)
|
|||
talloc_free(fl1h);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int l1if_init(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -386,3 +386,8 @@ int l1if_close_pdch(void *obj)
|
|||
talloc_free(fl1h);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int l1if_init(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include <stdint.h>
|
||||
#include <osmocom/core/gsmtap_util.h>
|
||||
|
||||
int l1if_init(void);
|
||||
void *l1if_open_pdch(uint8_t trx_no, uint32_t hlayer1, struct gsmtap_inst *gsmtap);
|
||||
int l1if_connect_pdch(void *obj, uint8_t ts);
|
||||
int l1if_pdch_req(void *obj, uint8_t ts, int is_ptcch, uint32_t fn, uint16_t arfcn, uint8_t block_nr, uint8_t *data,
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
extern "C" {
|
||||
#include "pcu_vty.h"
|
||||
#include "coding_scheme.h"
|
||||
#include "pcu_l1_if_phy.h"
|
||||
#include <osmocom/gprs/gprs_bssgp.h>
|
||||
#include <osmocom/gprs/gprs_ns2.h>
|
||||
#include <osmocom/vty/telnet_interface.h>
|
||||
|
@ -250,6 +251,12 @@ int main(int argc, char *argv[])
|
|||
osmo_cpu_sched_vty_init(tall_pcu_ctx);
|
||||
logging_vty_add_deprecated_subsys(tall_pcu_ctx, "bssgp");
|
||||
|
||||
#ifdef ENABLE_DIRECT_PHY
|
||||
rc = l1if_init();
|
||||
if (rc < 0)
|
||||
return -EINVAL;
|
||||
#endif
|
||||
|
||||
handle_options(argc, argv);
|
||||
if ((!!spoof_mcc) + (!!spoof_mnc) == 1) {
|
||||
fprintf(stderr, "--mcc and --mnc must be specified "
|
||||
|
|
Loading…
Reference in New Issue