No description
Find a file
Johan Hedberg 45554f5b72 Bluetooth: Add basic HCI command processing
This patch adds basic HCI command processing into the HCI core. The
commands are passed to the registered HCI driver with the help of a
FIFO and an associated fiber which wakes up whenever there's data in
the FIFO and the controller is ready to accept new commands.

The controller readiness (i.e. the num_cmds value returned in
cmd_status & cmd_complete events) is tracked with the help of a
semaphore. We only track whether the value is > 0 or not and never
send more than one command at a time. The reason for this is to keep
the tracking of pending command parameters simple in the form of a
single variable (dev.sent_cmd) rather than a list of pending buffers.

This patch also adds a very basic HCI initialization routine which
right now only consists of a single HCI_Reset command.

Change-Id: Ic68b298e4ea41334e49c3fe6bd4012a069ef6fdc
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 HCI driver API 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 basic HCI command processing 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