pcuif_proto: rename PCU_IF_FLAG_SYSMO to PCU_IF_FLAG_DIRECT_PHY
The PCUIF flag PCU_IF_FLAG_SYSMO was originally used by osmo-bts-sysmo to signal to the PCU that the direct PHY access for the sysmo-bts DSP should be enabled. With time, support for other BTS models was added and the flag became a synonym for "direct PHY access", so it makes sense to rename it to "PCU_IF_FLAG_DIRECT_PHY" Related: OS#6191 Change-Id: I29b7b78a3a91d062b9ea3cd72623d30618cd3f0b
This commit is contained in:
parent
24a2ac99d4
commit
8caa915c46
|
@ -46,7 +46,7 @@
|
||||||
|
|
||||||
/* flags */
|
/* flags */
|
||||||
#define PCU_IF_FLAG_ACTIVE (1 << 0)/* BTS is active */
|
#define PCU_IF_FLAG_ACTIVE (1 << 0)/* BTS is active */
|
||||||
#define PCU_IF_FLAG_SYSMO (1 << 1)/* access PDCH of sysmoBTS directly */
|
#define PCU_IF_FLAG_DIRECT_PHY (1 << 1)/* access PHY directly via dedicated hardware support */
|
||||||
#define PCU_IF_FLAG_CS1 (1 << 16)
|
#define PCU_IF_FLAG_CS1 (1 << 16)
|
||||||
#define PCU_IF_FLAG_CS2 (1 << 17)
|
#define PCU_IF_FLAG_CS2 (1 << 17)
|
||||||
#define PCU_IF_FLAG_CS3 (1 << 18)
|
#define PCU_IF_FLAG_CS3 (1 << 18)
|
||||||
|
|
|
@ -941,7 +941,7 @@ bssgp_failed:
|
||||||
|
|
||||||
for (trx_nr = 0; trx_nr < ARRAY_SIZE(bts->trx); trx_nr++) {
|
for (trx_nr = 0; trx_nr < ARRAY_SIZE(bts->trx); trx_nr++) {
|
||||||
bts->trx[trx_nr].arfcn = info_ind->trx[trx_nr].arfcn;
|
bts->trx[trx_nr].arfcn = info_ind->trx[trx_nr].arfcn;
|
||||||
if ((info_ind->flags & PCU_IF_FLAG_SYSMO)
|
if ((info_ind->flags & PCU_IF_FLAG_DIRECT_PHY)
|
||||||
&& info_ind->trx[trx_nr].hlayer1) {
|
&& info_ind->trx[trx_nr].hlayer1) {
|
||||||
#ifdef ENABLE_DIRECT_PHY
|
#ifdef ENABLE_DIRECT_PHY
|
||||||
LOGP(DL1IF, LOGL_DEBUG, " TRX %d hlayer1=%x\n", trx_nr,
|
LOGP(DL1IF, LOGL_DEBUG, " TRX %d hlayer1=%x\n", trx_nr,
|
||||||
|
@ -972,7 +972,7 @@ bssgp_failed:
|
||||||
if (!pdch->is_enabled()) {
|
if (!pdch->is_enabled()) {
|
||||||
#ifdef ENABLE_DIRECT_PHY
|
#ifdef ENABLE_DIRECT_PHY
|
||||||
if ((info_ind->flags &
|
if ((info_ind->flags &
|
||||||
PCU_IF_FLAG_SYSMO))
|
PCU_IF_FLAG_DIRECT_PHY))
|
||||||
l1if_connect_pdch(
|
l1if_connect_pdch(
|
||||||
bts->trx[trx_nr].fl1h, ts_nr);
|
bts->trx[trx_nr].fl1h, ts_nr);
|
||||||
#endif
|
#endif
|
||||||
|
@ -1003,7 +1003,7 @@ bssgp_failed:
|
||||||
} else {
|
} else {
|
||||||
if (pdch->is_enabled()) {
|
if (pdch->is_enabled()) {
|
||||||
#ifdef ENABLE_DIRECT_PHY
|
#ifdef ENABLE_DIRECT_PHY
|
||||||
if ((info_ind->flags & PCU_IF_FLAG_SYSMO))
|
if ((info_ind->flags & PCU_IF_FLAG_DIRECT_PHY))
|
||||||
l1if_disconnect_pdch(bts->trx[trx_nr].fl1h, ts_nr);
|
l1if_disconnect_pdch(bts->trx[trx_nr].fl1h, ts_nr);
|
||||||
#endif
|
#endif
|
||||||
pcu_tx_act_req(bts, pdch, 0);
|
pcu_tx_act_req(bts, pdch, 0);
|
||||||
|
|
Loading…
Reference in New Issue