Lines Matching refs:USBDevice
123 typedef struct USBDevice USBDevice; typedef
127 struct USBDevice { struct
137 int (*handle_packet)(USBDevice *dev, USBPacket *p); argument
142 void (*handle_destroy)(USBDevice *dev); argument
153 void (*handle_reset)(USBDevice *dev); argument
161 int (*handle_control)(USBDevice *dev, int request, int value, argument
170 int (*handle_data)(USBDevice *dev, USBPacket *p); argument
184 typedef void (*usb_attachfn)(USBPort *port, USBDevice *dev); argument
188 USBDevice *dev;
237 int usb_device_add_dev(USBDevice *dev);
239 void usb_attach(USBPort *port, USBDevice *dev);
240 int usb_generic_handle_packet(USBDevice *s, USBPacket *p);
242 void usb_send_msg(USBDevice *dev, int msg);
245 USBDevice *usb_hub_init(int nb_ports);
248 USBDevice *usb_host_device_open(const char *devname);
253 USBDevice *usb_mouse_init(void);
254 USBDevice *usb_tablet_init(void);
255 USBDevice *usb_keyboard_init(void);
256 void usb_hid_datain_cb(USBDevice *dev, void *opaque, void (*datain)(void *));
259 USBDevice *usb_msd_init(const char *filename);
260 BlockDriverState *usb_msd_get_bdrv(USBDevice *dev);
263 USBDevice *usb_net_init(NICInfo *nd);
266 USBDevice *usb_bt_init(HCIInfo *hci);
269 USBDevice *usb_wacom_init(void);
272 USBDevice *usb_serial_init(const char *filename);