- Move and implement some helper functions to a non private header(revision version etc)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29637 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -10,6 +10,11 @@
|
|||||||
|
|
||||||
#define HCI_COMMAND_HDR_SIZE 3
|
#define HCI_COMMAND_HDR_SIZE 3
|
||||||
|
|
||||||
|
const char* GetCommand(uint16 command);
|
||||||
|
const char* GetManufacturer(uint16 manufacturer);
|
||||||
|
const char* GetHciVersion(uint16 ver);
|
||||||
|
const char* GetLmpVersion(uint16 ver);
|
||||||
|
|
||||||
struct hci_command_header {
|
struct hci_command_header {
|
||||||
uint16 opcode; /* OCF & OGF */
|
uint16 opcode; /* OCF & OGF */
|
||||||
uint8 clen;
|
uint8 clen;
|
||||||
@@ -28,11 +33,11 @@ struct hci_command_header {
|
|||||||
#define OCF_READ_LOCAL_VERSION 0x0001
|
#define OCF_READ_LOCAL_VERSION 0x0001
|
||||||
struct hci_rp_read_loc_version {
|
struct hci_rp_read_loc_version {
|
||||||
uint8 status;
|
uint8 status;
|
||||||
uint8 hci_ver;
|
uint8 hci_version;
|
||||||
uint16 hci_rev;
|
uint16 hci_revision;
|
||||||
uint8 lmp_ver;
|
uint8 lmp_version;
|
||||||
uint16 manufacturer;
|
uint16 manufacturer;
|
||||||
uint16 lmp_subver;
|
uint16 lmp_subversion;
|
||||||
} __attribute__ ((packed));
|
} __attribute__ ((packed));
|
||||||
|
|
||||||
#define OCF_READ_LOCAL_FEATURES 0x0003
|
#define OCF_READ_LOCAL_FEATURES 0x0003
|
||||||
|
|||||||
@@ -53,10 +53,6 @@ private:
|
|||||||
struct hci_command_header* fHeader;
|
struct hci_command_header* fHeader;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
const char* GetCommand(uint16 command);
|
|
||||||
const char* GetManufacturer(uint16 manufacturer);
|
|
||||||
|
|
||||||
/* CONTROL BASEBAND */
|
/* CONTROL BASEBAND */
|
||||||
void* buildReset(size_t* outsize);
|
void* buildReset(size_t* outsize);
|
||||||
void* buildReadLocalName(size_t* outsize);
|
void* buildReadLocalName(size_t* outsize);
|
||||||
|
|||||||
@@ -548,6 +548,24 @@ const char* testingCommands[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
const char* hciVersion[] = { "1.0B" , "1.1 " , "1.2 " , "2.0 "};
|
||||||
|
const char* lmpVersion[] = { "1.0 " , "1.1 " , "1.2 " , "2.0 "};
|
||||||
|
|
||||||
|
|
||||||
|
const char*
|
||||||
|
GetHciVersion(uint16 ver)
|
||||||
|
{
|
||||||
|
return hciVersion[ver];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const char*
|
||||||
|
GetLmpVersion(uint16 ver)
|
||||||
|
{
|
||||||
|
return lmpVersion[ver];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const char*
|
const char*
|
||||||
GetCommand(uint16 command)
|
GetCommand(uint16 command)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user