static int dbus_usbos_resume(struct usb_interface *intf);
static int dbus_usbos_suspend(struct usb_interface *intf, pm_message_t message);
/* at the moment, used for full dongle host driver only */
+#if defined(USB_SUSPEND_AVAILABLE)
static int dbus_usbos_reset_resume(struct usb_interface *intf);
-//#endif /* USB_SUSPEND_AVAILABLE */
+#endif /* USB_SUSPEND_AVAILABLE */
#else /* KERNEL26 */
static void *dbus_usbos_probe(struct usb_device *usb, unsigned int ifnum,
const struct usb_device_id *id);
//#if defined(USB_SUSPEND_AVAILABLE)
suspend: dbus_usbos_suspend,
resume: dbus_usbos_resume,
- reset_resume: dbus_usbos_reset_resume,
#if defined(USB_SUSPEND_AVAILABLE)
+ reset_resume: dbus_usbos_reset_resume,
/* Linux USB core will allow autosuspend for devices bound to this driver */
supports_autosuspend: 1
#endif /* USB_SUSPEND_AVAILABLE */
* This function is directly called by the Linux kernel, when the suspended device has been reset
* instead of being resumed
*/
+#if defined(USB_SUSPEND_AVAILABLE)
static int dbus_usbos_reset_resume(struct usb_interface *intf)
{
DBUSERR(("%s Device reset resumed\n", __FUNCTION__));
return 0;
}
-//#endif /* USB_SUSPEND_AVAILABLE */
+#endif /* USB_SUSPEND_AVAILABLE */
/**
* Called by Linux kernel at initialization time, kernel wants to know if our driver will accept the
return err;
}
+#ifdef CONFIG_DHD_USE_STATIC_BUF
+extern void *bcmdhd_mem_prealloc(int section, unsigned long size);
+void* dhd_wlan_mem_prealloc(int section, unsigned long size)
+{
+ void *alloc_ptr = NULL;
+ alloc_ptr = bcmdhd_mem_prealloc(section, size);
+ if (alloc_ptr) {
+ printf("success alloc section %d, size %ld\n", section, size);
+ if (size != 0L)
+ bzero(alloc_ptr, size);
+ return alloc_ptr;
+ }
+ printf("can't alloc section %d\n", section);
+ return NULL;
+}
+#endif
#if !defined(WL_WIRELESS_EXT)
struct cntry_locales_custom {