aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-trx/trx_if.h
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-06-13 21:45:33 +0700
committerfixeria <vyanitskiy@sysmocom.de>2020-06-15 10:42:03 +0000
commitae781bc5cd012818dd50ab5c1f79236422029003 (patch)
treea33c08e0185ba4f74590e7031e19b4453b2727ce /src/osmo-bts-trx/trx_if.h
parent36c5ec4881f1d86a5124970c22f953e1020156d3 (diff)
osmo-bts-trx: introduce and use struct trx_dl_burst_req
This change is similar to what we did for Uplink bursts: - group all Downlink burst parameters into a single structure, - allocate it once and pass a pointer to lchan handlers, - pass a pointer to trx_if_send_burst(). Given that the structure is allocated and (zero-)initialized in trx_sched_fn(), we can get rid of some memset() calls in lchan handlers and thus improve the overall performance a bit. Change-Id: If3014e69746559963569b77561dbf7b163c68ffa
Diffstat (limited to 'src/osmo-bts-trx/trx_if.h')
-rw-r--r--src/osmo-bts-trx/trx_if.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmo-bts-trx/trx_if.h b/src/osmo-bts-trx/trx_if.h
index 34335f86..16b6c767 100644
--- a/src/osmo-bts-trx/trx_if.h
+++ b/src/osmo-bts-trx/trx_if.h
@@ -1,6 +1,7 @@
#ifndef TRX_IF_H
#define TRX_IF_H
+struct trx_dl_burst_req;
struct trx_l1h;
struct trx_ctrl_msg {
@@ -33,8 +34,7 @@ int trx_if_cmd_rxtune(struct trx_l1h *l1h, uint16_t arfcn);
int trx_if_cmd_txtune(struct trx_l1h *l1h, uint16_t arfcn);
int trx_if_cmd_handover(struct trx_l1h *l1h, uint8_t tn, uint8_t ss);
int trx_if_cmd_nohandover(struct trx_l1h *l1h, uint8_t tn, uint8_t ss);
-int trx_if_send_burst(struct trx_l1h *l1h, uint8_t tn, uint32_t fn, uint8_t pwr,
- const ubit_t *bits, uint16_t nbits);
+int trx_if_send_burst(struct trx_l1h *l1h, const struct trx_dl_burst_req *br);
int trx_if_powered(struct trx_l1h *l1h);
/* The latest supported TRXD header format version */