blob: 2fd8c0f14bfdd2243e83925c8dbb4d7dd6670511 [file] [log] [blame]
Markus Armbruster121d0712016-06-29 10:12:57 +02001#ifndef SYSEMU_BT_H
2#define SYSEMU_BT_H
aurel325ef4efa2009-03-10 21:43:35 +00003
Paolo Bonzini090f7ac2012-10-24 09:36:16 +02004/* BT HCI info */
5
Philippe Mathieu-Daudébc8c49d2019-01-11 15:08:49 +01006typedef struct HCIInfo {
Paolo Bonzini090f7ac2012-10-24 09:36:16 +02007 int (*bdaddr_set)(struct HCIInfo *hci, const uint8_t *bd_addr);
8 void (*cmd_send)(struct HCIInfo *hci, const uint8_t *data, int len);
9 void (*sco_send)(struct HCIInfo *hci, const uint8_t *data, int len);
10 void (*acl_send)(struct HCIInfo *hci, const uint8_t *data, int len);
11 void *opaque;
12 void (*evt_recv)(void *opaque, const uint8_t *data, int len);
13 void (*acl_recv)(void *opaque, const uint8_t *data, int len);
Philippe Mathieu-Daudébc8c49d2019-01-11 15:08:49 +010014} HCIInfo;
aurel325ef4efa2009-03-10 21:43:35 +000015
16/* bt-host.c */
17struct HCIInfo *bt_host_hci(const char *id);
Paolo Bonzini090f7ac2012-10-24 09:36:16 +020018struct HCIInfo *qemu_next_hci(void);
aurel325ef4efa2009-03-10 21:43:35 +000019
20#endif