diff options
author | Min Xu <min.xu@min-info.net> | 2014-10-25 21:09:19 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2014-11-11 22:30:54 +0100 |
commit | 9662f2830a076a089373f3a4e6ecd93515cd108f (patch) | |
tree | 6e6f629b112efed28c1f32f964375ff027bcf07c | |
parent | 4b98ba5d1c13aa620749997f85f24b20acf9ae69 (diff) |
change number + qty of small/large req_ctx
-rw-r--r-- | firmware/src/os/req_ctx.c | 14 | ||||
-rw-r--r-- | firmware/src/os/req_ctx.h | 5 |
2 files changed, 7 insertions, 12 deletions
diff --git a/firmware/src/os/req_ctx.c b/firmware/src/os/req_ctx.c index a1495d9..722c099 100644 --- a/firmware/src/os/req_ctx.c +++ b/firmware/src/os/req_ctx.c @@ -27,19 +27,15 @@ #include "../openpcd.h" /* FIXME: locking, FIFO order processing */ -#define NUM_RCTX_SMALL 0 -#define NUM_RCTX_LARGE 19 -// 8 * 128 + 4 * 2048 => 18 * 270 + 2 * 2048 -/* #if defined(__AT91SAM7S64__) || defined(RUN_FROM_RAM) -#define NUM_RCTX_SMALL 16 -#define NUM_RCTX_LARGE 1 +#define NUM_RCTX_SMALL 0 +#define NUM_RCTX_LARGE 8 #else -#define NUM_RCTX_SMALL 8 -#define NUM_RCTX_LARGE 4 +#define NUM_RCTX_SMALL 0 +#define NUM_RCTX_LARGE 20 #endif -*/ + #define NUM_REQ_CTX (NUM_RCTX_SMALL+NUM_RCTX_LARGE) static u_int8_t rctx_data[NUM_RCTX_SMALL][RCTX_SIZE_SMALL]; diff --git a/firmware/src/os/req_ctx.h b/firmware/src/os/req_ctx.h index b576ffe..92c21a7 100644 --- a/firmware/src/os/req_ctx.h +++ b/firmware/src/os/req_ctx.h @@ -1,11 +1,10 @@ #ifndef _REQ_CTX_H #define _REQ_CTX_H -#define RCTX_SIZE_LARGE 1000 -#define RCTX_SIZE_SMALL 270 +#define RCTX_SIZE_LARGE 960 +#define RCTX_SIZE_SMALL 320 #define MAX_HDRSIZE sizeof(struct openpcd_hdr) -#define MAX_REQSIZE (64-MAX_HDRSIZE) #define req_buf_payload(x) (x->data[x->hdr_len]) #define req_buf_hdr(x) (x->data[0]) |