diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-05 16:57:08 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-05 16:57:08 +0000 |
commit | 59ae540c3dbd1ab3fb004e85eaf3aa4f3520a308 (patch) | |
tree | 223154410e3b306e1e47358e61b13155a16b605a /hw/usb.h | |
parent | 92414fdca00c1746b950a45f4bc76796239d18aa (diff) | |
download | qemu-59ae540c3dbd1ab3fb004e85eaf3aa4f3520a308.tar.gz qemu-59ae540c3dbd1ab3fb004e85eaf3aa4f3520a308.tar.bz2 qemu-59ae540c3dbd1ab3fb004e85eaf3aa4f3520a308.zip |
added virtual USB mouse support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1599 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/usb.h')
-rw-r--r-- | hw/usb.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -64,6 +64,13 @@ #define DeviceRequest ((USB_DIR_IN|USB_TYPE_STANDARD|USB_RECIP_DEVICE)<<8) #define DeviceOutRequest ((USB_DIR_OUT|USB_TYPE_STANDARD|USB_RECIP_DEVICE)<<8) +#define InterfaceRequest \ + ((USB_DIR_IN|USB_TYPE_STANDARD|USB_RECIP_INTERFACE)<<8) +#define InterfaceOutRequest \ + ((USB_DIR_OUT|USB_TYPE_STANDARD|USB_RECIP_INTERFACE)<<8) +#define EndpointRequest ((USB_DIR_IN|USB_TYPE_STANDARD|USB_RECIP_ENDPOINT)<<8) +#define EndpointOutRequest \ + ((USB_DIR_OUT|USB_TYPE_STANDARD|USB_RECIP_ENDPOINT)<<8) #define USB_REQ_GET_STATUS 0x00 #define USB_REQ_CLEAR_FEATURE 0x01 @@ -137,3 +144,6 @@ void usb_uhci_init(PCIBus *bus, USBPort **usb_ports); /* usb-linux.c */ USBDevice *usb_host_hub_init(void); + +/* usb-hid.c */ +USBDevice *usb_mouse_init(void); |