diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2012-07-20 16:47:56 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-07-21 13:18:45 +0200 |
commit | 1ddb183736bad257b8e774c0d0ab1ff8f628b442 (patch) | |
tree | 16b5e64b54547a9081a277117cd1194643681d09 /src/osmo-bts-sysmo/main.c | |
parent | c2d3e45571e75610a40669f0fa0efed7b6e65946 (diff) |
Enable direct access to PDTCH queue of DSP by PCU
Use "-P -M" to enable PCU and direct access.
Diffstat (limited to 'src/osmo-bts-sysmo/main.c')
-rw-r--r-- | src/osmo-bts-sysmo/main.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/osmo-bts-sysmo/main.c b/src/osmo-bts-sysmo/main.c index 2203309d..84a02745 100644 --- a/src/osmo-bts-sysmo/main.c +++ b/src/osmo-bts-sysmo/main.c @@ -51,7 +51,7 @@ /* FIXME: read from real hardware */ const uint8_t abis_mac[6] = { 0,1,2,3,4,5 }; -int gprs_enabled = 0; +int gprs_enabled = 0, pcu_direct = 0; static const char *config_file = "osmo-bts.cfg"; static int daemonize = 0; @@ -110,6 +110,8 @@ static void print_help() " -p --dsp-trace Set DSP trace flags\n" " -w --hw-version Print the targeted HW Version\n" " -P --pcu Enable PCU L1 socket interface\n" + " -M --pcu-direct Force PCU to access message queue for " + "PDCH dchannel directly\n" ); } @@ -140,10 +142,11 @@ static void handle_options(int argc, char **argv) { "dsp-trace", 1, 0, 'p' }, { "hw-version", 0, 0, 'w' }, { "pcu", 0, 0, 'P' }, + { "pcu-direct", 0, 0, 'M' }, { 0, 0, 0, 0 } }; - c = getopt_long(argc, argv, "hc:d:Dc:sTVe:p:w:P", + c = getopt_long(argc, argv, "hc:d:Dc:sTVe:p:w:PM", long_options, &option_idx); if (c == -1) break; @@ -175,6 +178,9 @@ static void handle_options(int argc, char **argv) } gprs_enabled = 1; break; + case 'M': + pcu_direct = 1; + break; case 'V': print_version(1); exit(0); |