summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso2011-07-08 16:21:55 +0200
committerPablo Neira Ayuso2011-07-08 16:21:55 +0200
commit88136fc6dd4c432e13193c9e29c4bea927141812 (patch)
tree4bb8372b765223af9cd89e436a5d167a1fdd3c16 /include
parenttests: close OML and RSL if set for the BSC example (diff)
downloadlibosmo-abis-88136fc6dd4c432e13193c9e29c4bea927141812.tar.gz
libosmo-abis-88136fc6dd4c432e13193c9e29c4bea927141812.tar.xz
libosmo-abis-88136fc6dd4c432e13193c9e29c4bea927141812.zip
hsl: BTS support
This patch adds the BTS support for the hsl driver. It includes two examples under the tests/ directory.
Diffstat (limited to 'include')
-rw-r--r--include/internal.h4
-rw-r--r--include/osmocom/abis/ipa.h3
-rw-r--r--include/osmocom/abis/ipaccess.h3
3 files changed, 8 insertions, 2 deletions
diff --git a/include/internal.h b/include/internal.h
index a1356ad..6969748 100644
--- a/include/internal.h
+++ b/include/internal.h
@@ -1,6 +1,8 @@
#ifndef _INTERNAL_H_
#define _INTERNAL_H_
+#include <stdint.h>
+
/* talloc context for libosmo-abis. */
extern void *libosmo_abis_ctx;
@@ -10,5 +12,7 @@ void e1inp_init(void);
/* hsl requires these functions defined in ipaccess driver. */
struct msgb;
void ipaccess_prepend_header(struct msgb *msg, int proto);
+struct msgb *ipa_msg_alloc(int headroom);
+void ipa_msg_push_header(struct msgb *msg, uint8_t proto);
#endif
diff --git a/include/osmocom/abis/ipa.h b/include/osmocom/abis/ipa.h
index d455069..2254629 100644
--- a/include/osmocom/abis/ipa.h
+++ b/include/osmocom/abis/ipa.h
@@ -48,12 +48,13 @@ struct ipa_client_link {
enum ipa_client_link_state state;
const char *addr;
uint16_t port;
+ int (*connect_cb)(struct ipa_client_link *link);
int (*read_cb)(struct ipa_client_link *link, struct msgb *msg);
int (*write_cb)(struct ipa_client_link *link);
void *data;
};
-struct ipa_client_link *ipa_client_link_create(void *ctx, struct e1inp_ts *ts, const char *driver_name, int priv_nr, const char *addr, uint16_t port, int (*read_cb)(struct ipa_client_link *link, struct msgb *msgb), int (*write_cb)(struct ipa_client_link *link), void *data);
+struct ipa_client_link *ipa_client_link_create(void *ctx, struct e1inp_ts *ts, const char *driver_name, int priv_nr, const char *addr, uint16_t port, int (*connect)(struct ipa_client_link *link), int (*read_cb)(struct ipa_client_link *link, struct msgb *msgb), int (*write_cb)(struct ipa_client_link *link), void *data);
void ipa_client_link_destroy(struct ipa_client_link *link);
int ipa_client_write_default_cb(struct ipa_client_link *link);
diff --git a/include/osmocom/abis/ipaccess.h b/include/osmocom/abis/ipaccess.h
index 6816d87..7083ce9 100644
--- a/include/osmocom/abis/ipaccess.h
+++ b/include/osmocom/abis/ipaccess.h
@@ -104,7 +104,8 @@ struct ipaccess_unit {
};
struct hsl_unit {
- unsigned long serno;
+ uint8_t swversion;
+ uint64_t serno;
};
#endif /* _OSMO_PROTO_IPACCESS_H */