diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-28 23:19:47 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-28 23:19:47 +0000 |
commit | 1ae26a18a33263330e1551abf5244d68f8aa825a (patch) | |
tree | efe9cb15ccb80008e8de0f9612e8adf4bcf5e363 /net.h | |
parent | Rename -cpu atom to -cpu n270. (diff) | |
download | qemu-kvm-1ae26a18a33263330e1551abf5244d68f8aa825a.tar.gz qemu-kvm-1ae26a18a33263330e1551abf5244d68f8aa825a.tar.bz2 qemu-kvm-1ae26a18a33263330e1551abf5244d68f8aa825a.zip |
Add a "null" bluetooth HCI and a header file for bluetooth.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5342 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'net.h')
-rw-r--r-- | net.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -48,6 +48,20 @@ struct NICInfo { extern int nb_nics; extern NICInfo nd_table[MAX_NICS]; +/* BT HCI info */ + +struct HCIInfo { + int (*bdaddr_set)(struct HCIInfo *hci, const uint8_t *bd_addr); + void (*cmd_send)(struct HCIInfo *hci, const uint8_t *data, int len); + void (*sco_send)(struct HCIInfo *hci, const uint8_t *data, int len); + void (*acl_send)(struct HCIInfo *hci, const uint8_t *data, int len); + void *opaque; + void (*evt_recv)(void *opaque, const uint8_t *data, int len); + void (*acl_recv)(void *opaque, const uint8_t *data, int len); +}; + +struct HCIInfo *qemu_next_hci(void); + /* checksumming functions (net-checksum.c) */ uint32_t net_checksum_add(int len, uint8_t *buf); uint16_t net_checksum_finish(uint32_t sum); |