Revision 1ae26a18 net.h

b/net.h
48 48
extern int nb_nics;
49 49
extern NICInfo nd_table[MAX_NICS];
50 50

  
51
/* BT HCI info */
52

  
53
struct HCIInfo {
54
    int (*bdaddr_set)(struct HCIInfo *hci, const uint8_t *bd_addr);
55
    void (*cmd_send)(struct HCIInfo *hci, const uint8_t *data, int len);
56
    void (*sco_send)(struct HCIInfo *hci, const uint8_t *data, int len);
57
    void (*acl_send)(struct HCIInfo *hci, const uint8_t *data, int len);
58
    void *opaque;
59
    void (*evt_recv)(void *opaque, const uint8_t *data, int len);
60
    void (*acl_recv)(void *opaque, const uint8_t *data, int len);
61
};
62

  
63
struct HCIInfo *qemu_next_hci(void);
64

  
51 65
/* checksumming functions (net-checksum.c) */
52 66
uint32_t net_checksum_add(int len, uint8_t *buf);
53 67
uint16_t net_checksum_finish(uint32_t sum);

Also available in: Unified diff