Revision 5fafdf24 hw/usb.c

b/hw/usb.c
2 2
 * QEMU USB emulation
3 3
 *
4 4
 * Copyright (c) 2005 Fabrice Bellard
5
 * 
5
 *
6 6
 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 7
 * of this software and associated documentation files (the "Software"), to deal
8 8
 * in the Software without restriction, including without limitation the rights
......
31 31
/**********************/
32 32
/* generic USB device helpers (you are not forced to use them when
33 33
   writing your USB device driver, but they help handling the
34
   protocol) 
34
   protocol)
35 35
*/
36 36

  
37 37
#define SETUP_STATE_IDLE 0
......
66 66
        s->setup_len = (s->setup_buf[7] << 8) | s->setup_buf[6];
67 67
        s->setup_index = 0;
68 68
        if (s->setup_buf[0] & USB_DIR_IN) {
69
            ret = s->handle_control(s, 
69
            ret = s->handle_control(s,
70 70
                                    (s->setup_buf[0] << 8) | s->setup_buf[1],
71 71
                                    (s->setup_buf[3] << 8) | s->setup_buf[2],
72 72
                                    (s->setup_buf[5] << 8) | s->setup_buf[4],
......
93 93
            case SETUP_STATE_ACK:
94 94
                if (!(s->setup_buf[0] & USB_DIR_IN)) {
95 95
                    s->setup_state = SETUP_STATE_IDLE;
96
                    ret = s->handle_control(s, 
96
                    ret = s->handle_control(s,
97 97
                                      (s->setup_buf[0] << 8) | s->setup_buf[1],
98 98
                                      (s->setup_buf[3] << 8) | s->setup_buf[2],
99 99
                                      (s->setup_buf[5] << 8) | s->setup_buf[4],

Also available in: Unified diff