sys/boot: spelling fixes in comments.
No functional change.
This commit is contained in:
parent
c41df40133
commit
5d708ee940
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298826
@ -41,7 +41,7 @@ static int currentOffset;
|
||||
/*
|
||||
* .KB_C_FN_DEFINITION_START
|
||||
* int ReadCharFromEnvironment(char *)
|
||||
* This private function reads characters from the enviroment variables
|
||||
* This private function reads characters from the environment variables
|
||||
* to service the command prompt during auto-boot or just to setup the
|
||||
* default environment. Returns positive value if valid character was
|
||||
* set in the pointer. Returns negative value to signal input stream
|
||||
|
@ -41,7 +41,7 @@ static int currentOffset;
|
||||
/*
|
||||
* .KB_C_FN_DEFINITION_START
|
||||
* int ReadCharFromEnvironment(char *)
|
||||
* This private function reads characters from the enviroment variables
|
||||
* This private function reads characters from the environment variables
|
||||
* to service the command prompt during auto-boot or just to setup the
|
||||
* default environment. Returns positive value if valid character was
|
||||
* set in the pointer. Returns negative value to signal input stream
|
||||
|
@ -474,7 +474,7 @@ typedef struct _AT91S_ST {
|
||||
#define AT91C_ST_CRTV (0xFFFFFu << 0) // (ST) Current Real-time Value
|
||||
|
||||
// *****************************************************************************
|
||||
// SOFTWARE API DEFINITION FOR Power Management Controler
|
||||
// SOFTWARE API DEFINITION FOR Power Management Controller
|
||||
// *****************************************************************************
|
||||
typedef struct _AT91S_PMC {
|
||||
AT91_REG PMC_SCER; // System Clock Enable Register
|
||||
@ -547,7 +547,7 @@ typedef struct _AT91S_PMC {
|
||||
// -------- PMC_IMR : (PMC Offset: 0x6c) PMC Interrupt Mask Register --------
|
||||
|
||||
// *****************************************************************************
|
||||
// SOFTWARE API DEFINITION FOR Clock Generator Controler
|
||||
// SOFTWARE API DEFINITION FOR Clock Generator Controller
|
||||
// *****************************************************************************
|
||||
typedef struct _AT91S_CKGR {
|
||||
AT91_REG CKGR_MOR; // Main Oscillator Register
|
||||
@ -590,7 +590,7 @@ typedef struct _AT91S_CKGR {
|
||||
#define AT91C_CKGR_USB_PLL (0x1u << 29) // (CKGR) PLL Use
|
||||
|
||||
// *****************************************************************************
|
||||
// SOFTWARE API DEFINITION FOR Parallel Input Output Controler
|
||||
// SOFTWARE API DEFINITION FOR Parallel Input Output Controller
|
||||
// *****************************************************************************
|
||||
typedef struct _AT91S_PIO {
|
||||
AT91_REG PIO_PER; // PIO Enable Register
|
||||
|
@ -106,15 +106,15 @@ typedef struct _AT91S_MciDevice
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
#define AT91C_CMD_SEND_OK 0 // Command ok
|
||||
#define AT91C_CMD_SEND_ERROR -1 // Command failed
|
||||
#define AT91C_INIT_OK 2 // Init Successfull
|
||||
#define AT91C_INIT_OK 2 // Init Successful
|
||||
#define AT91C_INIT_ERROR 3 // Init Failed
|
||||
#define AT91C_READ_OK 4 // Read Successfull
|
||||
#define AT91C_READ_OK 4 // Read Successful
|
||||
#define AT91C_READ_ERROR 5 // Read Failed
|
||||
#define AT91C_WRITE_OK 6 // Write Successfull
|
||||
#define AT91C_WRITE_OK 6 // Write Successful
|
||||
#define AT91C_WRITE_ERROR 7 // Write Failed
|
||||
#define AT91C_ERASE_OK 8 // Erase Successfull
|
||||
#define AT91C_ERASE_OK 8 // Erase Successful
|
||||
#define AT91C_ERASE_ERROR 9 // Erase Failed
|
||||
#define AT91C_CARD_SELECTED_OK 10 // Card Selection Successfull
|
||||
#define AT91C_CARD_SELECTED_OK 10 // Card Selection Successful
|
||||
#define AT91C_CARD_SELECTED_ERROR 11 // Card Selection Failed
|
||||
|
||||
#define AT91C_MCI_SR_ERROR (AT91C_MCI_UNRE | AT91C_MCI_OVRE | AT91C_MCI_DTOE | \
|
||||
|
@ -103,8 +103,8 @@ nodes_match(EFI_DEVICE_PATH *imgpath, EFI_DEVICE_PATH *devpath)
|
||||
|
||||
/*
|
||||
* device_paths_match returns TRUE if the imgpath isn't NULL and all nodes
|
||||
* in imgpath and devpath match up to their respect occurances of a media
|
||||
* node, FALSE otherwise.
|
||||
* in imgpath and devpath match up to their respective occurrences of a
|
||||
* media node, FALSE otherwise.
|
||||
*/
|
||||
static BOOLEAN
|
||||
device_paths_match(EFI_DEVICE_PATH *imgpath, EFI_DEVICE_PATH *devpath)
|
||||
|
@ -238,7 +238,7 @@ typedef uint64_t UINTN;
|
||||
#else // EFI_NT_EMULATOR
|
||||
|
||||
//
|
||||
// When build similiar to FW, then link everything together as
|
||||
// When building similar to FW, link everything together as
|
||||
// one big module.
|
||||
//
|
||||
|
||||
|
@ -34,7 +34,7 @@ Module Name:
|
||||
|
||||
|
||||
//
|
||||
// Make sure we are useing the correct packing rules per EFI specification
|
||||
// Make sure we are using the correct packing rules per EFI specification
|
||||
//
|
||||
#ifndef __GNUC__
|
||||
#pragma pack()
|
||||
|
@ -176,7 +176,7 @@ typedef uint64_t UINTN;
|
||||
#define VOLATILE volatile
|
||||
|
||||
//
|
||||
// BugBug: Need to find out if this is portable accross compliers.
|
||||
// BugBug: Need to find out if this is portable across compilers.
|
||||
//
|
||||
void __mfa (void);
|
||||
#define MEMORY_FENCE() __mfa()
|
||||
@ -190,7 +190,7 @@ void __mfa (void);
|
||||
#endif
|
||||
|
||||
//
|
||||
// When build similiar to FW, then link everything together as
|
||||
// When build similar to FW, then link everything together as
|
||||
// one big module.
|
||||
//
|
||||
|
||||
|
@ -139,7 +139,7 @@ typedef enum {
|
||||
|
||||
@retval EFI_SUCCESS - The Blt operation completed.
|
||||
@retval EFI_INVALID_PARAMETER - BltOperation is not valid.
|
||||
@retval EFI_DEVICE_ERROR - A hardware error occured writting to the video buffer.
|
||||
@retval EFI_DEVICE_ERROR - A hardware error occurred writting to the video buffer.
|
||||
|
||||
--*/
|
||||
typedef
|
||||
|
@ -234,7 +234,7 @@ typedef uint32_t UINTN;
|
||||
#else // EFI_NT_EMULATOR
|
||||
|
||||
//
|
||||
// When build similiar to FW, then link everything together as
|
||||
// When build similar to FW, then link everything together as
|
||||
// one big module.
|
||||
//
|
||||
|
||||
|
@ -74,7 +74,7 @@ static void efi_zfs_probe(void);
|
||||
|
||||
/*
|
||||
* Need this because EFI uses UTF-16 unicode string constants, but we
|
||||
* use UTF-8. We can't use printf due to the possiblity of \0 and we
|
||||
* use UTF-8. We can't use printf due to the possibility of \0 and we
|
||||
* don't support support wide characters either.
|
||||
*/
|
||||
static void
|
||||
|
@ -158,7 +158,7 @@ fdt_find_static_dtb()
|
||||
}
|
||||
|
||||
/*
|
||||
* The most efficent way to find a symbol would be to calculate a
|
||||
* The most efficient way to find a symbol would be to calculate a
|
||||
* hash, find proper bucket and chain, and thus find a symbol.
|
||||
* However, that would involve code duplication (e.g. for hash
|
||||
* function). So we're using simpler and a bit slower way: we're
|
||||
@ -652,7 +652,7 @@ fdt_fixup_memory(struct fdt_mem_region *region, size_t num)
|
||||
if (fdt_get_mem_rsv(fdtp, i, &rstart, &rsize))
|
||||
break;
|
||||
if (rsize) {
|
||||
/* Ensure endianess, and put cells into a buffer */
|
||||
/* Ensure endianness, and put cells into a buffer */
|
||||
if (addr_cells == 2)
|
||||
*(uint64_t *)buf =
|
||||
cpu_to_fdt64(rstart);
|
||||
@ -701,7 +701,7 @@ fdt_fixup_memory(struct fdt_mem_region *region, size_t num)
|
||||
for (i = 0; i < num; i++) {
|
||||
curmr = ®ion[i];
|
||||
if (curmr->size != 0) {
|
||||
/* Ensure endianess, and put cells into a buffer */
|
||||
/* Ensure endianness, and put cells into a buffer */
|
||||
if (addr_cells == 2)
|
||||
*(uint64_t *)buf =
|
||||
cpu_to_fdt64(curmr->start);
|
||||
|
@ -53,7 +53,7 @@ uint32_t dcons_paddr;
|
||||
* that is mapped at the very early boot state.
|
||||
* - We expect identiy map only for regions before KERNLOAD
|
||||
* (i386:4MB amd64:1MB).
|
||||
* - It seems that heap in conventional memory(640KB) is not sufficent
|
||||
* - It seems that heap in conventional memory(640KB) is not sufficient
|
||||
* and we move it to high address as LOADER_SUPPORT_BZIP2.
|
||||
* - BSS is placed in conventional memory.
|
||||
*/
|
||||
|
@ -217,7 +217,7 @@ fwohci_reset(struct fwohci_softc *sc, device_t dev)
|
||||
/* Disable interrupts */
|
||||
OWRITE(sc, FWOHCI_INTMASKCLR, ~0);
|
||||
|
||||
/* FLUSH FIFO and reset Transmitter/Reciever */
|
||||
/* FLUSH FIFO and reset Transmitter/Receiver */
|
||||
OWRITE(sc, OHCI_HCCCTL, OHCI_HCC_RESET);
|
||||
if (firewire_debug)
|
||||
device_printf(dev, "resetting OHCI...");
|
||||
@ -297,7 +297,7 @@ fwohci_init(struct fwohci_softc *sc, device_t dev)
|
||||
return (ENXIO);
|
||||
|
||||
#if 0
|
||||
/* SID recieve buffer must align 2^11 */
|
||||
/* SID receive buffer must align 2^11 */
|
||||
#define OHCI_SIDSIZE (1 << 11)
|
||||
sc->sid_buf = fwdma_malloc(&sc->fc, OHCI_SIDSIZE, OHCI_SIDSIZE,
|
||||
&sc->sid_dma, BUS_DMA_WAITOK);
|
||||
|
@ -96,7 +96,7 @@ amd64_tramp:
|
||||
orl $CR0_PG, %eax
|
||||
movl %eax, %cr0
|
||||
|
||||
/* Now we're in compatability mode. set %cs for long mode */
|
||||
/* Now we're in compatibility mode. set %cs for long mode */
|
||||
movl $VTOP(gdtdesc), %eax
|
||||
movl VTOP(entry_hi), %esi
|
||||
movl VTOP(entry_lo), %edi
|
||||
|
@ -226,7 +226,7 @@ typedef struct {
|
||||
#define PXENV_UNDI_SET_STATION_ADDRESS 0x000A
|
||||
typedef struct {
|
||||
PXENV_STATUS_t Status;
|
||||
MAC_ADDR StationAddress; /* Temp MAC addres to use */
|
||||
MAC_ADDR StationAddress; /* Temp MAC address to use */
|
||||
} PACKED t_PXENV_UNDI_SET_STATION_ADDR;
|
||||
|
||||
#define PXENV_UNDI_SET_PACKET_FILTER 0x000B
|
||||
@ -330,7 +330,7 @@ typedef struct {
|
||||
PXENV_STATUS_t Status;
|
||||
uint16_t FuncFlag; /* PXENV_UNDI_ISR_OUT_xxx */
|
||||
uint16_t BufferLength; /* Length of Frame */
|
||||
uint16_t FrameLength; /* Total length of reciever frame */
|
||||
uint16_t FrameLength; /* Total length of receiver frame */
|
||||
uint16_t FrameHeaderLength; /* Length of the media header in Frame */
|
||||
SEGOFF16_t Frame; /* receive buffer */
|
||||
uint8_t ProtType; /* Protocol type */
|
||||
@ -344,7 +344,7 @@ typedef struct {
|
||||
# define PXENV_UNDI_ISR_OUT_NOT_OUTS 1
|
||||
|
||||
/*
|
||||
* one of these will bre returnd for PXEND_UNDI_ISR_IN_PROCESS
|
||||
* one of these will bre returned for PXEND_UNDI_ISR_IN_PROCESS
|
||||
* and PXENV_UNDI_ISR_IN_GET_NEXT
|
||||
*/
|
||||
# define PXENV_UNDI_ISR_OUT_DONE 0
|
||||
|
@ -451,7 +451,7 @@ probe_drive(struct dsk *dsk)
|
||||
}
|
||||
|
||||
/*
|
||||
* Probe all GPT partitions for the presense of ZFS pools. We
|
||||
* Probe all GPT partitions for the presence of ZFS pools. We
|
||||
* return the spa_t for the first we find (if requested). This
|
||||
* will have the effect of booting from the first pool on the
|
||||
* disk.
|
||||
|
@ -98,7 +98,7 @@ main(int (*openfirm)(void *))
|
||||
char **bargv;
|
||||
|
||||
/*
|
||||
* Initalise the Open Firmware routines by giving them the entry point.
|
||||
* Initialise the Open Firmware routines by giving them the entry point.
|
||||
*/
|
||||
OF_init(openfirm);
|
||||
|
||||
|
@ -249,7 +249,7 @@ scsi_loop:
|
||||
movb %ah, %bl
|
||||
shlw %bx
|
||||
shlw %bx
|
||||
addw $0x460, %bx # SCSI paramter block
|
||||
addw $0x460, %bx # SCSI parameter block
|
||||
call read_biosparam
|
||||
orb %dl, %dl
|
||||
jz no_scsi_unit
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
#
|
||||
# Display string with Shift-JIS support
|
||||
# %si: addres of string, %di: T-VRAM address, %cx: count
|
||||
# %si: address of string, %di: T-VRAM address, %cx: count
|
||||
#
|
||||
|
||||
# Absolute address of putssjis_entry must be 0x1243.
|
||||
|
@ -55,7 +55,7 @@ read_biosparam:
|
||||
ret
|
||||
|
||||
#
|
||||
# Write one byte to BIOS paramter block
|
||||
# Write one byte to BIOS parameter block
|
||||
# %bx offset
|
||||
# %dl value
|
||||
#
|
||||
|
@ -157,7 +157,7 @@ fdt_platform_fixups(void)
|
||||
|
||||
if (n != 0) {
|
||||
/*
|
||||
* Find the lenght of the interface id by
|
||||
* Find the length of the interface id by
|
||||
* taking in to account the first 3 and
|
||||
* last 4 characters.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user