Revision 942ac052 hw/usb.h
b/hw/usb.h | ||
---|---|---|
108 | 108 |
#define USB_DT_INTERFACE 0x04 |
109 | 109 |
#define USB_DT_ENDPOINT 0x05 |
110 | 110 |
|
111 |
#define USB_ENDPOINT_XFER_CONTROL 0 |
|
112 |
#define USB_ENDPOINT_XFER_ISOC 1 |
|
113 |
#define USB_ENDPOINT_XFER_BULK 2 |
|
114 |
#define USB_ENDPOINT_XFER_INT 3 |
|
115 |
|
|
111 | 116 |
typedef struct USBPort USBPort; |
112 | 117 |
typedef struct USBDevice USBDevice; |
113 | 118 |
typedef struct USBPacket USBPacket; |
... | ... | |
227 | 232 |
|
228 | 233 |
#define VM_USB_HUB_SIZE 8 |
229 | 234 |
|
235 |
/* usb-musb.c */ |
|
236 |
enum musb_irq_source_e { |
|
237 |
musb_irq_suspend = 0, |
|
238 |
musb_irq_resume, |
|
239 |
musb_irq_rst_babble, |
|
240 |
musb_irq_sof, |
|
241 |
musb_irq_connect, |
|
242 |
musb_irq_disconnect, |
|
243 |
musb_irq_vbus_request, |
|
244 |
musb_irq_vbus_error, |
|
245 |
musb_irq_rx, |
|
246 |
musb_irq_tx, |
|
247 |
musb_set_vbus, |
|
248 |
musb_set_session, |
|
249 |
__musb_irq_max, |
|
250 |
}; |
|
251 |
|
|
252 |
struct musb_s; |
|
253 |
struct musb_s *musb_init(qemu_irq *irqs); |
|
254 |
uint32_t musb_core_intr_get(struct musb_s *s); |
|
255 |
void musb_core_intr_clear(struct musb_s *s, uint32_t mask); |
|
256 |
void musb_set_size(struct musb_s *s, int epnum, int size, int is_tx); |
Also available in: Unified diff