usb fix (tueidj)
[libogc.git] / lwbt / physbusif.h
blob8565c5a6907aee63d5eee49ded7999204793dcd1
1 #ifndef __PHYSBUSIF_H__
2 #define __PHYSBUSIF_H__
4 #include "btpbuf.h"
6 typedef struct _usb_p usb_p;
7 typedef s32 (*pbcallback)(s32 state,s32 result,usb_p *usb);
9 struct _usb_p
11 s32 fd;
12 u8 acl_out;
13 u8 acl_in;
14 u8 hci_evt;
15 u8 hci_ctrl;
16 u32 vid;
17 u32 pid;
18 u8 openstate;
19 pbcallback closecb;
20 pbcallback unregcb;
23 void physbusif_init();
24 void physbusif_close();
25 void physbusif_shutdown();
26 void physbusif_reset_all();
27 void physbusif_output(struct pbuf *p,u16_t len);
29 #endif