GP2X Hunting 'devrequest' Struct


MadDog

Member
Joined
Mar 4, 2006
Messages
262
Age
54
Location
UK
Website
www.maddoggames.com
re usb -> network adator using realtek 8150 chipset.

I got it all running but its crashing the usb hotplug driver. This is because I could not find the defination for the struct 'devrequest' The driver source is written for kernel version 2.4.0 so I'm guessing it may have been removed? Total guess. My atempt at gestimating what is in the struct looks like it failed, else the usb hotplug driver would not bomb. :)

Anyway, anyone know whats in the struct or what I should do?

Thanks.
 
MadDog posted on Jul 31 2006 at 05:06 PM said:
re usb -> network adator using realtek 8150 chipset.

I got it all running but its crashing the usb hotplug driver. This is because I could not find the defination for the struct 'devrequest' The driver source is written for kernel version 2.4.0 so I'm guessing it may have been removed? Total guess. My atempt at gestimating what is in the struct looks like it failed, else the usb hotplug driver would not bomb. :)

Anyway, anyone know whats in the struct or what I should do?

Thanks.

Give this a shot:

struct usb_ctrlrequest {
__u8 bRequestType;
__u8 bRequest;
__u16 wValue;
__u16 wIndex;
__u16 wLength;
} __attribute__ ((packed));

typedef struct usb_ctrlrequest devrequest;

It's taken from kernel 2.4.32. The typedef is wrapped thus:
#if LINUX_VERSION_CODE >= KERNEL_VERSION (2, 4, 20)
typedef struct urb urb_t, *purb_t;
typedef struct iso_packet_descriptor iso_packet_descriptor_t;
typedef struct usb_ctrlrequest devrequest;
#endif
 
Last edited by a moderator:
Back
Top