X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=carlfw%2Finclude%2Fusb.h;h=cea1d4da90e00ef5eec51edb6f1dad42cc59e670;hb=12d3f1ba6ba522cd1ef11483d813fe2c2e64f04b;hp=3f35567f8b9910133cb45fb401a28c56ab39a859;hpb=0eb34487ee8e70ecb8e4ee2ed5092b2788eb7f26;p=carl9170fw.git diff --git a/carlfw/include/usb.h b/carlfw/include/usb.h index 3f35567..cea1d4d 100644 --- a/carlfw/include/usb.h +++ b/carlfw/include/usb.h @@ -6,7 +6,7 @@ * Copyright (c) 2000-2005 ZyDAS Technology Corporation * Copyright (c) 2007-2009 Atheros Communications, Inc. * Copyright 2009 Johannes Berg - * Copyright 2009, 2010 Christian Lamparter + * Copyright 2009-2011 Christian Lamparter * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -50,11 +50,16 @@ static inline __inline bool usb_configured(void) AR9170_USB_DEVICE_ADDRESS_CONFIGURE); } -static inline __inline void usb_remote_wakeup(void) +static inline __inline void usb_enable_remote_wakeup(void) { orb(AR9170_USB_REG_MAIN_CTRL, AR9170_USB_MAIN_CTRL_REMOTE_WAKEUP); } +static inline __inline void usb_disable_remote_wakeup(void) +{ + andb(AR9170_USB_REG_MAIN_CTRL, ~AR9170_USB_MAIN_CTRL_REMOTE_WAKEUP); +} + static inline __inline void usb_enable_global_int(void) { orb(AR9170_USB_REG_MAIN_CTRL, AR9170_USB_MAIN_CTRL_ENABLE_GLOBAL_INT);