Commit 12c28fed49a4011fdec440d78ef8f031317c402a
1 parent
38f0b147
adb fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1011 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
0 deletions
vl.h
| @@ -733,11 +733,14 @@ typedef struct ADBDevice ADBDevice; | @@ -733,11 +733,14 @@ typedef struct ADBDevice ADBDevice; | ||
| 733 | /* buf = NULL means polling */ | 733 | /* buf = NULL means polling */ |
| 734 | typedef int ADBDeviceRequest(ADBDevice *d, uint8_t *buf_out, | 734 | typedef int ADBDeviceRequest(ADBDevice *d, uint8_t *buf_out, |
| 735 | const uint8_t *buf, int len); | 735 | const uint8_t *buf, int len); |
| 736 | +typedef int ADBDeviceReset(ADBDevice *d); | ||
| 737 | + | ||
| 736 | struct ADBDevice { | 738 | struct ADBDevice { |
| 737 | struct ADBBusState *bus; | 739 | struct ADBBusState *bus; |
| 738 | int devaddr; | 740 | int devaddr; |
| 739 | int handler; | 741 | int handler; |
| 740 | ADBDeviceRequest *devreq; | 742 | ADBDeviceRequest *devreq; |
| 743 | + ADBDeviceReset *devreset; | ||
| 741 | void *opaque; | 744 | void *opaque; |
| 742 | }; | 745 | }; |
| 743 | 746 | ||
| @@ -753,6 +756,7 @@ int adb_poll(ADBBusState *s, uint8_t *buf_out); | @@ -753,6 +756,7 @@ int adb_poll(ADBBusState *s, uint8_t *buf_out); | ||
| 753 | 756 | ||
| 754 | ADBDevice *adb_register_device(ADBBusState *s, int devaddr, | 757 | ADBDevice *adb_register_device(ADBBusState *s, int devaddr, |
| 755 | ADBDeviceRequest *devreq, | 758 | ADBDeviceRequest *devreq, |
| 759 | + ADBDeviceReset *devreset, | ||
| 756 | void *opaque); | 760 | void *opaque); |
| 757 | void adb_kbd_init(ADBBusState *bus); | 761 | void adb_kbd_init(ADBBusState *bus); |
| 758 | void adb_mouse_init(ADBBusState *bus); | 762 | void adb_mouse_init(ADBBusState *bus); |