lib: Fix spelling
Change-Id: I999987af9cb44906e3c3135c0351a0cd6eb210ff Signed-off-by: Martin Roth <martin.roth@se-eng.com> Reviewed-on: http://review.coreboot.org/3756 Reviewed-by: Dave Frodin <dave.frodin@se-eng.com> Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
63373edce0
commit
cbf2bd715a
|
@ -90,7 +90,7 @@ void cbmem_init(u64 baseaddr, u64 size)
|
||||||
for (;;) ;
|
for (;;) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* we don't need to call this in romstage, usefull only from ramstage */
|
/* we don't need to call this in romstage, useful only from ramstage */
|
||||||
#ifndef __PRE_RAM__
|
#ifndef __PRE_RAM__
|
||||||
set_cbmem_toc((struct cbmem_entry *)(unsigned long)baseaddr);
|
set_cbmem_toc((struct cbmem_entry *)(unsigned long)baseaddr);
|
||||||
#endif
|
#endif
|
||||||
|
@ -205,7 +205,7 @@ void *cbmem_find(u32 id)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_EARLY_CBMEM_INIT || !defined(__PRE_RAM__)
|
#if CONFIG_EARLY_CBMEM_INIT || !defined(__PRE_RAM__)
|
||||||
/* Returns True if it was not intialized before. */
|
/* Returns True if it was not initialized before. */
|
||||||
int cbmem_initialize(void)
|
int cbmem_initialize(void)
|
||||||
{
|
{
|
||||||
int rv = 0;
|
int rv = 0;
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Structure describing console buffer. It is overlaid on a flat memory area,
|
* Structure describing console buffer. It is overlaid on a flat memory area,
|
||||||
* whith buffer_body covering the extent of the memory. Once the buffer is
|
* with buffer_body covering the extent of the memory. Once the buffer is
|
||||||
* full, the cursor keeps going but the data is dropped on the floor. This
|
* full, the cursor keeps going but the data is dropped on the floor. This
|
||||||
* allows to tell how much data was lost in the process.
|
* allows to tell how much data was lost in the process.
|
||||||
*/
|
*/
|
||||||
|
@ -138,7 +138,7 @@ void cbmemc_tx_byte(unsigned char data)
|
||||||
* the CBMEM console buffer contents.
|
* the CBMEM console buffer contents.
|
||||||
*
|
*
|
||||||
* If there is overflow - add to the destination area a string, reporting the
|
* If there is overflow - add to the destination area a string, reporting the
|
||||||
* overflow and the number of dropped charactes.
|
* overflow and the number of dropped characters.
|
||||||
*/
|
*/
|
||||||
static void copy_console_buffer(struct cbmem_console *new_cons_p)
|
static void copy_console_buffer(struct cbmem_console *new_cons_p)
|
||||||
{
|
{
|
||||||
|
|
|
@ -40,7 +40,7 @@ unsigned long add_ip_checksums(unsigned long offset, unsigned long sum, unsigned
|
||||||
new = ~new & 0xFFFF;
|
new = ~new & 0xFFFF;
|
||||||
if (offset & 1) {
|
if (offset & 1) {
|
||||||
/* byte swap the sum if it came from an odd offset
|
/* byte swap the sum if it came from an odd offset
|
||||||
* since the computation is endian independant this
|
* since the computation is endian independent this
|
||||||
* works.
|
* works.
|
||||||
*/
|
*/
|
||||||
new = ((new >> 8) & 0xff) | ((new << 8) & 0xff00);
|
new = ((new >> 8) & 0xff) | ((new << 8) & 0xff00);
|
||||||
|
|
|
@ -399,7 +399,7 @@ static unsigned long lb_table_fini(struct lb_header *head)
|
||||||
/* Routines to extract part so the coreboot table or
|
/* Routines to extract part so the coreboot table or
|
||||||
* information from the coreboot table after we have written it.
|
* information from the coreboot table after we have written it.
|
||||||
* Currently get_lb_mem relies on a global we can change the
|
* Currently get_lb_mem relies on a global we can change the
|
||||||
* implementaiton.
|
* implementation.
|
||||||
*/
|
*/
|
||||||
static struct lb_memory *mem_ranges = NULL;
|
static struct lb_memory *mem_ranges = NULL;
|
||||||
|
|
||||||
|
@ -567,7 +567,7 @@ unsigned long write_coreboot_table(
|
||||||
/* Record our GPIO settings (ChromeOS specific) */
|
/* Record our GPIO settings (ChromeOS specific) */
|
||||||
lb_gpios(head);
|
lb_gpios(head);
|
||||||
|
|
||||||
/* pass along the VDAT buffer adress */
|
/* pass along the VDAT buffer address */
|
||||||
lb_vdat(head);
|
lb_vdat(head);
|
||||||
|
|
||||||
/* pass along VBNV offsets in CMOS */
|
/* pass along VBNV offsets in CMOS */
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
static void set_boot_successful(void)
|
static void set_boot_successful(void)
|
||||||
{
|
{
|
||||||
/* Remember I succesfully booted by setting
|
/* Remember I successfully booted by setting
|
||||||
* the initial boot direction
|
* the initial boot direction
|
||||||
* to the direction that I booted.
|
* to the direction that I booted.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -174,7 +174,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||||
#define BITS_PER_UNIT 8
|
#define BITS_PER_UNIT 8
|
||||||
#define LONG_LONG_TYPE_SIZE 64
|
#define LONG_LONG_TYPE_SIZE 64
|
||||||
|
|
||||||
/* There are many gcc_assertions. Set the vaule to 1 if we want a warning
|
/* There are many gcc_assertions. Set the value to 1 if we want a warning
|
||||||
message if the assertion fails. */
|
message if the assertion fails. */
|
||||||
#ifndef ENABLE_ASSERT_CHECKING
|
#ifndef ENABLE_ASSERT_CHECKING
|
||||||
#define ENABLE_ASSERT_CHECKING 1
|
#define ENABLE_ASSERT_CHECKING 1
|
||||||
|
@ -335,7 +335,7 @@ typedef HOST_WIDEST_INT gcov_type;
|
||||||
/* Counters that are collected. */
|
/* Counters that are collected. */
|
||||||
#define GCOV_COUNTER_ARCS 0 /* Arc transitions. */
|
#define GCOV_COUNTER_ARCS 0 /* Arc transitions. */
|
||||||
#define GCOV_COUNTERS_SUMMABLE 1 /* Counters which can be
|
#define GCOV_COUNTERS_SUMMABLE 1 /* Counters which can be
|
||||||
summaried. */
|
summed. */
|
||||||
#define GCOV_FIRST_VALUE_COUNTER 1 /* The first of counters used for value
|
#define GCOV_FIRST_VALUE_COUNTER 1 /* The first of counters used for value
|
||||||
profiling. They must form a consecutive
|
profiling. They must form a consecutive
|
||||||
interval and their order must match
|
interval and their order must match
|
||||||
|
@ -426,7 +426,7 @@ struct gcov_summary
|
||||||
struct gcov_ctr_summary ctrs[GCOV_COUNTERS_SUMMABLE];
|
struct gcov_ctr_summary ctrs[GCOV_COUNTERS_SUMMABLE];
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Structures embedded in coveraged program. The structures generated
|
/* Structures embedded in coverage program. The structures generated
|
||||||
by write_profile must match these. */
|
by write_profile must match these. */
|
||||||
|
|
||||||
#if IN_LIBGCOV
|
#if IN_LIBGCOV
|
||||||
|
|
|
@ -396,7 +396,7 @@ gcov_exit (void)
|
||||||
#endif
|
#endif
|
||||||
prefix_length = 0;
|
prefix_length = 0;
|
||||||
|
|
||||||
/* If no prefix was specified and a prefix stip, then we assume
|
/* If no prefix was specified and a prefix strip, then we assume
|
||||||
relative. */
|
relative. */
|
||||||
if (gcov_prefix_strip != 0 && prefix_length == 0)
|
if (gcov_prefix_strip != 0 && prefix_length == 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,8 +34,8 @@ unsigned long ulzma(unsigned char * src, unsigned char * dst)
|
||||||
memcpy(properties, src, LZMA_PROPERTIES_SIZE);
|
memcpy(properties, src, LZMA_PROPERTIES_SIZE);
|
||||||
/* The outSize in LZMA stream is a 64bit integer stored in little-endian
|
/* The outSize in LZMA stream is a 64bit integer stored in little-endian
|
||||||
* (ref: lzma.cc@LZMACompress: put_64). To prevent accessing by
|
* (ref: lzma.cc@LZMACompress: put_64). To prevent accessing by
|
||||||
* unaligned memory address and to load in correct endianess, read each
|
* unaligned memory address and to load in correct endianness, read each
|
||||||
* byte and re-costruct. */
|
* byte and re-construct. */
|
||||||
cp = src + LZMA_PROPERTIES_SIZE;
|
cp = src + LZMA_PROPERTIES_SIZE;
|
||||||
outSize = cp[3] << 24 | cp[2] << 16 | cp[1] << 8 | cp[0];
|
outSize = cp[3] << 24 | cp[2] << 16 | cp[1] << 8 | cp[0];
|
||||||
if (LzmaDecodeProperties(&state.Properties, properties, LZMA_PROPERTIES_SIZE) != LZMA_RESULT_OK) {
|
if (LzmaDecodeProperties(&state.Properties, properties, LZMA_PROPERTIES_SIZE) != LZMA_RESULT_OK) {
|
||||||
|
|
|
@ -183,7 +183,7 @@ static void merge_add_memranges(struct memranges *ranges,
|
||||||
remove_memranges(ranges, begin, end, -1);
|
remove_memranges(ranges, begin, end, -1);
|
||||||
|
|
||||||
/* Find the entry to place the new entry after. Since
|
/* Find the entry to place the new entry after. Since
|
||||||
* remove_memranges() was called above there is a guranteed
|
* remove_memranges() was called above there is a guaranteed
|
||||||
* spot for this new entry. */
|
* spot for this new entry. */
|
||||||
for (cur = ranges->entries; cur != NULL; cur = cur->next) {
|
for (cur = ranges->entries; cur != NULL; cur = cur->next) {
|
||||||
/* Found insertion spot before current entry. */
|
/* Found insertion spot before current entry. */
|
||||||
|
@ -292,7 +292,7 @@ void memranges_fill_holes_up_to(struct memranges *ranges,
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If the previous entry does not directly preceed the current
|
/* If the previous entry does not directly precede the current
|
||||||
* entry then add a new entry just after the previous one. */
|
* entry then add a new entry just after the previous one. */
|
||||||
if (range_entry_end(prev) != cur->begin) {
|
if (range_entry_end(prev) != cur->begin) {
|
||||||
resource_t end;
|
resource_t end;
|
||||||
|
|
|
@ -132,7 +132,7 @@ static unsigned char eth_pio_read_byte(unsigned int src,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* varition of compute_ip_checksum which works on SRAM */
|
/* Variation of compute_ip_checksum which works on SRAM */
|
||||||
unsigned long compute_ip_checksum_from_sram(unsigned short offset, unsigned short length,
|
unsigned long compute_ip_checksum_from_sram(unsigned short offset, unsigned short length,
|
||||||
unsigned int eth_nic_base)
|
unsigned int eth_nic_base)
|
||||||
{
|
{
|
||||||
|
|
|
@ -232,7 +232,7 @@ int rmodule_load_alignment(const struct rmodule *module)
|
||||||
/* The load alignment is the start of the program's linked address.
|
/* The load alignment is the start of the program's linked address.
|
||||||
* The base address where the program is loaded needs to be a multiple
|
* The base address where the program is loaded needs to be a multiple
|
||||||
* of the program's starting link address. That way all data alignment
|
* of the program's starting link address. That way all data alignment
|
||||||
* in the program is presered. */
|
* in the program is preserved. */
|
||||||
return module->header->module_link_start_address;
|
return module->header->module_link_start_address;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -361,7 +361,7 @@ static int build_self_segment_list(
|
||||||
(void *)(intptr_t)ntohll(segment->load_addr));
|
(void *)(intptr_t)ntohll(segment->load_addr));
|
||||||
*entry = ntohll(segment->load_addr);
|
*entry = ntohll(segment->load_addr);
|
||||||
/* Per definition, a payload always has the entry point
|
/* Per definition, a payload always has the entry point
|
||||||
* as last segment. Thus, we use the occurence of the
|
* as last segment. Thus, we use the occurrence of the
|
||||||
* entry point as break condition for the loop.
|
* entry point as break condition for the loop.
|
||||||
* Can we actually just look at the number of section?
|
* Can we actually just look at the number of section?
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -333,7 +333,7 @@ static int ehci_reset_port(struct ehci_regs *ehci_regs, int port)
|
||||||
if (!(portsc & PORT_CONNECT))
|
if (!(portsc & PORT_CONNECT))
|
||||||
return -1; //-ENOTCONN;
|
return -1; //-ENOTCONN;
|
||||||
|
|
||||||
/* bomb out completely if something weird happend */
|
/* bomb out completely if something weird happened */
|
||||||
if ((portsc & PORT_CSC))
|
if ((portsc & PORT_CSC))
|
||||||
return -2; //-EINVAL;
|
return -2; //-EINVAL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue