fixed a few typos
This commit is contained in:
@@ -19,7 +19,7 @@ static inline uint32_t set_ipl(uint32_t ipl)
|
|||||||
" lsr.l #8,%[ret]\r\n" /* shift them to position */
|
" lsr.l #8,%[ret]\r\n" /* shift them to position */
|
||||||
: [ret] "=&d" (ret) /* output */
|
: [ret] "=&d" (ret) /* output */
|
||||||
: [ipl] "d" (ipl) /* input */
|
: [ipl] "d" (ipl) /* input */
|
||||||
: "cc", d0" /* clobber */
|
: "cc", "d0" /* clobber */
|
||||||
);
|
);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
@@ -382,7 +382,7 @@ void arp_handler(NIF *nif, NBUF *pNbuf)
|
|||||||
(rx_arpframe->ar_tpa[2] == addr[2]) &&
|
(rx_arpframe->ar_tpa[2] == addr[2]) &&
|
||||||
(rx_arpframe->ar_tpa[3] == addr[3]) )
|
(rx_arpframe->ar_tpa[3] == addr[3]) )
|
||||||
{
|
{
|
||||||
dbg("received ARP packet is a permanent one, store it\r\n")
|
dbg("received ARP packet is a permanent one, store it\r\n");
|
||||||
longevity = ARP_ENTRY_PERM;
|
longevity = ARP_ENTRY_PERM;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -43,9 +43,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "usb.h"
|
|
||||||
#include "ohci.h"
|
|
||||||
#include "util.h" /* for endian conversions */
|
|
||||||
#include "wait.h" /* for wait routines */
|
#include "wait.h" /* for wait routines */
|
||||||
#include "bas_printf.h"
|
#include "bas_printf.h"
|
||||||
#include "bas_string.h" /* for memset() */
|
#include "bas_string.h" /* for memset() */
|
||||||
@@ -56,7 +53,6 @@
|
|||||||
#undef OHCI_USE_NPS /* force NoPowerSwitching mode */
|
#undef OHCI_USE_NPS /* force NoPowerSwitching mode */
|
||||||
|
|
||||||
#undef OHCI_VERBOSE_DEBUG /* not always helpful */
|
#undef OHCI_VERBOSE_DEBUG /* not always helpful */
|
||||||
#undef DEBUG_OHCI
|
|
||||||
#undef SHOW_INFO
|
#undef SHOW_INFO
|
||||||
#undef OHCI_FILL_TRACE
|
#undef OHCI_FILL_TRACE
|
||||||
|
|
||||||
@@ -67,6 +63,10 @@
|
|||||||
#define dbg(format, arg...) do { ; } while (0)
|
#define dbg(format, arg...) do { ; } while (0)
|
||||||
#endif /* DEBUG_OHCI */
|
#endif /* DEBUG_OHCI */
|
||||||
|
|
||||||
|
#include "usb.h"
|
||||||
|
#include "ohci.h"
|
||||||
|
#include "util.h" /* for endian conversions */
|
||||||
|
|
||||||
/* For initializing controller (mask in an HCFS mode too) */
|
/* For initializing controller (mask in an HCFS mode too) */
|
||||||
#define OHCI_CONTROL_INIT (OHCI_CTRL_CBSR & 0x3) | OHCI_CTRL_IE | OHCI_CTRL_PLE
|
#define OHCI_CONTROL_INIT (OHCI_CTRL_CBSR & 0x3) | OHCI_CTRL_IE | OHCI_CTRL_PLE
|
||||||
|
|
||||||
@@ -1042,7 +1042,7 @@ static void check_status(ohci_t *ohci, td_t *td_list)
|
|||||||
|
|
||||||
if (cc)
|
if (cc)
|
||||||
{
|
{
|
||||||
err("OHCI usb-%s-%c error: %s (%x)\r\n", ohci->slot_name, (char)ohci->controller + '0', cc_to_string[cc], cc);
|
err("OHCI usb-%s-%c error: %s (%x)\r\n", ohci->slot_name, (char) ohci->controller + '0', cc_to_string[cc], cc);
|
||||||
if (*phwHeadP & swpl(0x1))
|
if (*phwHeadP & swpl(0x1))
|
||||||
{
|
{
|
||||||
if (lurb_priv && ((td_list->index + 1) < urb_len))
|
if (lurb_priv && ((td_list->index + 1) < urb_len))
|
||||||
|
|||||||
Reference in New Issue
Block a user