USBDevice *usb_bt_init(HCIInfo *hci)

{

    USBDevice *dev;

    struct USBBtState *s;



    if (!hci)


    dev = usb_create_simple(NULL /* FIXME */, "usb-bt-dongle");




    s = DO_UPCAST(struct USBBtState, dev, dev);

    s->dev.opaque = s;



    s->hci = hci;

    s->hci->opaque = s;

    s->hci->evt_recv = usb_bt_out_hci_packet_event;

    s->hci->acl_recv = usb_bt_out_hci_packet_acl;



    usb_bt_handle_reset(&s->dev);



    return dev;

USBDevice *usb_bt_init(HCIInfo *hci)

{

    USBDevice *dev;

    struct USBBtState *s;



    if (!hci)


    dev = usb_create_simple(NULL , "usb-bt-dongle");




    s = DO_UPCAST(struct USBBtState, dev, dev);

    s->dev.opaque = s;



    s->hci = hci;

    s->hci->opaque = s;

    s->hci->evt_recv = usb_bt_out_hci_packet_event;

    s->hci->acl_recv = usb_bt_out_hci_packet_acl;



    usb_bt_handle_reset(&s->dev);



    return dev;

USBDevice *FUNC_0(HCIInfo *hci)

{

    USBDevice *dev;

    struct USBBtState *VAR_0;



    if (!hci)


    dev = usb_create_simple(NULL , "usb-bt-dongle");




    VAR_0 = DO_UPCAST(struct USBBtState, dev, dev);

    VAR_0->dev.opaque = VAR_0;



    VAR_0->hci = hci;

    VAR_0->hci->opaque = VAR_0;

    VAR_0->hci->evt_recv = usb_bt_out_hci_packet_event;

    VAR_0->hci->acl_recv = usb_bt_out_hci_packet_acl;



    usb_bt_handle_reset(&VAR_0->dev);



    return dev;

USBDevice *FUNC_0(HCIInfo *hci)
{ USBDevice *dev; struct USBBtState *VAR_0; if (!hci)
dev = usb_create_simple(NULL , "usb-bt-dongle"); VAR_0 = DO_UPCAST(struct USBBtState, dev, dev); VAR_0->dev.opaque = VAR_0; VAR_0->hci = hci; VAR_0->hci->opaque = VAR_0; VAR_0->hci->evt_recv = usb_bt_out_hci_packet_event; VAR_0->hci->acl_recv = usb_bt_out_hci_packet_acl; usb_bt_handle_reset(&VAR_0->dev); return dev;