diff options
| author | TheOfficialFloW <theflow@google.com> | 2020-06-10 05:11:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-10 14:11:42 +0200 |
| commit | 5caaad3a744ac94014f886a940dbbe11fcbc2d0f (patch) | |
| tree | ee200771b4e6e68b963f094961bdb6d44f8f1e9a /sys/linux/socket_bluetooth.txt | |
| parent | b4eca5502e5fc0504ae5e693659e2baa587017c7 (diff) | |
sys/linux: add vhci headers for event packets
* sys/linux: add vhci headers for command packets
* sys/linux: make generate
* sys/linux: use event packet instead of command packets
* sys/linux/vhci.txt: move low-energy entries to hci_ev_le_meta_un
* sys/linux/vhci.txt: add hci_ev_cmd_complete opcodes
Diffstat (limited to 'sys/linux/socket_bluetooth.txt')
| -rw-r--r-- | sys/linux/socket_bluetooth.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/linux/socket_bluetooth.txt b/sys/linux/socket_bluetooth.txt index 830c5624c..fb778a4ef 100644 --- a/sys/linux/socket_bluetooth.txt +++ b/sys/linux/socket_bluetooth.txt @@ -34,7 +34,7 @@ openat$vhci(fd const[AT_FDCWD], file ptr[in, string["/dev/vhci"]], flags flags[o write$vhci(fd fd_vhci, data ptr[in, vhci_command], size bytesize[data]) vhci_command [ - HCI_EVENT_PKT vhci_command_generic[HCI_EVENT_PKT] + HCI_EVENT_PKT vhci_command_event_pkt HCI_ACLDATA_PKT vhci_command_generic[HCI_ACLDATA_PKT] HCI_SCODATA_PKT vhci_command_generic[HCI_SCODATA_PKT] HCI_VENDOR_PKT vhci_command_vendor_pkt @@ -46,6 +46,11 @@ type vhci_command_generic[CMD] { data array[int8] } +vhci_command_event_pkt { + cmd const[HCI_EVENT_PKT, int8] + hdr hci_event_hdr_un +} + vhci_command_vendor_pkt { cmd const[HCI_VENDOR_PKT, int8] opcode flags[vhci_vendor_pkt_opcode, int8] |
