diff options
author | Martin Roth <martin.roth@se-eng.com> | 2013-07-08 16:24:19 -0600 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2013-07-10 20:17:25 +0200 |
commit | 63373edce006983d1e2aef7d71c1653ae337ed18 (patch) | |
tree | fdc6a687ac72663e19767296eb8cd25ee0d99c0e /src | |
parent | 50d887d4f4f5f4c4717a2308f4bf069d86ca4ff7 (diff) | |
download | coreboot-63373edce006983d1e2aef7d71c1653ae337ed18.tar.xz |
device: Fix spelling
Change-Id: I53a40d114aa2da76398c5b97443d4096809dcf36
Signed-off-by: Martin Roth <martin.roth@se-eng.com>
Reviewed-on: http://review.coreboot.org/3730
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/device/device.c | 14 | ||||
-rw-r--r-- | src/device/device_util.c | 4 | ||||
-rw-r--r-- | src/device/dram/ddr3.c | 6 | ||||
-rw-r--r-- | src/device/hypertransport.c | 10 | ||||
-rw-r--r-- | src/device/oprom/include/x86emu/regs.h | 4 | ||||
-rw-r--r-- | src/device/oprom/include/x86emu/x86emu.h | 8 | ||||
-rw-r--r-- | src/device/oprom/realmode/x86_interrupts.c | 4 | ||||
-rw-r--r-- | src/device/oprom/x86emu/debug.h | 2 | ||||
-rw-r--r-- | src/device/oprom/x86emu/decode.c | 10 | ||||
-rw-r--r-- | src/device/oprom/x86emu/ops.c | 16 | ||||
-rw-r--r-- | src/device/oprom/x86emu/prim_ops.c | 14 | ||||
-rw-r--r-- | src/device/oprom/x86emu/sys.c | 4 | ||||
-rw-r--r-- | src/device/oprom/x86emu/x86emui.h | 2 | ||||
-rw-r--r-- | src/device/oprom/yabel/biosemu.c | 4 | ||||
-rw-r--r-- | src/device/oprom/yabel/biosemu.h | 6 | ||||
-rw-r--r-- | src/device/oprom/yabel/compat/functions.c | 2 | ||||
-rw-r--r-- | src/device/oprom/yabel/device.c | 20 | ||||
-rw-r--r-- | src/device/oprom/yabel/interrupt.c | 4 | ||||
-rw-r--r-- | src/device/oprom/yabel/io.c | 12 | ||||
-rw-r--r-- | src/device/oprom/yabel/mem.c | 8 | ||||
-rw-r--r-- | src/device/oprom/yabel/pmm.c | 2 | ||||
-rw-r--r-- | src/device/oprom/yabel/pmm.h | 6 | ||||
-rw-r--r-- | src/device/oprom/yabel/vbe.c | 4 |
23 files changed, 83 insertions, 83 deletions
diff --git a/src/device/device.c b/src/device/device.c index a971270eba..3837928743 100644 --- a/src/device/device.c +++ b/src/device/device.c @@ -83,7 +83,7 @@ uint64_t uma_memory_size = 0; /** * Allocate a new device structure. * - * Allocte a new device structure and attach it to the device tree as a + * Allocate a new device structure and attach it to the device tree as a * child of the parent bus. * * @param parent Parent bus the newly created device should be attached to. @@ -415,7 +415,7 @@ static void compute_resources(struct bus *bus, struct resource *bridge, * A PCI bridge resource does not need to be a power of two size, but * it does have a minimum granularity. Round the size up to that * minimum granularity so we know not to place something else at an - * address postitively decoded by the bridge. + * address positively decoded by the bridge. */ bridge->size = round(base, bridge->gran) - round(bridge->base, bridge->align); @@ -730,7 +730,7 @@ device_t vga_pri = 0; static void set_vga_bridge_bits(void) { /* - * FIXME: Modify set_vga_bridge() so it is less PCI centric! + * FIXME: Modify set_vga_bridge() so it is less PCI-centric! * This function knows too much about PCI stuff, it should be just * an iterator/visitor. */ @@ -835,7 +835,7 @@ void assign_resources(struct bus *bus) * * The parent's resources should be enabled first to avoid having enabling * order problem. This is done by calling the parent's enable_resources() - * method before its childrens' enable_resources() methods. + * method before its children's enable_resources() methods. * * @param link The link whose devices' resources are to be enabled. */ @@ -959,7 +959,7 @@ void dev_enumerate(void) * * Starting at the root of the device tree, travel it recursively in two * passes. In the first pass, we compute and allocate resources (ranges) - * requried by each device. In the second pass, the resources ranges are + * required by each device. In the second pass, the resources ranges are * relocated to their final position and stored to the hardware. * * I/O resources grow upward. MEM resources grow downward. @@ -1025,7 +1025,7 @@ void dev_configure(void) /* * Now we need to adjust the resources. MEM resources need to start at - * the highest address managable. + * the highest address manageable. */ for (child = root->link_list->children; child; child = child->sibling) { if (child->path.type != DEVICE_PATH_DOMAIN) @@ -1093,7 +1093,7 @@ void dev_enable(void) * Initialize a specific device. * * The parent should be initialized first to avoid having an ordering problem. - * This is done by calling the parent's init() method before its childrens' + * This is done by calling the parent's init() method before its children's * init() methods. * * @param dev The device to be initialized. diff --git a/src/device/device_util.c b/src/device/device_util.c index 180169da85..d2c99e1980 100644 --- a/src/device/device_util.c +++ b/src/device/device_util.c @@ -285,7 +285,7 @@ int path_eq(struct device_path *path1, struct device_path *path2) equal = (path1->cpu_bus.id == path2->cpu_bus.id); break; default: - printk(BIOS_ERR, "Uknown device type: %d\n", path1->type); + printk(BIOS_ERR, "Unknown device type: %d\n", path1->type); break; } @@ -544,7 +544,7 @@ const char *resource_type(struct resource *resource) /** * Print the resource that was just stored. * - * @param dev The device the stored resorce lives on. + * @param dev The device the stored resource lives on. * @param resource The resource that was just stored. * @param comment TODO */ diff --git a/src/device/dram/ddr3.c b/src/device/dram/ddr3.c index 6e3fc2a58d..d98de91956 100644 --- a/src/device/dram/ddr3.c +++ b/src/device/dram/ddr3.c @@ -55,7 +55,7 @@ int dimm_is_registered(enum spd_dimm_type type) * @ref dimm_attr structure. The SPD data must first be read in a contiguous * array, and passed to this function. * - * @param dimm pointer to @ref dimm_attr stucture where the decoded data is to + * @param dimm pointer to @ref dimm_attr structure where the decoded data is to * be stored * @param spd array of raw data previously read from the SPD. * @@ -309,7 +309,7 @@ int spd_decode_ddr3(dimm_attr * dimm, spd_raw_data spd) if (spd[63] & 0x01) { dimm->flags.pins_mirrored = 1; - printram(" DIMM Rank1 Address bits mirrorred!!!\n"); + printram(" DIMM Rank1 Address bits mirrored!!!\n"); } return ret; @@ -336,7 +336,7 @@ static void print_ns(const char *msg, u32 val) * Print info about the DIMM. Useful to use when CONFIG_DEBUG_RAM_SETUP is * selected, or for a purely informative output. * -* @param dimm pointer to already decoded @ref dimm_attr stucture +* @param dimm pointer to already decoded @ref dimm_attr structure */ void dram_print_spd_ddr3(const dimm_attr * dimm) { diff --git a/src/device/hypertransport.c b/src/device/hypertransport.c index 11ea9a5ba9..d9ab486c22 100644 --- a/src/device/hypertransport.c +++ b/src/device/hypertransport.c @@ -106,7 +106,7 @@ static unsigned ht_read_freq_cap(device_t dev, unsigned pos) #if CONFIG_K8_HT_FREQ_1G_SUPPORT #if !CONFIG_K8_REV_F_SUPPORT - /* Only e0 later suupport 1GHz HT. */ + /* Only e0 later support 1GHz HT. */ if (is_cpu_pre_e0()) freq_cap &= ~(1 << HT_FREQ_1000Mhz); #endif @@ -176,7 +176,7 @@ static int ht_setup_link(struct ht_link *prev, device_t dev, unsigned pos) upstream_width_cap = pci_read_config8(prev->dev, prev->pos + prev->config_off); - /* Calculate the highest useable frequency. */ + /* Calculate the highest usable frequency. */ freq = log2(present_freq_cap & upstream_freq_cap); /* Calculate the highest width. */ @@ -436,7 +436,7 @@ unsigned int hypertransport_scan_chain(struct bus *bus, unsigned min_devfn, device_t real_last_dev = NULL; #endif - /* Restore the hypertransport chain to it's unitialized state. */ + /* Restore the hypertransport chain to it's uninitialized state. */ ht_collapse_early_enumeration(bus, offset_unitid); /* See which static device nodes I have. */ @@ -571,7 +571,7 @@ unsigned int hypertransport_scan_chain(struct bus *bus, unsigned min_devfn, if (next_unitid > max_unitid) max_unitid = next_unitid; - /* Setup the hypetransport link. */ + /* Setup the hypertransport link. */ bus->reset_needed |= ht_setup_link(&prev, dev, pos); printk(BIOS_DEBUG, "%s [%04x/%04x] %s next_unitid: %04x\n", @@ -658,7 +658,7 @@ end_of_chain: * @param bus TODO * @param min_devfn TODO * @param max_devfn TODO - * @param max The highest bus number assgined up to now. + * @param max The highest bus number assigned up to now. * @return The maximum bus number found, after scanning all subordinate busses. */ static unsigned int hypertransport_scan_chain_x(struct bus *bus, diff --git a/src/device/oprom/include/x86emu/regs.h b/src/device/oprom/include/x86emu/regs.h index d738974d4b..4bf1294e88 100644 --- a/src/device/oprom/include/x86emu/regs.h +++ b/src/device/oprom/include/x86emu/regs.h @@ -231,8 +231,8 @@ struct i386_segment_regs { #define SYSMODE_PREFIX_REPNE 0x00000100 #define SYSMODE_PREFIX_DATA 0x00000200 #define SYSMODE_PREFIX_ADDR 0x00000400 -//phueper: for REP(E|NE) Instructions, we need to decide wether it should be using -//the 32bit ECX register as or the 16bit CX register as count register +//phueper: for REP(E|NE) Instructions, we need to decide whether it should be +//using the 32bit ECX register as or the 16bit CX register as count register #define SYSMODE_32BIT_REP 0x00000800 #define SYSMODE_INTR_PENDING 0x10000000 #define SYSMODE_EXTRN_INTR 0x20000000 diff --git a/src/device/oprom/include/x86emu/x86emu.h b/src/device/oprom/include/x86emu/x86emu.h index 3ceee4985b..b912bd2c77 100644 --- a/src/device/oprom/include/x86emu/x86emu.h +++ b/src/device/oprom/include/x86emu/x86emu.h @@ -59,11 +59,11 @@ /**************************************************************************** REMARKS: -Data structure containing ponters to programmed I/O functions used by the +Data structure containing pointers to programmed I/O functions used by the emulator. This is used so that the user program can hook all programmed I/O for the emulator to handled as necessary by the user program. By default the emulator contains simple functions that do not do access the -hardware in any way. To allow the emualtor access the hardware, you will +hardware in any way. To allow the emulator access the hardware, you will need to override the programmed I/O functions using the X86EMU_setupPioFuncs function. @@ -89,11 +89,11 @@ typedef struct { /**************************************************************************** REMARKS: -Data structure containing ponters to memory access functions used by the +Data structure containing pointers to memory access functions used by the emulator. This is used so that the user program can hook all memory access functions as necessary for the emulator. By default the emulator contains simple functions that only access the internal memory of the -emulator. If you need specialised functions to handle access to different +emulator. If you need specialized functions to handle access to different types of memory (ie: hardware framebuffer accesses and BIOS memory access etc), you will need to override this using the X86EMU_setupMemFuncs function. diff --git a/src/device/oprom/realmode/x86_interrupts.c b/src/device/oprom/realmode/x86_interrupts.c index b3764f93b7..383c736ff0 100644 --- a/src/device/oprom/realmode/x86_interrupts.c +++ b/src/device/oprom/realmode/x86_interrupts.c @@ -123,7 +123,7 @@ int int1a_handler(void) unsigned short func = (unsigned short)X86_EAX; int retval = 1; unsigned short devid, vendorid, devfn; - /* Use short to get rid of gabage in upper half of 32-bit register */ + /* Use short to get rid of garbage in upper half of 32-bit register */ short devindex; unsigned char bus; struct device *dev; @@ -137,7 +137,7 @@ int int1a_handler(void) X86_EAX &= 0xffff0000; /* Clear AH / AL */ X86_EAX |= PCI_CONFIG_SPACE_TYPE1 | PCI_SPECIAL_CYCLE_TYPE1; // last bus in the system. Hard code to 255 for now. - // dev_enumerate() does not seem to tell us (publically) + // dev_enumerate() does not seem to tell us (publicly) X86_ECX = 0xff; X86_EDI = 0x00000000; /* protected mode entry */ retval = 1; diff --git a/src/device/oprom/x86emu/debug.h b/src/device/oprom/x86emu/debug.h index 1b2c3a3f1c..6858f15b4f 100644 --- a/src/device/oprom/x86emu/debug.h +++ b/src/device/oprom/x86emu/debug.h @@ -118,7 +118,7 @@ /* * The following allow us to look at the bytes of an instruction. The - * first INCR_INSTRN_LEN, is called everytime bytes are consumed in + * first INCR_INSTRN_LEN, is called every time bytes are consumed in * the decoding process. The SAVE_IP_CS is called initially when the * major opcode of the instruction is accessed. */ diff --git a/src/device/oprom/x86emu/decode.c b/src/device/oprom/x86emu/decode.c index ed96dc66e6..3d3f77dd1d 100644 --- a/src/device/oprom/x86emu/decode.c +++ b/src/device/oprom/x86emu/decode.c @@ -33,7 +33,7 @@ * Developer: Kendall Bennett * * Description: This file includes subroutines which are related to -* instruction decoding and accessess of immediate data via IP. etc. +* instruction decoding and accesses of immediate data via IP. etc. * ****************************************************************************/ @@ -43,7 +43,7 @@ /**************************************************************************** REMARKS: -Handles any pending asychronous interrupts. +Handles any pending asynchronous interrupts. ****************************************************************************/ static void x86emu_intr_handle(void) { @@ -77,7 +77,7 @@ next instruction. void x86emu_intr_raise( u8 intrnum) { - printf("%s, raising exeception %x\n", __func__, intrnum); + printf("%s, raising exception %x\n", __func__, intrnum); x86emu_dump_regs(); M.x86.intno = intrnum; M.x86.intr |= INTR_SYNCH; @@ -243,7 +243,7 @@ no segment override. Address modes such as -3[BP] or 10[BP+SI] all refer to addresses relative to SS (ie: on the stack). So, at the minimum, all decodings of addressing modes would have to set/clear a bit describing whether the access is relative to DS or SS. That is the function of the -cpu-state-varible M.x86.mode. There are several potential states: +cpu-state-variable M.x86.mode. There are several potential states: repe prefix seen (handled elsewhere) repne prefix seen (ditto) @@ -255,7 +255,7 @@ cpu-state-varible M.x86.mode. There are several potential states: gs segment override ss segment override - ds/ss select (in absense of override) + ds/ss select (in absence of override) Each of the above 7 items are handled with a bit in the mode field. ****************************************************************************/ diff --git a/src/device/oprom/x86emu/ops.c b/src/device/oprom/x86emu/ops.c index 6917a08162..c805b58c42 100644 --- a/src/device/oprom/x86emu/ops.c +++ b/src/device/oprom/x86emu/ops.c @@ -39,7 +39,7 @@ * to the 256 byte-"opcodes" found on the 8086. The table which * dispatches this is found in the files optab.[ch]. * -* Each opcode proc has a comment preceeding it which gives it's table +* Each opcode proc has a comment preceding it which gives it's table * address. Several opcodes are missing (undefined) in the table. * * Each proc includes information for decoding (DECODE_PRINTF and @@ -2530,7 +2530,7 @@ static void x86emuOp_movs_byte(u8 X86EMU_UNUSED(op1)) TRACE_AND_STEP(); count = 1; if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) { - /* dont care whether REPE or REPNE */ + /* don't care whether REPE or REPNE */ /* move them until (E)CX is ZERO. */ count = (M.x86.mode & SYSMODE_32BIT_REP) ? M.x86.R_ECX : M.x86.R_CX; M.x86.R_CX = 0; @@ -2577,7 +2577,7 @@ static void x86emuOp_movs_word(u8 X86EMU_UNUSED(op1)) TRACE_AND_STEP(); count = 1; if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) { - /* dont care whether REPE or REPNE */ + /* don't care whether REPE or REPNE */ /* move them until (E)CX is ZERO. */ count = (M.x86.mode & SYSMODE_32BIT_REP) ? M.x86.R_ECX : M.x86.R_CX; M.x86.R_CX = 0; @@ -2773,7 +2773,7 @@ static void x86emuOp_stos_byte(u8 X86EMU_UNUSED(op1)) inc = 1; TRACE_AND_STEP(); if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) { - /* dont care whether REPE or REPNE */ + /* don't care whether REPE or REPNE */ /* move them until (E)CX is ZERO. */ while (((M.x86.mode & SYSMODE_32BIT_REP) ? M.x86.R_ECX : M.x86.R_CX) != 0) { store_data_byte_abs(M.x86.R_ES, M.x86.R_DI, M.x86.R_AL); @@ -2820,7 +2820,7 @@ static void x86emuOp_stos_word(u8 X86EMU_UNUSED(op1)) TRACE_AND_STEP(); count = 1; if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) { - /* dont care whether REPE or REPNE */ + /* don't care whether REPE or REPNE */ /* move them until (E)CX is ZERO. */ count = (M.x86.mode & SYSMODE_32BIT_REP) ? M.x86.R_ECX : M.x86.R_CX; M.x86.R_CX = 0; @@ -2858,7 +2858,7 @@ static void x86emuOp_lods_byte(u8 X86EMU_UNUSED(op1)) else inc = 1; if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) { - /* dont care whether REPE or REPNE */ + /* don't care whether REPE or REPNE */ /* move them until (E)CX is ZERO. */ while (((M.x86.mode & SYSMODE_32BIT_REP) ? M.x86.R_ECX : M.x86.R_CX) != 0) { M.x86.R_AL = fetch_data_byte(M.x86.R_SI); @@ -2905,7 +2905,7 @@ static void x86emuOp_lods_word(u8 X86EMU_UNUSED(op1)) TRACE_AND_STEP(); count = 1; if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) { - /* dont care whether REPE or REPNE */ + /* don't care whether REPE or REPNE */ /* move them until (E)CX is ZERO. */ count = (M.x86.mode & SYSMODE_32BIT_REP) ? M.x86.R_ECX : M.x86.R_CX; M.x86.R_CX = 0; @@ -4075,7 +4075,7 @@ static void x86emuOp_xlat(u8 X86EMU_UNUSED(op1)) END_OF_INSTR(); } -/* instuctions D8 .. DF are in i87_ops.c */ +/* Instructions D8 .. DF are in i87_ops.c */ /**************************************************************************** REMARKS: diff --git a/src/device/oprom/x86emu/prim_ops.c b/src/device/oprom/x86emu/prim_ops.c index 20e75978e5..e73f217cda 100644 --- a/src/device/oprom/x86emu/prim_ops.c +++ b/src/device/oprom/x86emu/prim_ops.c @@ -134,7 +134,7 @@ static u32 x86emu_parity_tab[8] = /**************************************************************************** REMARKS: -implements side efects for byte operations that don't overflow +implements side effects for byte operations that don't overflow ****************************************************************************/ static void set_parity_flag(u32 res) @@ -790,7 +790,7 @@ u8 rcl_byte(u8 d, u8 s) /* OVERFLOW is set *IFF* cnt==1, then it is the xor of CF and the most significant bit. Blecck. */ /* parenthesized this expression since it appears to - be causing OF to be misset */ + be causing OF to be missed */ CONDITIONAL_SET_FLAG(cnt == 1 && XOR2(cf + ((res >> 6) & 0x2)), F_OF); @@ -1800,7 +1800,7 @@ void test_byte(u8 d, u8 s) CLEAR_FLAG(F_OF); set_szp_flags_8((u8)res); - /* AF == dont care */ + /* AF == don't care */ CLEAR_FLAG(F_CF); } @@ -1816,7 +1816,7 @@ void test_word(u16 d, u16 s) CLEAR_FLAG(F_OF); set_szp_flags_16((u16)res); - /* AF == dont care */ + /* AF == don't care */ CLEAR_FLAG(F_CF); } @@ -1832,7 +1832,7 @@ void test_long(u32 d, u32 s) CLEAR_FLAG(F_OF); set_szp_flags_32(res); - /* AF == dont care */ + /* AF == don't care */ CLEAR_FLAG(F_CF); } @@ -2311,7 +2311,7 @@ void ins(int size) inc = -size; } if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) { - /* dont care whether REPE or REPNE */ + /* don't care whether REPE or REPNE */ /* in until (E)CX is ZERO. */ u32 count = ((M.x86.mode & SYSMODE_32BIT_REP) ? M.x86.R_ECX : M.x86.R_CX); @@ -2353,7 +2353,7 @@ void outs(int size) inc = -size; } if (M.x86.mode & (SYSMODE_PREFIX_REPE | SYSMODE_PREFIX_REPNE)) { - /* dont care whether REPE or REPNE */ + /* don't care whether REPE or REPNE */ /* out until (E)CX is ZERO. */ u32 count = ((M.x86.mode & SYSMODE_32BIT_REP) ? M.x86.R_ECX : M.x86.R_CX); diff --git a/src/device/oprom/x86emu/sys.c b/src/device/oprom/x86emu/sys.c index b3b3cd7123..9785a9dd77 100644 --- a/src/device/oprom/x86emu/sys.c +++ b/src/device/oprom/x86emu/sys.c @@ -35,7 +35,7 @@ * Description: This file includes subroutines which are related to * programmed I/O and memory access. Included in this module * are default functions with limited usefulness. For real -* uses these functions will most likely be overriden by the +* uses these functions will most likely be overridden by the * user library. * ****************************************************************************/ @@ -381,7 +381,7 @@ PARAMETERS: int - New software interrupt to prepare for REMARKS: -This function is used to set up the emulator state to exceute a software +This function is used to set up the emulator state to execute a software interrupt. This can be used by the user application code to allow an interrupt to be hooked, examined and then reflected back to the emulator so that the code in the emulator will continue processing the software diff --git a/src/device/oprom/x86emu/x86emui.h b/src/device/oprom/x86emu/x86emui.h index e34a1bad30..37339d5ffa 100644 --- a/src/device/oprom/x86emu/x86emui.h +++ b/src/device/oprom/x86emu/x86emui.h @@ -33,7 +33,7 @@ * Developer: Kendall Bennett * * Description: Header file for system specific functions. These functions -* are always compiled and linked in the OS depedent libraries, +* are always compiled and linked in the OS dependent libraries, * and never in a binary portable driver. * ****************************************************************************/ diff --git a/src/device/oprom/yabel/biosemu.c b/src/device/oprom/yabel/biosemu.c index f42d4e1735..d27a5f1784 100644 --- a/src/device/oprom/yabel/biosemu.c +++ b/src/device/oprom/yabel/biosemu.c @@ -219,7 +219,7 @@ biosemu(u8 *biosmem, u32 biosmem_size, struct device * dev, unsigned long rom_ad my_wrb(0x000ffe6e, 0xcf); // setup BIOS Data Area (0000:04xx, or 0040:00xx) - // we currently 0 this area, meaning "we dont have + // we currently 0 this area, meaning "we don't have // any hardware" :-) no serial/parallel ports, floppys, ... memset(biosmem + 0x400, 0x0, 0x100); @@ -388,7 +388,7 @@ biosemu(u8 *biosmem, u32 biosmem_size, struct device * dev, unsigned long rom_ad */ if ((pop_word() == 0xf4f4) && (M.x86.R_SS == STACK_SEGMENT) && (M.x86.R_SP == STACK_START_OFFSET)) { - DEBUG_PRINTF("Stack is clean, initialization successfull!\n"); + DEBUG_PRINTF("Stack is clean, initialization successful!\n"); } else { printf("Stack unclean, initialization probably NOT COMPLETE!\n"); DEBUG_PRINTF("SS:SP = %04x:%04x, expected: %04x:%04x\n", diff --git a/src/device/oprom/yabel/biosemu.h b/src/device/oprom/yabel/biosemu.h index 4f5c4aaa5b..69e1fc35ba 100644 --- a/src/device/oprom/yabel/biosemu.h +++ b/src/device/oprom/yabel/biosemu.h @@ -24,7 +24,7 @@ #define VBE_SEGMENT 0x3000 #define PMM_CONV_SEGMENT 0x4000 // 4000:xxxx is PMM conventional memory area, extended memory area - // will be anything beyound MIN_REQUIRED_MEMORY_SIZE + // will be anything beyond MIN_REQUIRED_MEMORY_SIZE #define PNP_DATA_SEGMENT 0x5000 #define OPTION_ROM_CODE_SEGMENT 0xc000 @@ -38,9 +38,9 @@ // Address, there will only be a call to this INT and a RETF #define PNP_INT_NUM 0xFD -/* array of funtion pointers to override generic interrupt handlers +/* array of function pointers to override generic interrupt handlers * a YABEL caller can add functions to this array before calling YABEL - * if a interrupt occurs, YABEL checks wether a function is set in + * if a interrupt occurs, YABEL checks whether a function is set in * this array and only runs the generic interrupt handler code, if * the function pointer is NULL */ typedef int (* yabel_handleIntFunc)(void); diff --git a/src/device/oprom/yabel/compat/functions.c b/src/device/oprom/yabel/compat/functions.c index f0160ed52a..2c3dc33fc4 100644 --- a/src/device/oprom/yabel/compat/functions.c +++ b/src/device/oprom/yabel/compat/functions.c @@ -10,7 +10,7 @@ ****************************************************************************/ /* this file contains functions provided by SLOF, that the current biosemu implementation needs - * they should go away inthe future... + * they should go away in the future... */ #include <types.h> diff --git a/src/device/oprom/yabel/device.c b/src/device/oprom/yabel/device.c index b09f50e4ac..2f41847438 100644 --- a/src/device/oprom/yabel/device.c +++ b/src/device/oprom/yabel/device.c @@ -60,7 +60,7 @@ biosemu_dev_get_addr_info(void) r->index; translate_address_array[taa_index].address = r->base; translate_address_array[taa_index].size = r->size; - /* dont translate addresses... all addresses are 1:1 */ + /* don't translate addresses... all addresses are 1:1 */ translate_address_array[taa_index].address_offset = 0; taa_index++; } @@ -71,7 +71,7 @@ biosemu_dev_get_addr_info(void) translate_address_array[taa_index].cfg_space_offset = 0x30; translate_address_array[taa_index].address = bios_device.img_addr; translate_address_array[taa_index].size = 0; /* TODO: do we need the size? */ - /* dont translate addresses... all addresses are 1:1 */ + /* don't translate addresses... all addresses are 1:1 */ translate_address_array[taa_index].address_offset = 0; taa_index++; /* legacy ranges if its a VGA card... */ @@ -84,7 +84,7 @@ biosemu_dev_get_addr_info(void) translate_address_array[taa_index].cfg_space_offset = 0; translate_address_array[taa_index].address = 0x3b0; translate_address_array[taa_index].size = 0xc; - /* dont translate addresses... all addresses are 1:1 */ + /* don't translate addresses... all addresses are 1:1 */ translate_address_array[taa_index].address_offset = 0; taa_index++; /* I/O 0x3C0-0x3DF */ @@ -94,7 +94,7 @@ biosemu_dev_get_addr_info(void) translate_address_array[taa_index].cfg_space_offset = 0; translate_address_array[taa_index].address = 0x3c0; translate_address_array[taa_index].size = 0x20; - /* dont translate addresses... all addresses are 1:1 */ + /* don't translate addresses... all addresses are 1:1 */ translate_address_array[taa_index].address_offset = 0; taa_index++; /* Mem 0xA0000-0xBFFFF */ @@ -104,7 +104,7 @@ biosemu_dev_get_addr_info(void) translate_address_array[taa_index].cfg_space_offset = 0; translate_address_array[taa_index].address = 0xa0000; translate_address_array[taa_index].size = 0x20000; - /* dont translate addresses... all addresses are 1:1 */ + /* don't translate addresses... all addresses are 1:1 */ translate_address_array[taa_index].address_offset = 0; taa_index++; } @@ -130,7 +130,7 @@ void translate_address_dev(u64 *, phandle_t); u64 get_puid(phandle_t node); -// scan all adresses assigned to the device ("assigned-addresses" and "reg") +// scan all addresses assigned to the device ("assigned-addresses" and "reg") // store in translate_address_array for faster translation using dev_translate_address void biosemu_dev_get_addr_info(void) @@ -171,7 +171,7 @@ biosemu_dev_get_addr_info(void) len = of_getprop(bios_device.phandle, "reg", buf, sizeof(buf)); for (i = 0; i < (len / sizeof(assigned_address_t)); i++) { if ((buf[i].size == 0) || (buf[i].cfg_space_offset != 0)) { - // we dont care for ranges with size 0 and + // we don't care for ranges with size 0 and // BARs and Expansion ROM must be in assigned-addresses... so in reg // we only look for those without config space offset set... // i.e. the legacy ranges @@ -211,7 +211,7 @@ biosemu_dev_get_addr_info(void) // "special memory" is a hack to make some parts of memory fall through to real memory // (ie. no translation). Necessary if option ROMs attempt DMA there, map registers or -// do similarily crazy things. +// do similarly crazy things. void biosemu_add_special_memory(u32 start, u32 size) { @@ -222,7 +222,7 @@ biosemu_add_special_memory(u32 start, u32 size) translate_address_array[taa_index].cfg_space_offset = 0; translate_address_array[taa_index].address = start; translate_address_array[taa_index].size = size; - /* dont translate addresses... all addresses are 1:1 */ + /* don't translate addresses... all addresses are 1:1 */ translate_address_array[taa_index].address_offset = 0; } @@ -443,7 +443,7 @@ biosemu_dev_translate_address(int type, unsigned long * addr) int i = 0; translate_address_t ta; #if !CONFIG_PCI_OPTION_ROM_RUN_YABEL - /* we dont need this hack for coreboot... we can access legacy areas */ + /* we don't need this hack for coreboot... we can access legacy areas */ //check if it is an access to legacy VGA Mem... if it is, map the address //to the vmem BAR and then translate it... // (translation info provided by Ben Herrenschmidt) diff --git a/src/device/oprom/yabel/interrupt.c b/src/device/oprom/yabel/interrupt.c index e5b4a3cff4..cf430be6cd 100644 --- a/src/device/oprom/yabel/interrupt.c +++ b/src/device/oprom/yabel/interrupt.c @@ -243,7 +243,7 @@ handleInt16(void) // since we currently always read the char from the FW buffer, // we misuse the ring buffer, we use it as pointer to a u64 that stores // multi-byte keys (e.g. special keys in VT100 terminal) - // and as long as a key is available (not 0) we dont read further keys + // and as long as a key is available (not 0) we don't read further keys u64 *keycode = (u64 *) (M.mem_base + 0x41e); s8 c; // function number in AH @@ -538,7 +538,7 @@ handleInterrupt(int intNum) DEBUG_PRINTF_INTR("%s(%x)\n", __func__, intNum); #endif - /* check wether this interrupt has a function pointer set in yabel_intFuncArray and run that */ + /* check whether this interrupt has a function pointer set in yabel_intFuncArray and run that */ if (yabel_intFuncArray[intNum]) { DEBUG_PRINTF_INTR("%s(%x) intHandler overridden, calling it...\n", __func__, intNum); int_handled = (*yabel_intFuncArray[intNum])(); diff --git a/src/device/oprom/yabel/io.c b/src/device/oprom/yabel/io.c index d1172dc743..94f610debd 100644 --- a/src/device/oprom/yabel/io.c +++ b/src/device/oprom/yabel/io.c @@ -188,7 +188,7 @@ my_inb(X86EMU_pioAddr addr) unsigned long translated_addr = addr; u8 translated = biosemu_dev_translate_address(IORESOURCE_IO, &translated_addr); if (translated != 0) { - //translation successfull, access Device I/O (BAR or Legacy...) + //translation successful, access Device I/O (BAR or Legacy...) DEBUG_PRINTF_IO("%s(%x): access to Device I/O\n", __func__, addr); //DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __func__, addr, translated_addr); @@ -238,7 +238,7 @@ my_inw(X86EMU_pioAddr addr) unsigned long translated_addr = addr; u8 translated = biosemu_dev_translate_address(IORESOURCE_IO, &translated_addr); if (translated != 0) { - //translation successfull, access Device I/O (BAR or Legacy...) + //translation successful, access Device I/O (BAR or Legacy...) DEBUG_PRINTF_IO("%s(%x): access to Device I/O\n", __func__, addr); //DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __func__, addr, translated_addr); @@ -283,7 +283,7 @@ my_inl(X86EMU_pioAddr addr) unsigned long translated_addr = addr; u8 translated = biosemu_dev_translate_address(IORESOURCE_IO, &translated_addr); if (translated != 0) { - //translation successfull, access Device I/O (BAR or Legacy...) + //translation successful, access Device I/O (BAR or Legacy...) DEBUG_PRINTF_IO("%s(%x): access to Device I/O\n", __func__, addr); //DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __func__, addr, translated_addr); @@ -329,7 +329,7 @@ my_outb(X86EMU_pioAddr addr, u8 val) unsigned long translated_addr = addr; u8 translated = biosemu_dev_translate_address(IORESOURCE_IO, &translated_addr); if (translated != 0) { - //translation successfull, access Device I/O (BAR or Legacy...) + //translation successful, access Device I/O (BAR or Legacy...) DEBUG_PRINTF_IO("%s(%x, %x): access to Device I/O\n", __func__, addr, val); //DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __func__, addr, translated_addr); @@ -361,7 +361,7 @@ my_outw(X86EMU_pioAddr addr, u16 val) unsigned long translated_addr = addr; u8 translated = biosemu_dev_translate_address(IORESOURCE_IO, &translated_addr); if (translated != 0) { - //translation successfull, access Device I/O (BAR or Legacy...) + //translation successful, access Device I/O (BAR or Legacy...) DEBUG_PRINTF_IO("%s(%x, %x): access to Device I/O\n", __func__, addr, val); //DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __func__, addr, translated_addr); @@ -402,7 +402,7 @@ my_outl(X86EMU_pioAddr addr, u32 val) unsigned long translated_addr = addr; u8 translated = biosemu_dev_translate_address(IORESOURCE_IO, &translated_addr); if (translated != 0) { - //translation successfull, access Device I/O (BAR or Legacy...) + //translation successful, access Device I/O (BAR or Legacy...) DEBUG_PRINTF_IO("%s(%x, %x): access to Device I/O\n", __func__, addr, val); //DEBUG_PRINTF_IO("%s(%04x): translated_addr: %llx\n", __func__, addr, translated_addr); diff --git a/src/device/oprom/yabel/mem.c b/src/device/oprom/yabel/mem.c index 4b4a552813..a7d0289d71 100644 --- a/src/device/oprom/yabel/mem.c +++ b/src/device/oprom/yabel/mem.c @@ -177,7 +177,7 @@ static inline void DEBUG_CHECK_VMEM_WRITE(u32 _addr, u32 _val) {}; static void update_time(u32 cur_val) { - //for convenience, we let the start of timebase be at midnight, we currently dont support + //for convenience, we let the start of timebase be at midnight, we currently don't support //real daytime anyway... u64 ticks_per_day = tb_freq * 60 * 24; // at 18Hz a period is ~55ms, converted to ticks (tb_freq is ticks/second) @@ -202,7 +202,7 @@ my_rdb(u32 addr) u8 translated = biosemu_dev_translate_address(IORESOURCE_MEM, &translated_addr); u8 rval; if (translated != 0) { - //translation successfull, access VGA Memory (BAR or Legacy...) + //translation successful, access VGA Memory (BAR or Legacy...) DEBUG_PRINTF_MEM("%s(%08x): access to VGA Memory\n", __func__, addr); //DEBUG_PRINTF_MEM("%s(%08x): translated_addr: %llx\n", __func__, addr, translated_addr); @@ -234,7 +234,7 @@ my_rdw(u32 addr) u8 translated = biosemu_dev_translate_address(IORESOURCE_MEM, &translated_addr); u16 rval; if (translated != 0) { - //translation successfull, access VGA Memory (BAR or Legacy...) + //translation successful, access VGA Memory (BAR or Legacy...) DEBUG_PRINTF_MEM("%s(%08x): access to VGA Memory\n", __func__, addr); //DEBUG_PRINTF_MEM("%s(%08x): translated_addr: %llx\n", __func__, addr, translated_addr); @@ -285,7 +285,7 @@ my_rdl(u32 addr) u8 translated = biosemu_dev_translate_address(IORESOURCE_MEM, &translated_addr); u32 rval; if (translated != 0) { - //translation successfull, access VGA Memory (BAR or Legacy...) + //translation successful, access VGA Memory (BAR or Legacy...) DEBUG_PRINTF_MEM("%s(%x): access to VGA Memory\n", __func__, addr); //DEBUG_PRINTF_MEM("%s(%08x): translated_addr: %llx\n", __func__, addr, translated_addr); diff --git a/src/device/oprom/yabel/pmm.c b/src/device/oprom/yabel/pmm.c index 19d14d46b6..d6c528d1dc 100644 --- a/src/device/oprom/yabel/pmm.c +++ b/src/device/oprom/yabel/pmm.c @@ -222,7 +222,7 @@ void pmm_handleInt() DEBUG_PRINTF_PMM("%s: pmmDeallocate: PMM segment offset: %x\n", __func__, buffer); i = 0; - /* rval = 0 means we deallocated the buffer, so set it to 1 in case we dont find it and + /* rval = 0 means we deallocated the buffer, so set it to 1 in case we don't find it and * thus cannot deallocate */ rval = 1; diff --git a/src/device/oprom/yabel/pmm.h b/src/device/oprom/yabel/pmm.h index 3cc3c17ac6..6416c118f0 100644 --- a/src/device/oprom/yabel/pmm.h +++ b/src/device/oprom/yabel/pmm.h @@ -24,9 +24,9 @@ typedef struct { u8 checksum; u32 entry_point_offset; u8 reserved[5]; - /* Code is not part of the speced PMM struct, however, since I cannot - * put the handling of PMM in the virtual memory (I dont want to hack it - * together in x86 assembly ;-)) this code array is pointed to by + /* Code is not part of the specced PMM struct, however, since I cannot + * put the handling of PMM in the virtual memory (I don't want to hack + * it together in x86 assembly ;-)) this code array is pointed to by * entry_point_offset, in code there is only a INT call and a RETF, * thus every PMM call will issue a PMM INT (only defined in YABEL, * see interrupt.c) and the INT Handler will do the actual PMM work. diff --git a/src/device/oprom/yabel/vbe.c b/src/device/oprom/yabel/vbe.c index 5952dae568..8658b7747b 100644 --- a/src/device/oprom/yabel/vbe.c +++ b/src/device/oprom/yabel/vbe.c @@ -103,7 +103,7 @@ vbe_info(vbe_info_t * info) // offset 4: 16bit le containing VbeVersion info->version = in16le(vbe_info_buffer + 4); - // offset 6: 32bit le containg segment:offset of OEM String in virtual Mem. + // offset 6: 32bit le containing segment:offset of OEM String in virtual Mem. info->oem_string_ptr = biosmem + ((in16le(vbe_info_buffer + 8) << 4) + in16le(vbe_info_buffer + 6)); @@ -457,7 +457,7 @@ vbe_get_info(void) // as input, it must contain a screen_info_input_t with the following content: // byte[0:3] = "DDC\0" (zero-terminated signature header) // byte[4:5] = reserved space for the return struct... just in case we ever change - // the struct and dont have reserved enough memory (and let's hope the struct + // the struct and don't have reserved enough memory (and let's hope the struct // never gets larger than 64KB) // byte[6] = monitor port number for DDC requests ("only" one byte... so lets hope we never have more than 255 monitors... // byte[7:8] = max. screen width (OF may want to limit this) |