XenevaOS
Loading...
Searching...
No Matches
Macros | Functions
virtio_bt.c File Reference
#include <stdint.h>
#include <string.h>
#include <Bt/bt.h>
#include <Drivers/uart.h>
#include <_null.h>
Include dependency graph for virtio_bt.c:

Macros

#define HCI_RESET   0x0C03
 
#define HCI_SET_EVT_MASK   0x0C01
 
#define HCI_WRITE_LE_HST   0x0C6D
 
#define HCI_READ_VER   0x1001
 
#define HCI_READ_BD   0x1009
 
#define HCI_READ_BUF   0x1005
 
#define HCI_DISCONNECT   0x0406
 
#define LE_SET_EVT_MASK   0x2001
 
#define LE_READ_BUF   0x2002
 
#define LE_READ_FEAT   0x2003
 
#define LE_SET_SCAN_PAR   0x200B
 
#define LE_SET_SCAN_EN   0x200C
 
#define LE_CREATE_CONN   0x200D
 
#define LE_START_ENC   0x2019
 
#define LE_LTK_REPLY   0x201A
 
#define LE_LTK_NEG   0x201B
 
#define LE_READ_BUF_V2   0x2060
 
#define LE_SET_CIG   0x2062
 
#define LE_CREATE_CIS   0x2064
 
#define LE_SETUP_ISO   0x206E
 
#define LE_SET_HOST_FEAT   0x2074
 
#define EVTQ_SZ   32
 
#define ACLQ_SZ   8
 

Functions

void AuVirtioBtInitialize (uint64_t device, int bus, int dev, int func)
 

Detailed Description

BSD 2-Clause License

Copyright (c) 2022-2026, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Macro Definition Documentation

◆ ACLQ_SZ

#define ACLQ_SZ   8

◆ EVTQ_SZ

#define EVTQ_SZ   32

◆ HCI_DISCONNECT

#define HCI_DISCONNECT   0x0406

◆ HCI_READ_BD

#define HCI_READ_BD   0x1009

◆ HCI_READ_BUF

#define HCI_READ_BUF   0x1005

◆ HCI_READ_VER

#define HCI_READ_VER   0x1001

◆ HCI_RESET

#define HCI_RESET   0x0C03

◆ HCI_SET_EVT_MASK

#define HCI_SET_EVT_MASK   0x0C01

◆ HCI_WRITE_LE_HST

#define HCI_WRITE_LE_HST   0x0C6D

◆ LE_CREATE_CIS

#define LE_CREATE_CIS   0x2064

◆ LE_CREATE_CONN

#define LE_CREATE_CONN   0x200D

◆ LE_LTK_NEG

#define LE_LTK_NEG   0x201B

◆ LE_LTK_REPLY

#define LE_LTK_REPLY   0x201A

◆ LE_READ_BUF

#define LE_READ_BUF   0x2002

◆ LE_READ_BUF_V2

#define LE_READ_BUF_V2   0x2060

◆ LE_READ_FEAT

#define LE_READ_FEAT   0x2003

◆ LE_SET_CIG

#define LE_SET_CIG   0x2062

◆ LE_SET_EVT_MASK

#define LE_SET_EVT_MASK   0x2001

◆ LE_SET_HOST_FEAT

#define LE_SET_HOST_FEAT   0x2074

◆ LE_SET_SCAN_EN

#define LE_SET_SCAN_EN   0x200C

◆ LE_SET_SCAN_PAR

#define LE_SET_SCAN_PAR   0x200B

◆ LE_SETUP_ISO

#define LE_SETUP_ISO   0x206E

◆ LE_START_ENC

#define LE_START_ENC   0x2019

Function Documentation

◆ AuVirtioBtInitialize()

void AuVirtioBtInitialize ( uint64_t  device,
int  bus,
int  dev,
int  func 
)