Subversion Repositories freemyipod

Rev

Rev 881 | Rev 894 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 881 Rev 889
Line 132... Line 132...
132
{
132
{
133
    usb_config1_descriptors.c1_i0_a0_e1out.wMaxPacketSize = highspeed ? 512 : 64;
133
    usb_config1_descriptors.c1_i0_a0_e1out.wMaxPacketSize = highspeed ? 512 : 64;
134
    usb_config1_descriptors.c1_i0_a0_e1in.wMaxPacketSize = highspeed ? 512 : 64;
134
    usb_config1_descriptors.c1_i0_a0_e1in.wMaxPacketSize = highspeed ? 512 : 64;
135
}
135
}
136
 
136
 
137
static struct usb_interface usb_c1_i0 =
137
static const struct usb_interface usb_c1_i0 =
138
{
138
{
139
    .bus_reset = ums_bus_reset,
139
    .bus_reset = ums_bus_reset,
140
    .ctrl_request = ums_ctrl_request,
140
    .ctrl_request = ums_ctrl_request,
141
    .altsetting_count = 1,
141
    .altsetting_count = 1,
142
    .altsettings =
142
    .altsettings =
Line 160... Line 160...
160
 
160
 
161
static UMSBOOT_USB_DRIVER_CONFIG_TYPE usb_driver_config = UMSBOOT_USB_DRIVER_CONFIG;
161
static UMSBOOT_USB_DRIVER_CONFIG_TYPE usb_driver_config = UMSBOOT_USB_DRIVER_CONFIG;
162
 
162
 
163
static UMSBOOT_USB_DRIVER_STATE_TYPE usb_driver_state = UMSBOOT_USB_DRIVER_STATE;
163
static UMSBOOT_USB_DRIVER_STATE_TYPE usb_driver_state = UMSBOOT_USB_DRIVER_STATE;
164
 
164
 
165
static struct usb_state usb_state;
165
static struct usb_state usb_state =
-
 
166
{
-
 
167
    .interface_altsetting = { 0 },
-
 
168
};
166
 
169
 
167
static union usb_ep0_buffer usb_buffer __attribute__((section(".dmabss.usb_buffer"),aligned(CACHEALIGN_SIZE)));
170
static union usb_ep0_buffer usb_buffer __attribute__((section(".dmabss.usb_buffer"),aligned(CACHEALIGN_SIZE)));
168
 
171
 
169
const struct usb_instance usb_data =
172
const struct usb_instance usb_data =
170
{
173
{
Line 173... Line 176...
173
    .driver_state = &usb_driver_state,
176
    .driver_state = &usb_driver_state,
174
    .state = &usb_state,
177
    .state = &usb_state,
175
    .buffer = &usb_buffer,
178
    .buffer = &usb_buffer,
176
    .bus_reset = usbglue_bus_reset,
179
    .bus_reset = usbglue_bus_reset,
177
    .ep0_setup_hook = NULL,
180
    .ep0_setup_hook = NULL,
178
    .ep0_data_hook = NULL,
-
 
179
    .configuration_count = 1,
181
    .configuration_count = 1,
180
    .stringdescriptor_count = 3,
182
    .stringdescriptor_count = 3,
181
    .devicedescriptor = &usb_devicedescriptor,
183
    .devicedescriptor = &usb_devicedescriptor,
182
    .stringdescriptors = usb_stringdescriptors,
184
    .stringdescriptors = usb_stringdescriptors,
183
    .configurations =
185
    .configurations =