projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
menuconfig: fix NULL pointer dereference when searching a symbol
[carl9170fw.git]
/
carlfw
/
include
/
usb.h
diff --git
a/carlfw/include/usb.h
b/carlfw/include/usb.h
index cea1d4da90e00ef5eec51edb6f1dad42cc59e670..1066fe023d008085ecb8c37496fe61e42c6c79eb 100644
(file)
--- a/
carlfw/include/usb.h
+++ b/
carlfw/include/usb.h
@@
-141,6
+141,12
@@
static inline __inline void usb_clear_input_ep_toggle(unsigned int ep)
~AR9170_USB_EP_IN_TOGGLE);
}
~AR9170_USB_EP_IN_TOGGLE);
}
+static inline __inline void usb_clear_input_ep_stall(unsigned int ep)
+{
+ andl(AR9170_USB_REG_EP_IN_MAX_SIZE_HIGH + (ep << 1),
+ ~AR9170_USB_EP_IN_STALL);
+}
+
static inline __inline void usb_set_input_ep_toggle(unsigned int ep)
{
orl(AR9170_USB_REG_EP_IN_MAX_SIZE_HIGH + (ep << 1),
static inline __inline void usb_set_input_ep_toggle(unsigned int ep)
{
orl(AR9170_USB_REG_EP_IN_MAX_SIZE_HIGH + (ep << 1),
@@
-159,6
+165,12
@@
static inline __inline void usb_set_output_ep_toggle(unsigned int ep)
AR9170_USB_EP_OUT_TOGGLE);
}
AR9170_USB_EP_OUT_TOGGLE);
}
+static inline __inline void usb_clear_output_ep_stall(unsigned int ep)
+{
+ andl(AR9170_USB_REG_EP_OUT_MAX_SIZE_HIGH + (ep << 1),
+ ~AR9170_USB_EP_OUT_STALL);
+}
+
static inline void usb_structure_check(void)
{
BUILD_BUG_ON(sizeof(struct usb_config_descriptor) != USB_DT_CONFIG_SIZE);
static inline void usb_structure_check(void)
{
BUILD_BUG_ON(sizeof(struct usb_config_descriptor) != USB_DT_CONFIG_SIZE);
@@
-172,6
+184,7
@@
void __noreturn jump_to_bootcode(void);
void send_cmd_to_host(const uint8_t len, const uint8_t type,
const uint8_t ext, const uint8_t *body);
void send_cmd_to_host(const uint8_t len, const uint8_t type,
const uint8_t ext, const uint8_t *body);
+void usb_reset_eps(void);
void usb_init(void);
void usb_ep0rx(void);
void usb_ep0tx(void);
void usb_init(void);
void usb_ep0rx(void);
void usb_ep0tx(void);