diff options
author | Harald Welte <laforge@gnumonks.org> | 2015-09-06 16:04:32 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-01-16 17:23:10 +0100 |
commit | b92100ad36f40d3125ff945fbd38aece873d1718 (patch) | |
tree | 3723ca47d14219f3ab78f24a3e219e0dbfaca1c4 /src/osmo-bts-octphy/octpkt.h | |
parent | e9f12acbeb5a369282719f8e0deecc88034a5488 (diff) |
Add support for Octasic OCTSDR-2G GSM PHY
This adds support for a new PHY to OsmoBTS, the Octasic OCTSDR-2G
PHY. This is a proprietary GSM PHY running on a familty of Octasic DSPs.
Diffstat (limited to 'src/osmo-bts-octphy/octpkt.h')
-rw-r--r-- | src/osmo-bts-octphy/octpkt.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/osmo-bts-octphy/octpkt.h b/src/osmo-bts-octphy/octpkt.h new file mode 100644 index 00000000..fcffec02 --- /dev/null +++ b/src/osmo-bts-octphy/octpkt.h @@ -0,0 +1,22 @@ +#pragma once +#include <stdint.h> + +/* push a common header (1 dword) to the start of a msgb */ +void octpkt_push_common_hdr(struct msgb *msg, uint8_t format, + uint8_t trace, uint32_t ptype); + +/* common msg_header shared by all control messages */ +void octvc1_fill_msg_hdr(tOCTVC1_MSG_HEADER *mh, uint32_t len, + uint32_t sess_id, uint32_t trans_id, + uint32_t user_info, uint32_t msg_type, + uint32_t flags, uint32_t api_cmd); + +/* push a control header (3 dwords) to the start of a msgb. This format + * is used for command and response packets */ +void octvocnet_push_ctl_hdr(struct msgb *msg, uint32_t dest_fifo_id, + uint32_t src_fifo_id, uint32_t socket_id); + +int osmo_sock_packet_init(uint16_t type, uint16_t proto, const char *bind_dev, + unsigned int flags); + +int tx_trx_open(struct gsm_bts_trx *trx); |