No description
Find a file
Johan Hedberg 64b117a9b1 Bluetooth: Add support for HCI data buffers
In order to manage incoming and outgoing HCI data (events, commands &
ACL data packets) we need to have some way of storing this into
buffers. This patch implements a 'pool' of buffers with the help of
the nano_fifo API. The pool is initially populated with all available
buffers. After this code can on demand request buffers from the pool
with the help of bt_buf_get() and return buffers back into the pool
with bt_buf_put().

Since we don't always know the execution context from where the API is
operated on, this patch also adds convenience fifo_get/fifo_put
wrappers that look up the exact context before calling the correct
nano_fifo API.

Change-Id: Ie7f6d450de865273171e21a000d5a14274d27d32
Co-authored-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-02-05 20:13:44 -05:00
arch Bluetooth: Add skeleton for HCI core 2016-02-05 20:13:44 -05:00
config First commit 2015-04-10 16:44:37 -07:00
drivers Rename _SysIdleElapsedTicks to _sys_idle_elapsed_ticks 2016-02-05 20:13:44 -05:00
host Fix checkpatch issue - WARNING:LINE_SPACING 2016-02-05 20:13:39 -05:00
include Bluetooth: Add support for HCI data buffers 2016-02-05 20:13:44 -05:00
kernel Bluetooth: Add skeleton for HCI core 2016-02-05 20:13:44 -05:00
lib/libc/minimal Fix definition of 'offsetof' 2016-02-05 20:13:39 -05:00
make Bluetooth: Add skeleton for HCI core 2016-02-05 20:13:44 -05:00
misc Remove inclusion of unused header files 2016-02-05 20:13:41 -05:00
net Bluetooth: Add support for HCI data buffers 2016-02-05 20:13:44 -05:00
samples Rename _SysIdleThresholdTicks to _sys_idle_threshold_ticks 2016-02-05 20:13:44 -05:00
scripts Rename K_StackSize to _k_server_stack_size 2016-02-05 20:13:44 -05:00
shared/include/nanokernel/x86 Fix checkpatch issue - ERROR:POINTER_LOCATION 2016-02-05 20:13:39 -05:00
.gitattributes First commit 2015-04-10 16:44:37 -07:00
.gitignore add missing gen_file_path_hash 2015-04-10 20:59:48 -04:00
.mailmap First commit 2015-04-10 16:44:37 -07:00
vxmicro-env.bash Remove reference to CodeSourcery 2016-02-05 20:13:41 -05:00