payloads: Fix typos
Change-Id: Ib7f1ba1766e5c972542ce7571a8aa3583c513823 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38911 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
9c26605353
commit
824b4b8a20
|
@ -233,7 +233,7 @@ static int cpuinfo_module_redraw(WINDOW *win)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cpu_khz != 0)
|
if (cpu_khz != 0)
|
||||||
mvwprintw(win, row++, 1, "CPU Speed: %d Mhz", cpu_khz / 1000);
|
mvwprintw(win, row++, 1, "CPU Speed: %d MHz", cpu_khz / 1000);
|
||||||
else
|
else
|
||||||
mvwprintw(win, row++, 1, "CPU Speed: Error");
|
mvwprintw(win, row++, 1, "CPU Speed: Error");
|
||||||
|
|
||||||
|
|
|
@ -349,7 +349,7 @@ static int set_scancode_set(void)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set default parameters.
|
* Set default parameters.
|
||||||
* Fix for broken QEMU ps/2 make scancodes.
|
* Fix for broken QEMU PS/2 make scancodes.
|
||||||
*/
|
*/
|
||||||
ret = keyboard_cmd(I8042_KBCMD_SET_DEFAULT);
|
ret = keyboard_cmd(I8042_KBCMD_SET_DEFAULT);
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
|
|
|
@ -442,7 +442,7 @@ static unsigned int msm_boot_uart_dm_reset(void *base)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* msm_boot_uart_dm_init - initilaizes UART controller
|
* msm_boot_uart_dm_init - Initializes UART controller
|
||||||
* @uart_dm_base: UART controller base address
|
* @uart_dm_base: UART controller base address
|
||||||
*/
|
*/
|
||||||
unsigned int msm_boot_uart_dm_init(void *uart_dm_base)
|
unsigned int msm_boot_uart_dm_init(void *uart_dm_base)
|
||||||
|
@ -550,7 +550,7 @@ int serial_getchar(void)
|
||||||
static struct console_input_driver consin = {};
|
static struct console_input_driver consin = {};
|
||||||
static struct console_output_driver consout = {};
|
static struct console_output_driver consout = {};
|
||||||
|
|
||||||
/* For simplicity sake let's rely on coreboot initalizing the UART. */
|
/* For simplicity's sake, let's rely on coreboot initializing the UART. */
|
||||||
void serial_console_init(void)
|
void serial_console_init(void)
|
||||||
{
|
{
|
||||||
struct cb_serial *sc_ptr = lib_sysinfo.serial;
|
struct cb_serial *sc_ptr = lib_sysinfo.serial;
|
||||||
|
|
|
@ -235,7 +235,7 @@ static unsigned int msm_boot_uart_dm_reset(void *base)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* msm_boot_uart_dm_init - initilaizes UART controller
|
* msm_boot_uart_dm_init - Initializes UART controller
|
||||||
* @uart_dm_base: UART controller base address
|
* @uart_dm_base: UART controller base address
|
||||||
*/
|
*/
|
||||||
static unsigned int msm_boot_uart_dm_init(void *uart_dm_base)
|
static unsigned int msm_boot_uart_dm_init(void *uart_dm_base)
|
||||||
|
@ -340,7 +340,7 @@ int serial_getchar(void)
|
||||||
return byte;
|
return byte;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* For simplicity sake let's rely on coreboot initalizing the UART. */
|
/* For simplicity's sake, let's rely on coreboot initializing the UART. */
|
||||||
void serial_console_init(void)
|
void serial_console_init(void)
|
||||||
{
|
{
|
||||||
struct cb_serial *sc_ptr = lib_sysinfo.serial;
|
struct cb_serial *sc_ptr = lib_sysinfo.serial;
|
||||||
|
|
|
@ -434,7 +434,7 @@ static unsigned int msm_boot_uart_dm_reset(void *base)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* msm_boot_uart_dm_init - initilaizes UART controller
|
* msm_boot_uart_dm_init - Initializes UART controller
|
||||||
* @uart_dm_base: UART controller base address
|
* @uart_dm_base: UART controller base address
|
||||||
*/
|
*/
|
||||||
unsigned int msm_boot_uart_dm_init(void *uart_dm_base)
|
unsigned int msm_boot_uart_dm_init(void *uart_dm_base)
|
||||||
|
@ -538,7 +538,7 @@ int serial_getchar(void)
|
||||||
return byte;
|
return byte;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* For simplicity sake let's rely on coreboot initalizing the UART. */
|
/* For simplicity's sake, let's rely on coreboot initializing the UART. */
|
||||||
void serial_console_init(void)
|
void serial_console_init(void)
|
||||||
{
|
{
|
||||||
struct cb_serial *sc_ptr = lib_sysinfo.serial;
|
struct cb_serial *sc_ptr = lib_sysinfo.serial;
|
||||||
|
|
|
@ -253,7 +253,7 @@ static void dwc2_halt_ep(struct usbdev_ctrl *this, int ep, int in_dir)
|
||||||
|
|
||||||
usb_debug("dwc2_halt_ep ep %d-%d\n", ep, in_dir);
|
usb_debug("dwc2_halt_ep ep %d-%d\n", ep, in_dir);
|
||||||
depctl.d32 = readl(&ep_reg->depctl);
|
depctl.d32 = readl(&ep_reg->depctl);
|
||||||
/*Alread disabled*/
|
/* Already disabled */
|
||||||
if (!depctl.epena)
|
if (!depctl.epena)
|
||||||
return;
|
return;
|
||||||
/* First step: disable EP */
|
/* First step: disable EP */
|
||||||
|
@ -558,7 +558,7 @@ static void dwc2_outep_intr(struct usbdev_ctrl *this, dwc2_ep_t *ep)
|
||||||
writel(DXEPINT_AHBERR, &ep->ep_regs->depint);
|
writel(DXEPINT_AHBERR, &ep->ep_regs->depint);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Handle Setup Phase Done (Contorl Ep) */
|
/* Handle Setup Phase Done (Control Ep) */
|
||||||
if (depint.setup) {
|
if (depint.setup) {
|
||||||
usb_debug("DEPINT_SETUP\n");
|
usb_debug("DEPINT_SETUP\n");
|
||||||
writel(DXEPINT_SETUP, &ep->ep_regs->depint);
|
writel(DXEPINT_SETUP, &ep->ep_regs->depint);
|
||||||
|
|
|
@ -233,7 +233,7 @@ dwc2_do_xfer(endpoint_t *ep, int size, int pid, ep_dir_t dir,
|
||||||
packet_size = ep->maxpacketsize;
|
packet_size = ep->maxpacketsize;
|
||||||
packet_cnt = ALIGN_UP(size, packet_size) / packet_size;
|
packet_cnt = ALIGN_UP(size, packet_size) / packet_size;
|
||||||
inpkt_length = packet_cnt * packet_size;
|
inpkt_length = packet_cnt * packet_size;
|
||||||
/* At least 1 packet should be programed */
|
/* At least 1 packet should be programmed */
|
||||||
packet_cnt = (packet_cnt == 0) ? 1 : packet_cnt;
|
packet_cnt = (packet_cnt == 0) ? 1 : packet_cnt;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -78,7 +78,7 @@ static void dump_qh(ehci_qh_t *cur)
|
||||||
usb_debug("+===================================================+\n");
|
usb_debug("+===================================================+\n");
|
||||||
usb_debug("| ############# EHCI QH at [0x%08lx] ########### |\n", virt_to_phys(cur));
|
usb_debug("| ############# EHCI QH at [0x%08lx] ########### |\n", virt_to_phys(cur));
|
||||||
usb_debug("+---------------------------------------------------+\n");
|
usb_debug("+---------------------------------------------------+\n");
|
||||||
usb_debug("| Horizonal Link Pointer [0x%08lx] |\n", cur->horiz_link_ptr);
|
usb_debug("| Horizontal Link Pointer [0x%08lx] |\n", cur->horiz_link_ptr);
|
||||||
usb_debug("+------------------[ 0x%08lx ]-------------------+\n", cur->epchar);
|
usb_debug("+------------------[ 0x%08lx ]-------------------+\n", cur->epchar);
|
||||||
usb_debug("| | Maximum Packet Length | [%04ld] |\n", ((cur->epchar & (0x7ffUL << 16)) >> 16));
|
usb_debug("| | Maximum Packet Length | [%04ld] |\n", ((cur->epchar & (0x7ffUL << 16)) >> 16));
|
||||||
usb_debug("| | Device Address | [%ld] |\n", cur->epchar & 0x7F);
|
usb_debug("| | Device Address | [%ld] |\n", cur->epchar & 0x7F);
|
||||||
|
@ -133,7 +133,7 @@ static void ehci_reset (hci_t *controller)
|
||||||
{
|
{
|
||||||
short count = 0;
|
short count = 0;
|
||||||
ehci_stop(controller);
|
ehci_stop(controller);
|
||||||
/* wait 10 ms just to be shure */
|
/* wait 10 ms just to be sure */
|
||||||
mdelay(10);
|
mdelay(10);
|
||||||
if (EHCI_INST(controller)->operation->usbsts & HC_OP_HC_HALTED) {
|
if (EHCI_INST(controller)->operation->usbsts & HC_OP_HC_HALTED) {
|
||||||
EHCI_INST(controller)->operation->usbcmd = HC_OP_HC_RESET;
|
EHCI_INST(controller)->operation->usbcmd = HC_OP_HC_RESET;
|
||||||
|
@ -215,7 +215,7 @@ static int fill_td(qtd_t *td, void* data, int datalen)
|
||||||
total_len += page_len;
|
total_len += page_len;
|
||||||
|
|
||||||
while (page_no < 5) {
|
while (page_no < 5) {
|
||||||
/* we have a continguous mapping between virtual and physical memory */
|
/* we have a contiguous mapping between virtual and physical memory */
|
||||||
page += 4096;
|
page += 4096;
|
||||||
|
|
||||||
td->bufptrs[page_no++] = page;
|
td->bufptrs[page_no++] = page;
|
||||||
|
|
|
@ -66,7 +66,7 @@ dump_td (td_t *cur)
|
||||||
usb_debug("|:| C | Condition Code | [%02ld] |:|\n", (cur->config & (0xFUL << 28)) >> 28);
|
usb_debug("|:| C | Condition Code | [%02ld] |:|\n", (cur->config & (0xFUL << 28)) >> 28);
|
||||||
usb_debug("|:| O | Direction/PID | [%ld] |:|\n", (cur->config & (3UL << 19)) >> 19);
|
usb_debug("|:| O | Direction/PID | [%ld] |:|\n", (cur->config & (3UL << 19)) >> 19);
|
||||||
usb_debug("|:| N | Buffer Rounding | [%ld] |:|\n", (cur->config & (1UL << 18)) >> 18);
|
usb_debug("|:| N | Buffer Rounding | [%ld] |:|\n", (cur->config & (1UL << 18)) >> 18);
|
||||||
usb_debug("|:| F | Delay Intterrupt | [%ld] |:|\n", (cur->config & (7UL << 21)) >> 21);
|
usb_debug("|:| F | Delay Interrupt | [%ld] |:|\n", (cur->config & (7UL << 21)) >> 21);
|
||||||
usb_debug("|:| I | Data Toggle | [%ld] |:|\n", (cur->config & (3UL << 24)) >> 24);
|
usb_debug("|:| I | Data Toggle | [%ld] |:|\n", (cur->config & (3UL << 24)) >> 24);
|
||||||
usb_debug("|:| G | Error Count | [%ld] |:|\n", (cur->config & (3UL << 26)) >> 26);
|
usb_debug("|:| G | Error Count | [%ld] |:|\n", (cur->config & (3UL << 26)) >> 26);
|
||||||
usb_debug("|:+-----------------------------------------------+:|\n");
|
usb_debug("|:+-----------------------------------------------+:|\n");
|
||||||
|
@ -879,7 +879,7 @@ ohci_process_done_queue(ohci_t *const ohci, const int spew_debug)
|
||||||
intrq_td_t *const td = INTRQ_TD_FROM_TD(done_td);
|
intrq_td_t *const td = INTRQ_TD_FROM_TD(done_td);
|
||||||
intr_queue_t *const intrq = td->intrq;
|
intr_queue_t *const intrq = td->intrq;
|
||||||
/* Check if the corresponding interrupt
|
/* Check if the corresponding interrupt
|
||||||
queue is still beeing processed. */
|
queue is still being processed. */
|
||||||
if (intrq->destroy) {
|
if (intrq->destroy) {
|
||||||
/* Free this TD, and */
|
/* Free this TD, and */
|
||||||
free(td);
|
free(td);
|
||||||
|
|
|
@ -499,7 +499,7 @@ set_address (hci_t *controller, usb_speed speed, int hubport, int hubaddr)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Gather up all endpoints belonging to this inteface */
|
/* Gather up all endpoints belonging to this interface */
|
||||||
dev->num_endp = 1;
|
dev->num_endp = 1;
|
||||||
for (; ptr + 2 <= end && ptr[0] && ptr + ptr[0] <= end; ptr += ptr[0]) {
|
for (; ptr + 2 <= end && ptr[0] && ptr + ptr[0] <= end; ptr += ptr[0]) {
|
||||||
if (ptr[1] == DT_INTF || ptr[1] == DT_CFG ||
|
if (ptr[1] == DT_INTF || ptr[1] == DT_CFG ||
|
||||||
|
@ -654,7 +654,7 @@ usb_detach_device(hci_t *controller, int devno)
|
||||||
controller->devices[devno]->configuration = NULL;
|
controller->devices[devno]->configuration = NULL;
|
||||||
|
|
||||||
/* Tear down the device itself *after* destroy_device()
|
/* Tear down the device itself *after* destroy_device()
|
||||||
* has had a chance to interoogate it. */
|
* has had a chance to interrogate it. */
|
||||||
free(controller->devices[devno]);
|
free(controller->devices[devno]);
|
||||||
controller->devices[devno] = NULL;
|
controller->devices[devno] = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -285,7 +285,7 @@ usb_hub_init(usbdev_t *const dev)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get number of ports from hub decriptor */
|
/* Get number of ports from hub descriptor */
|
||||||
int type = is_usb_speed_ss(dev->speed) ? 0x2a : 0x29; /* similar enough */
|
int type = is_usb_speed_ss(dev->speed) ? 0x2a : 0x29; /* similar enough */
|
||||||
hub_descriptor_t desc; /* won't fit the whole thing, we don't care */
|
hub_descriptor_t desc; /* won't fit the whole thing, we don't care */
|
||||||
if (get_descriptor(dev, gen_bmRequestType(device_to_host, class_type,
|
if (get_descriptor(dev, gen_bmRequestType(device_to_host, class_type,
|
||||||
|
|
|
@ -538,7 +538,7 @@ usb_msc_test_unit_ready (usbdev_t *dev)
|
||||||
time_t start_time_secs;
|
time_t start_time_secs;
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
/* SCSI/ATA specs say we have to wait up to 30s, but most devices
|
/* SCSI/ATA specs say we have to wait up to 30s, but most devices
|
||||||
* are ready much sooner. Use a 5 sec timeout to better accomodate
|
* are ready much sooner. Use a 5 sec timeout to better accommodate
|
||||||
* devices which fail to respond. */
|
* devices which fail to respond. */
|
||||||
const int timeout_secs = 5;
|
const int timeout_secs = 5;
|
||||||
|
|
||||||
|
@ -569,7 +569,7 @@ usb_msc_test_unit_ready (usbdev_t *dev)
|
||||||
MSC_INST (dev)->ready = USB_MSC_NOT_READY;
|
MSC_INST (dev)->ready = USB_MSC_NOT_READY;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Don't bother spinning up the stroage device if the device is not
|
/* Don't bother spinning up the storage device if the device is not
|
||||||
* ready. This can happen when empty card readers are present.
|
* ready. This can happen when empty card readers are present.
|
||||||
* Polling will pick it back up if readiness changes. */
|
* Polling will pick it back up if readiness changes. */
|
||||||
if (!MSC_INST (dev)->ready)
|
if (!MSC_INST (dev)->ready)
|
||||||
|
|
|
@ -509,7 +509,7 @@ static int draw_bitmap_v3(const struct vector *top_left,
|
||||||
* When d hits the right bottom corner, s0 also hits the right bottom
|
* When d hits the right bottom corner, s0 also hits the right bottom
|
||||||
* corner of the pixel array because that's how scale->x and scale->y
|
* corner of the pixel array because that's how scale->x and scale->y
|
||||||
* have been set. Since the pixel array size is already validated in
|
* have been set. Since the pixel array size is already validated in
|
||||||
* parse_bitmap_header_v3, s0 is guranteed not to exceed pixel array
|
* parse_bitmap_header_v3, s0 is guaranteed not to exceed pixel array
|
||||||
* boundary.
|
* boundary.
|
||||||
*/
|
*/
|
||||||
struct vector s0, s1, d;
|
struct vector s0, s1, d;
|
||||||
|
|
|
@ -52,7 +52,7 @@ int string_argc;
|
||||||
*
|
*
|
||||||
* @param caller to be used as argv[0] (may be NULL to ignore)
|
* @param caller to be used as argv[0] (may be NULL to ignore)
|
||||||
* @param string to process
|
* @param string to process
|
||||||
* @return 0 if no error occured.
|
* @return 0 if no error occurred.
|
||||||
*/
|
*/
|
||||||
int string_to_args(char *caller, char *string)
|
int string_to_args(char *caller, char *string)
|
||||||
{
|
{
|
||||||
|
@ -66,7 +66,7 @@ int string_to_args(char *caller, char *string)
|
||||||
|
|
||||||
/* Terminate if the string ends */
|
/* Terminate if the string ends */
|
||||||
while (string && *string) {
|
while (string && *string) {
|
||||||
/* whitespace occured? */
|
/* whitespace occurred? */
|
||||||
if ((*string == ' ') || (*string == '\t')) {
|
if ((*string == ' ') || (*string == '\t')) {
|
||||||
/* skip all whitespace (and null it) */
|
/* skip all whitespace (and null it) */
|
||||||
while (*string == ' ' || *string == '\t')
|
while (*string == ' ' || *string == '\t')
|
||||||
|
|
|
@ -318,7 +318,7 @@ void *realloc(void *ptr, size_t size)
|
||||||
|
|
||||||
struct align_region_t
|
struct align_region_t
|
||||||
{
|
{
|
||||||
/* If alignment is 0 then the region reqpresents a large region which
|
/* If alignment is 0 then the region represents a large region which
|
||||||
* has no metadata for tracking subelements. */
|
* has no metadata for tracking subelements. */
|
||||||
int alignment;
|
int alignment;
|
||||||
/* start in memory, and size in bytes */
|
/* start in memory, and size in bytes */
|
||||||
|
|
|
@ -129,7 +129,7 @@ char *readline(const char *prompt)
|
||||||
if (ch < 0x20)
|
if (ch < 0x20)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* ignore unprintables */
|
/* ignore unprintable characters */
|
||||||
if (ch >= 0x7f)
|
if (ch >= 0x7f)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -268,7 +268,7 @@ size_t strlcat(char *d, const char *s, size_t n)
|
||||||
*
|
*
|
||||||
* @param s The string.
|
* @param s The string.
|
||||||
* @param c The character.
|
* @param c The character.
|
||||||
* @return A pointer to the first occurence of the character in the
|
* @return A pointer to the first occurrence of the character in the
|
||||||
* string, or NULL if the character was not encountered within the string.
|
* string, or NULL if the character was not encountered within the string.
|
||||||
*/
|
*/
|
||||||
char *strchr(const char *s, int c)
|
char *strchr(const char *s, int c)
|
||||||
|
@ -288,7 +288,7 @@ char *strchr(const char *s, int c)
|
||||||
*
|
*
|
||||||
* @param s The string.
|
* @param s The string.
|
||||||
* @param c The character.
|
* @param c The character.
|
||||||
* @return A pointer to the last occurence of the character in the
|
* @return A pointer to the last occurrence of the character in the
|
||||||
* string, or NULL if the character was not encountered within the string.
|
* string, or NULL if the character was not encountered within the string.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -327,7 +327,7 @@ char *strdup(const char *s)
|
||||||
*
|
*
|
||||||
* @param h The haystack string.
|
* @param h The haystack string.
|
||||||
* @param n The needle string (substring).
|
* @param n The needle string (substring).
|
||||||
* @return A pointer to the first occurence of the substring in
|
* @return A pointer to the first occurrence of the substring in
|
||||||
* the string, or NULL if the substring was not encountered within the string.
|
* the string, or NULL if the substring was not encountered within the string.
|
||||||
*/
|
*/
|
||||||
char *strstr(const char *h, const char *n)
|
char *strstr(const char *h, const char *n)
|
||||||
|
|
Loading…
Reference in New Issue