VirtualBox

Changeset 48947 in vbox for trunk/src/VBox/Devices/EFI


Ignore:
Timestamp:
Oct 7, 2013 9:41:00 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89644
Message:

Devices: Whitespace and svn:keyword cleanups by scm.

Location:
trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/Library/VBoxPeCoffLib/BasePeCoff.c

    r48674 r48947  
    734734      Reloc     = (UINT16 *) ((CHAR8 *) RelocBase + sizeof (EFI_IMAGE_BASE_RELOCATION));
    735735      RelocEnd  = (UINT16 *) ((CHAR8 *) RelocBase + RelocBase->SizeOfBlock);
    736      
     736
    737737      //
    738738      // Make sure RelocEnd is in the Image range.
     
    755755                      Hdr.Te->StrippedSize
    756756                      );
    757       }   
     757      }
    758758
    759759      //
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/PartitionDxe/Partition.c

    r48730 r48947  
    824824                              replaced.
    825825  @param[in]       Lba        The starting Logical Block Address to read from.
    826   @param[in, out]  Token            A pointer to the token associated with the transaction.
     826  @param[in, out]  Token            A pointer to the token associated with the transaction.
    827827  @param[in]       BufferSize Size of Buffer, must be a multiple of device block size.
    828828  @param[out]      Buffer     A pointer to the destination buffer for the data. The
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxFsDxe/fsw_core.h

    r48674 r48947  
    499499#ifndef S_IRWXU
    500500
    501 #define S_ISUID 0004000                 /* set user id on execution */
    502 #define S_ISGID 0002000                 /* set group id on execution */
    503 #define S_ISTXT 0001000                 /* sticky bit */
    504 
    505 #define S_IRWXU 0000700                 /* RWX mask for owner */
    506 #define S_IRUSR 0000400                 /* R for owner */
    507 #define S_IWUSR 0000200                 /* W for owner */
    508 #define S_IXUSR 0000100                 /* X for owner */
    509 
    510 #define S_IRWXG 0000070                 /* RWX mask for group */
    511 #define S_IRGRP 0000040                 /* R for group */
    512 #define S_IWGRP 0000020                 /* W for group */
    513 #define S_IXGRP 0000010                 /* X for group */
    514 
    515 #define S_IRWXO 0000007                 /* RWX mask for other */
    516 #define S_IROTH 0000004                 /* R for other */
    517 #define S_IWOTH 0000002                 /* W for other */
    518 #define S_IXOTH 0000001                 /* X for other */
    519 
    520 #define S_IFMT   0170000                /* type of file mask */
    521 #define S_IFIFO  0010000                /* named pipe (fifo) */
    522 #define S_IFCHR  0020000                /* character special */
    523 #define S_IFDIR  0040000                /* directory */
    524 #define S_IFBLK  0060000                /* block special */
    525 #define S_IFREG  0100000                /* regular */
    526 #define S_IFLNK  0120000                /* symbolic link */
    527 #define S_IFSOCK 0140000                /* socket */
    528 #define S_ISVTX  0001000                /* save swapped text even after use */
    529 #define S_IFWHT  0160000                /* whiteout */
    530 
    531 #define S_ISDIR(m)      (((m) & 0170000) == 0040000)    /* directory */
    532 #define S_ISCHR(m)      (((m) & 0170000) == 0020000)    /* char special */
    533 #define S_ISBLK(m)      (((m) & 0170000) == 0060000)    /* block special */
    534 #define S_ISREG(m)      (((m) & 0170000) == 0100000)    /* regular file */
    535 #define S_ISFIFO(m)     (((m) & 0170000) == 0010000)    /* fifo or socket */
    536 #define S_ISLNK(m)      (((m) & 0170000) == 0120000)    /* symbolic link */
    537 #define S_ISSOCK(m)     (((m) & 0170000) == 0140000)    /* socket */
    538 #define S_ISWHT(m)      (((m) & 0170000) == 0160000)    /* whiteout */
    539 
    540 #define S_BLKSIZE       512             /* block size used in the stat struct */
    541 
    542 #endif
    543 /*@}*/
    544 
    545 
    546 #endif
     501#define S_ISUID 0004000                 /* set user id on execution */
     502#define S_ISGID 0002000                 /* set group id on execution */
     503#define S_ISTXT 0001000                 /* sticky bit */
     504
     505#define S_IRWXU 0000700                 /* RWX mask for owner */
     506#define S_IRUSR 0000400                 /* R for owner */
     507#define S_IWUSR 0000200                 /* W for owner */
     508#define S_IXUSR 0000100                 /* X for owner */
     509
     510#define S_IRWXG 0000070                 /* RWX mask for group */
     511#define S_IRGRP 0000040                 /* R for group */
     512#define S_IWGRP 0000020                 /* W for group */
     513#define S_IXGRP 0000010                 /* X for group */
     514
     515#define S_IRWXO 0000007                 /* RWX mask for other */
     516#define S_IROTH 0000004                 /* R for other */
     517#define S_IWOTH 0000002                 /* W for other */
     518#define S_IXOTH 0000001                 /* X for other */
     519
     520#define S_IFMT   0170000                /* type of file mask */
     521#define S_IFIFO  0010000                /* named pipe (fifo) */
     522#define S_IFCHR  0020000                /* character special */
     523#define S_IFDIR  0040000                /* directory */
     524#define S_IFBLK  0060000                /* block special */
     525#define S_IFREG  0100000                /* regular */
     526#define S_IFLNK  0120000                /* symbolic link */
     527#define S_IFSOCK 0140000                /* socket */
     528#define S_ISVTX  0001000                /* save swapped text even after use */
     529#define S_IFWHT  0160000                /* whiteout */
     530
     531#define S_ISDIR(m)      (((m) & 0170000) == 0040000)    /* directory */
     532#define S_ISCHR(m)      (((m) & 0170000) == 0020000)    /* char special */
     533#define S_ISBLK(m)      (((m) & 0170000) == 0060000)    /* block special */
     534#define S_ISREG(m)      (((m) & 0170000) == 0100000)    /* regular file */
     535#define S_ISFIFO(m)     (((m) & 0170000) == 0010000)    /* fifo or socket */
     536#define S_ISLNK(m)      (((m) & 0170000) == 0120000)    /* symbolic link */
     537#define S_ISSOCK(m)     (((m) & 0170000) == 0140000)    /* socket */
     538#define S_ISWHT(m)      (((m) & 0170000) == 0160000)    /* whiteout */
     539
     540#define S_BLKSIZE       512             /* block size used in the stat struct */
     541
     542#endif
     543/*@}*/
     544
     545
     546#endif
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxFsDxe/fsw_lib.c

    r48674 r48947  
    113113    /* High-byte indices ( == 0 iff no case mapping and no ignorables ) */
    114114
    115     /* 0 */     0x0000, 0x0100, 0x0000, 0x0200, 0x0300, 0x0400, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    116     /* 1 */     0x0500, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    117     /* 2 */     0x0600, 0x0700, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    118     /* 3 */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    119     /* 4 */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    120     /* 5 */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    121     /* 6 */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    122     /* 7 */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    123     /* 8 */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    124     /* 9 */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    125     /* A */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    126     /* B */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    127     /* C */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    128     /* D */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    129     /* E */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    130     /* F */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0800, 0x0900,
     115    /* 0 */     0x0000, 0x0100, 0x0000, 0x0200, 0x0300, 0x0400, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
     116    /* 1 */     0x0500, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
     117    /* 2 */     0x0600, 0x0700, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
     118    /* 3 */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
     119    /* 4 */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
     120    /* 5 */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
     121    /* 6 */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
     122    /* 7 */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
     123    /* 8 */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
     124    /* 9 */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
     125    /* A */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
     126    /* B */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
     127    /* C */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
     128    /* D */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
     129    /* E */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
     130    /* F */     0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0800, 0x0900,
    131131
    132132    /* Table 1 (for high byte 0x01) */
    133133
    134     /* 0 */     0x0100, 0x0101, 0x0102, 0x0103, 0x0104, 0x0105, 0x0106, 0x0107, 0x0108, 0x0109, 0x010A, 0x010B, 0x010C, 0x010D, 0x010E, 0x010F,
    135     /* 1 */     0x0111, 0x0111, 0x0112, 0x0113, 0x0114, 0x0115, 0x0116, 0x0117, 0x0118, 0x0119, 0x011A, 0x011B, 0x011C, 0x011D, 0x011E, 0x011F,
    136     /* 2 */     0x0120, 0x0121, 0x0122, 0x0123, 0x0124, 0x0125, 0x0127, 0x0127, 0x0128, 0x0129, 0x012A, 0x012B, 0x012C, 0x012D, 0x012E, 0x012F,
    137     /* 3 */     0x0130, 0x0131, 0x0133, 0x0133, 0x0134, 0x0135, 0x0136, 0x0137, 0x0138, 0x0139, 0x013A, 0x013B, 0x013C, 0x013D, 0x013E, 0x0140,
    138     /* 4 */     0x0140, 0x0142, 0x0142, 0x0143, 0x0144, 0x0145, 0x0146, 0x0147, 0x0148, 0x0149, 0x014B, 0x014B, 0x014C, 0x014D, 0x014E, 0x014F,
    139     /* 5 */     0x0150, 0x0151, 0x0153, 0x0153, 0x0154, 0x0155, 0x0156, 0x0157, 0x0158, 0x0159, 0x015A, 0x015B, 0x015C, 0x015D, 0x015E, 0x015F,
    140     /* 6 */     0x0160, 0x0161, 0x0162, 0x0163, 0x0164, 0x0165, 0x0167, 0x0167, 0x0168, 0x0169, 0x016A, 0x016B, 0x016C, 0x016D, 0x016E, 0x016F,
    141     /* 7 */     0x0170, 0x0171, 0x0172, 0x0173, 0x0174, 0x0175, 0x0176, 0x0177, 0x0178, 0x0179, 0x017A, 0x017B, 0x017C, 0x017D, 0x017E, 0x017F,
    142     /* 8 */     0x0180, 0x0253, 0x0183, 0x0183, 0x0185, 0x0185, 0x0254, 0x0188, 0x0188, 0x0256, 0x0257, 0x018C, 0x018C, 0x018D, 0x01DD, 0x0259,
    143     /* 9 */     0x025B, 0x0192, 0x0192, 0x0260, 0x0263, 0x0195, 0x0269, 0x0268, 0x0199, 0x0199, 0x019A, 0x019B, 0x026F, 0x0272, 0x019E, 0x0275,
    144     /* A */     0x01A0, 0x01A1, 0x01A3, 0x01A3, 0x01A5, 0x01A5, 0x01A6, 0x01A8, 0x01A8, 0x0283, 0x01AA, 0x01AB, 0x01AD, 0x01AD, 0x0288, 0x01AF,
    145     /* B */     0x01B0, 0x028A, 0x028B, 0x01B4, 0x01B4, 0x01B6, 0x01B6, 0x0292, 0x01B9, 0x01B9, 0x01BA, 0x01BB, 0x01BD, 0x01BD, 0x01BE, 0x01BF,
    146     /* C */     0x01C0, 0x01C1, 0x01C2, 0x01C3, 0x01C6, 0x01C6, 0x01C6, 0x01C9, 0x01C9, 0x01C9, 0x01CC, 0x01CC, 0x01CC, 0x01CD, 0x01CE, 0x01CF,
    147     /* D */     0x01D0, 0x01D1, 0x01D2, 0x01D3, 0x01D4, 0x01D5, 0x01D6, 0x01D7, 0x01D8, 0x01D9, 0x01DA, 0x01DB, 0x01DC, 0x01DD, 0x01DE, 0x01DF,
    148     /* E */     0x01E0, 0x01E1, 0x01E2, 0x01E3, 0x01E5, 0x01E5, 0x01E6, 0x01E7, 0x01E8, 0x01E9, 0x01EA, 0x01EB, 0x01EC, 0x01ED, 0x01EE, 0x01EF,
    149     /* F */     0x01F0, 0x01F3, 0x01F3, 0x01F3, 0x01F4, 0x01F5, 0x01F6, 0x01F7, 0x01F8, 0x01F9, 0x01FA, 0x01FB, 0x01FC, 0x01FD, 0x01FE, 0x01FF,
     134    /* 0 */     0x0100, 0x0101, 0x0102, 0x0103, 0x0104, 0x0105, 0x0106, 0x0107, 0x0108, 0x0109, 0x010A, 0x010B, 0x010C, 0x010D, 0x010E, 0x010F,
     135    /* 1 */     0x0111, 0x0111, 0x0112, 0x0113, 0x0114, 0x0115, 0x0116, 0x0117, 0x0118, 0x0119, 0x011A, 0x011B, 0x011C, 0x011D, 0x011E, 0x011F,
     136    /* 2 */     0x0120, 0x0121, 0x0122, 0x0123, 0x0124, 0x0125, 0x0127, 0x0127, 0x0128, 0x0129, 0x012A, 0x012B, 0x012C, 0x012D, 0x012E, 0x012F,
     137    /* 3 */     0x0130, 0x0131, 0x0133, 0x0133, 0x0134, 0x0135, 0x0136, 0x0137, 0x0138, 0x0139, 0x013A, 0x013B, 0x013C, 0x013D, 0x013E, 0x0140,
     138    /* 4 */     0x0140, 0x0142, 0x0142, 0x0143, 0x0144, 0x0145, 0x0146, 0x0147, 0x0148, 0x0149, 0x014B, 0x014B, 0x014C, 0x014D, 0x014E, 0x014F,
     139    /* 5 */     0x0150, 0x0151, 0x0153, 0x0153, 0x0154, 0x0155, 0x0156, 0x0157, 0x0158, 0x0159, 0x015A, 0x015B, 0x015C, 0x015D, 0x015E, 0x015F,
     140    /* 6 */     0x0160, 0x0161, 0x0162, 0x0163, 0x0164, 0x0165, 0x0167, 0x0167, 0x0168, 0x0169, 0x016A, 0x016B, 0x016C, 0x016D, 0x016E, 0x016F,
     141    /* 7 */     0x0170, 0x0171, 0x0172, 0x0173, 0x0174, 0x0175, 0x0176, 0x0177, 0x0178, 0x0179, 0x017A, 0x017B, 0x017C, 0x017D, 0x017E, 0x017F,
     142    /* 8 */     0x0180, 0x0253, 0x0183, 0x0183, 0x0185, 0x0185, 0x0254, 0x0188, 0x0188, 0x0256, 0x0257, 0x018C, 0x018C, 0x018D, 0x01DD, 0x0259,
     143    /* 9 */     0x025B, 0x0192, 0x0192, 0x0260, 0x0263, 0x0195, 0x0269, 0x0268, 0x0199, 0x0199, 0x019A, 0x019B, 0x026F, 0x0272, 0x019E, 0x0275,
     144    /* A */     0x01A0, 0x01A1, 0x01A3, 0x01A3, 0x01A5, 0x01A5, 0x01A6, 0x01A8, 0x01A8, 0x0283, 0x01AA, 0x01AB, 0x01AD, 0x01AD, 0x0288, 0x01AF,
     145    /* B */     0x01B0, 0x028A, 0x028B, 0x01B4, 0x01B4, 0x01B6, 0x01B6, 0x0292, 0x01B9, 0x01B9, 0x01BA, 0x01BB, 0x01BD, 0x01BD, 0x01BE, 0x01BF,
     146    /* C */     0x01C0, 0x01C1, 0x01C2, 0x01C3, 0x01C6, 0x01C6, 0x01C6, 0x01C9, 0x01C9, 0x01C9, 0x01CC, 0x01CC, 0x01CC, 0x01CD, 0x01CE, 0x01CF,
     147    /* D */     0x01D0, 0x01D1, 0x01D2, 0x01D3, 0x01D4, 0x01D5, 0x01D6, 0x01D7, 0x01D8, 0x01D9, 0x01DA, 0x01DB, 0x01DC, 0x01DD, 0x01DE, 0x01DF,
     148    /* E */     0x01E0, 0x01E1, 0x01E2, 0x01E3, 0x01E5, 0x01E5, 0x01E6, 0x01E7, 0x01E8, 0x01E9, 0x01EA, 0x01EB, 0x01EC, 0x01ED, 0x01EE, 0x01EF,
     149    /* F */     0x01F0, 0x01F3, 0x01F3, 0x01F3, 0x01F4, 0x01F5, 0x01F6, 0x01F7, 0x01F8, 0x01F9, 0x01FA, 0x01FB, 0x01FC, 0x01FD, 0x01FE, 0x01FF,
    150150
    151151    /* Table 2 (for high byte 0x03) */
    152152
    153     /* 0 */     0x0300, 0x0301, 0x0302, 0x0303, 0x0304, 0x0305, 0x0306, 0x0307, 0x0308, 0x0309, 0x030A, 0x030B, 0x030C, 0x030D, 0x030E, 0x030F,
    154     /* 1 */     0x0310, 0x0311, 0x0312, 0x0313, 0x0314, 0x0315, 0x0316, 0x0317, 0x0318, 0x0319, 0x031A, 0x031B, 0x031C, 0x031D, 0x031E, 0x031F,
    155     /* 2 */     0x0320, 0x0321, 0x0322, 0x0323, 0x0324, 0x0325, 0x0326, 0x0327, 0x0328, 0x0329, 0x032A, 0x032B, 0x032C, 0x032D, 0x032E, 0x032F,
    156     /* 3 */     0x0330, 0x0331, 0x0332, 0x0333, 0x0334, 0x0335, 0x0336, 0x0337, 0x0338, 0x0339, 0x033A, 0x033B, 0x033C, 0x033D, 0x033E, 0x033F,
    157     /* 4 */     0x0340, 0x0341, 0x0342, 0x0343, 0x0344, 0x0345, 0x0346, 0x0347, 0x0348, 0x0349, 0x034A, 0x034B, 0x034C, 0x034D, 0x034E, 0x034F,
    158     /* 5 */     0x0350, 0x0351, 0x0352, 0x0353, 0x0354, 0x0355, 0x0356, 0x0357, 0x0358, 0x0359, 0x035A, 0x035B, 0x035C, 0x035D, 0x035E, 0x035F,
    159     /* 6 */     0x0360, 0x0361, 0x0362, 0x0363, 0x0364, 0x0365, 0x0366, 0x0367, 0x0368, 0x0369, 0x036A, 0x036B, 0x036C, 0x036D, 0x036E, 0x036F,
    160     /* 7 */     0x0370, 0x0371, 0x0372, 0x0373, 0x0374, 0x0375, 0x0376, 0x0377, 0x0378, 0x0379, 0x037A, 0x037B, 0x037C, 0x037D, 0x037E, 0x037F,
    161     /* 8 */     0x0380, 0x0381, 0x0382, 0x0383, 0x0384, 0x0385, 0x0386, 0x0387, 0x0388, 0x0389, 0x038A, 0x038B, 0x038C, 0x038D, 0x038E, 0x038F,
    162     /* 9 */     0x0390, 0x03B1, 0x03B2, 0x03B3, 0x03B4, 0x03B5, 0x03B6, 0x03B7, 0x03B8, 0x03B9, 0x03BA, 0x03BB, 0x03BC, 0x03BD, 0x03BE, 0x03BF,
    163     /* A */     0x03C0, 0x03C1, 0x03A2, 0x03C3, 0x03C4, 0x03C5, 0x03C6, 0x03C7, 0x03C8, 0x03C9, 0x03AA, 0x03AB, 0x03AC, 0x03AD, 0x03AE, 0x03AF,
    164     /* B */     0x03B0, 0x03B1, 0x03B2, 0x03B3, 0x03B4, 0x03B5, 0x03B6, 0x03B7, 0x03B8, 0x03B9, 0x03BA, 0x03BB, 0x03BC, 0x03BD, 0x03BE, 0x03BF,
    165     /* C */     0x03C0, 0x03C1, 0x03C2, 0x03C3, 0x03C4, 0x03C5, 0x03C6, 0x03C7, 0x03C8, 0x03C9, 0x03CA, 0x03CB, 0x03CC, 0x03CD, 0x03CE, 0x03CF,
    166     /* D */     0x03D0, 0x03D1, 0x03D2, 0x03D3, 0x03D4, 0x03D5, 0x03D6, 0x03D7, 0x03D8, 0x03D9, 0x03DA, 0x03DB, 0x03DC, 0x03DD, 0x03DE, 0x03DF,
    167     /* E */     0x03E0, 0x03E1, 0x03E3, 0x03E3, 0x03E5, 0x03E5, 0x03E7, 0x03E7, 0x03E9, 0x03E9, 0x03EB, 0x03EB, 0x03ED, 0x03ED, 0x03EF, 0x03EF,
    168     /* F */     0x03F0, 0x03F1, 0x03F2, 0x03F3, 0x03F4, 0x03F5, 0x03F6, 0x03F7, 0x03F8, 0x03F9, 0x03FA, 0x03FB, 0x03FC, 0x03FD, 0x03FE, 0x03FF,
     153    /* 0 */     0x0300, 0x0301, 0x0302, 0x0303, 0x0304, 0x0305, 0x0306, 0x0307, 0x0308, 0x0309, 0x030A, 0x030B, 0x030C, 0x030D, 0x030E, 0x030F,
     154    /* 1 */     0x0310, 0x0311, 0x0312, 0x0313, 0x0314, 0x0315, 0x0316, 0x0317, 0x0318, 0x0319, 0x031A, 0x031B, 0x031C, 0x031D, 0x031E, 0x031F,
     155    /* 2 */     0x0320, 0x0321, 0x0322, 0x0323, 0x0324, 0x0325, 0x0326, 0x0327, 0x0328, 0x0329, 0x032A, 0x032B, 0x032C, 0x032D, 0x032E, 0x032F,
     156    /* 3 */     0x0330, 0x0331, 0x0332, 0x0333, 0x0334, 0x0335, 0x0336, 0x0337, 0x0338, 0x0339, 0x033A, 0x033B, 0x033C, 0x033D, 0x033E, 0x033F,
     157    /* 4 */     0x0340, 0x0341, 0x0342, 0x0343, 0x0344, 0x0345, 0x0346, 0x0347, 0x0348, 0x0349, 0x034A, 0x034B, 0x034C, 0x034D, 0x034E, 0x034F,
     158    /* 5 */     0x0350, 0x0351, 0x0352, 0x0353, 0x0354, 0x0355, 0x0356, 0x0357, 0x0358, 0x0359, 0x035A, 0x035B, 0x035C, 0x035D, 0x035E, 0x035F,
     159    /* 6 */     0x0360, 0x0361, 0x0362, 0x0363, 0x0364, 0x0365, 0x0366, 0x0367, 0x0368, 0x0369, 0x036A, 0x036B, 0x036C, 0x036D, 0x036E, 0x036F,
     160    /* 7 */     0x0370, 0x0371, 0x0372, 0x0373, 0x0374, 0x0375, 0x0376, 0x0377, 0x0378, 0x0379, 0x037A, 0x037B, 0x037C, 0x037D, 0x037E, 0x037F,
     161    /* 8 */     0x0380, 0x0381, 0x0382, 0x0383, 0x0384, 0x0385, 0x0386, 0x0387, 0x0388, 0x0389, 0x038A, 0x038B, 0x038C, 0x038D, 0x038E, 0x038F,
     162    /* 9 */     0x0390, 0x03B1, 0x03B2, 0x03B3, 0x03B4, 0x03B5, 0x03B6, 0x03B7, 0x03B8, 0x03B9, 0x03BA, 0x03BB, 0x03BC, 0x03BD, 0x03BE, 0x03BF,
     163    /* A */     0x03C0, 0x03C1, 0x03A2, 0x03C3, 0x03C4, 0x03C5, 0x03C6, 0x03C7, 0x03C8, 0x03C9, 0x03AA, 0x03AB, 0x03AC, 0x03AD, 0x03AE, 0x03AF,
     164    /* B */     0x03B0, 0x03B1, 0x03B2, 0x03B3, 0x03B4, 0x03B5, 0x03B6, 0x03B7, 0x03B8, 0x03B9, 0x03BA, 0x03BB, 0x03BC, 0x03BD, 0x03BE, 0x03BF,
     165    /* C */     0x03C0, 0x03C1, 0x03C2, 0x03C3, 0x03C4, 0x03C5, 0x03C6, 0x03C7, 0x03C8, 0x03C9, 0x03CA, 0x03CB, 0x03CC, 0x03CD, 0x03CE, 0x03CF,
     166    /* D */     0x03D0, 0x03D1, 0x03D2, 0x03D3, 0x03D4, 0x03D5, 0x03D6, 0x03D7, 0x03D8, 0x03D9, 0x03DA, 0x03DB, 0x03DC, 0x03DD, 0x03DE, 0x03DF,
     167    /* E */     0x03E0, 0x03E1, 0x03E3, 0x03E3, 0x03E5, 0x03E5, 0x03E7, 0x03E7, 0x03E9, 0x03E9, 0x03EB, 0x03EB, 0x03ED, 0x03ED, 0x03EF, 0x03EF,
     168    /* F */     0x03F0, 0x03F1, 0x03F2, 0x03F3, 0x03F4, 0x03F5, 0x03F6, 0x03F7, 0x03F8, 0x03F9, 0x03FA, 0x03FB, 0x03FC, 0x03FD, 0x03FE, 0x03FF,
    169169
    170170    /* Table 3 (for high byte 0x04) */
    171171
    172     /* 0 */     0x0400, 0x0401, 0x0452, 0x0403, 0x0454, 0x0455, 0x0456, 0x0407, 0x0458, 0x0459, 0x045A, 0x045B, 0x040C, 0x040D, 0x040E, 0x045F,
    173     /* 1 */     0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, 0x0438, 0x0419, 0x043A, 0x043B, 0x043C, 0x043D, 0x043E, 0x043F,
    174     /* 2 */     0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, 0x0448, 0x0449, 0x044A, 0x044B, 0x044C, 0x044D, 0x044E, 0x044F,
    175     /* 3 */     0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, 0x0438, 0x0439, 0x043A, 0x043B, 0x043C, 0x043D, 0x043E, 0x043F,
    176     /* 4 */     0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, 0x0448, 0x0449, 0x044A, 0x044B, 0x044C, 0x044D, 0x044E, 0x044F,
    177     /* 5 */     0x0450, 0x0451, 0x0452, 0x0453, 0x0454, 0x0455, 0x0456, 0x0457, 0x0458, 0x0459, 0x045A, 0x045B, 0x045C, 0x045D, 0x045E, 0x045F,
    178     /* 6 */     0x0461, 0x0461, 0x0463, 0x0463, 0x0465, 0x0465, 0x0467, 0x0467, 0x0469, 0x0469, 0x046B, 0x046B, 0x046D, 0x046D, 0x046F, 0x046F,
    179     /* 7 */     0x0471, 0x0471, 0x0473, 0x0473, 0x0475, 0x0475, 0x0476, 0x0477, 0x0479, 0x0479, 0x047B, 0x047B, 0x047D, 0x047D, 0x047F, 0x047F,
    180     /* 8 */     0x0481, 0x0481, 0x0482, 0x0483, 0x0484, 0x0485, 0x0486, 0x0487, 0x0488, 0x0489, 0x048A, 0x048B, 0x048C, 0x048D, 0x048E, 0x048F,
    181     /* 9 */     0x0491, 0x0491, 0x0493, 0x0493, 0x0495, 0x0495, 0x0497, 0x0497, 0x0499, 0x0499, 0x049B, 0x049B, 0x049D, 0x049D, 0x049F, 0x049F,
    182     /* A */     0x04A1, 0x04A1, 0x04A3, 0x04A3, 0x04A5, 0x04A5, 0x04A7, 0x04A7, 0x04A9, 0x04A9, 0x04AB, 0x04AB, 0x04AD, 0x04AD, 0x04AF, 0x04AF,
    183     /* B */     0x04B1, 0x04B1, 0x04B3, 0x04B3, 0x04B5, 0x04B5, 0x04B7, 0x04B7, 0x04B9, 0x04B9, 0x04BB, 0x04BB, 0x04BD, 0x04BD, 0x04BF, 0x04BF,
    184     /* C */     0x04C0, 0x04C1, 0x04C2, 0x04C4, 0x04C4, 0x04C5, 0x04C6, 0x04C8, 0x04C8, 0x04C9, 0x04CA, 0x04CC, 0x04CC, 0x04CD, 0x04CE, 0x04CF,
    185     /* D */     0x04D0, 0x04D1, 0x04D2, 0x04D3, 0x04D4, 0x04D5, 0x04D6, 0x04D7, 0x04D8, 0x04D9, 0x04DA, 0x04DB, 0x04DC, 0x04DD, 0x04DE, 0x04DF,
    186     /* E */     0x04E0, 0x04E1, 0x04E2, 0x04E3, 0x04E4, 0x04E5, 0x04E6, 0x04E7, 0x04E8, 0x04E9, 0x04EA, 0x04EB, 0x04EC, 0x04ED, 0x04EE, 0x04EF,
    187     /* F */     0x04F0, 0x04F1, 0x04F2, 0x04F3, 0x04F4, 0x04F5, 0x04F6, 0x04F7, 0x04F8, 0x04F9, 0x04FA, 0x04FB, 0x04FC, 0x04FD, 0x04FE, 0x04FF,
     172    /* 0 */     0x0400, 0x0401, 0x0452, 0x0403, 0x0454, 0x0455, 0x0456, 0x0407, 0x0458, 0x0459, 0x045A, 0x045B, 0x040C, 0x040D, 0x040E, 0x045F,
     173    /* 1 */     0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, 0x0438, 0x0419, 0x043A, 0x043B, 0x043C, 0x043D, 0x043E, 0x043F,
     174    /* 2 */     0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, 0x0448, 0x0449, 0x044A, 0x044B, 0x044C, 0x044D, 0x044E, 0x044F,
     175    /* 3 */     0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, 0x0438, 0x0439, 0x043A, 0x043B, 0x043C, 0x043D, 0x043E, 0x043F,
     176    /* 4 */     0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, 0x0448, 0x0449, 0x044A, 0x044B, 0x044C, 0x044D, 0x044E, 0x044F,
     177    /* 5 */     0x0450, 0x0451, 0x0452, 0x0453, 0x0454, 0x0455, 0x0456, 0x0457, 0x0458, 0x0459, 0x045A, 0x045B, 0x045C, 0x045D, 0x045E, 0x045F,
     178    /* 6 */     0x0461, 0x0461, 0x0463, 0x0463, 0x0465, 0x0465, 0x0467, 0x0467, 0x0469, 0x0469, 0x046B, 0x046B, 0x046D, 0x046D, 0x046F, 0x046F,
     179    /* 7 */     0x0471, 0x0471, 0x0473, 0x0473, 0x0475, 0x0475, 0x0476, 0x0477, 0x0479, 0x0479, 0x047B, 0x047B, 0x047D, 0x047D, 0x047F, 0x047F,
     180    /* 8 */     0x0481, 0x0481, 0x0482, 0x0483, 0x0484, 0x0485, 0x0486, 0x0487, 0x0488, 0x0489, 0x048A, 0x048B, 0x048C, 0x048D, 0x048E, 0x048F,
     181    /* 9 */     0x0491, 0x0491, 0x0493, 0x0493, 0x0495, 0x0495, 0x0497, 0x0497, 0x0499, 0x0499, 0x049B, 0x049B, 0x049D, 0x049D, 0x049F, 0x049F,
     182    /* A */     0x04A1, 0x04A1, 0x04A3, 0x04A3, 0x04A5, 0x04A5, 0x04A7, 0x04A7, 0x04A9, 0x04A9, 0x04AB, 0x04AB, 0x04AD, 0x04AD, 0x04AF, 0x04AF,
     183    /* B */     0x04B1, 0x04B1, 0x04B3, 0x04B3, 0x04B5, 0x04B5, 0x04B7, 0x04B7, 0x04B9, 0x04B9, 0x04BB, 0x04BB, 0x04BD, 0x04BD, 0x04BF, 0x04BF,
     184    /* C */     0x04C0, 0x04C1, 0x04C2, 0x04C4, 0x04C4, 0x04C5, 0x04C6, 0x04C8, 0x04C8, 0x04C9, 0x04CA, 0x04CC, 0x04CC, 0x04CD, 0x04CE, 0x04CF,
     185    /* D */     0x04D0, 0x04D1, 0x04D2, 0x04D3, 0x04D4, 0x04D5, 0x04D6, 0x04D7, 0x04D8, 0x04D9, 0x04DA, 0x04DB, 0x04DC, 0x04DD, 0x04DE, 0x04DF,
     186    /* E */     0x04E0, 0x04E1, 0x04E2, 0x04E3, 0x04E4, 0x04E5, 0x04E6, 0x04E7, 0x04E8, 0x04E9, 0x04EA, 0x04EB, 0x04EC, 0x04ED, 0x04EE, 0x04EF,
     187    /* F */     0x04F0, 0x04F1, 0x04F2, 0x04F3, 0x04F4, 0x04F5, 0x04F6, 0x04F7, 0x04F8, 0x04F9, 0x04FA, 0x04FB, 0x04FC, 0x04FD, 0x04FE, 0x04FF,
    188188
    189189    /* Table 4 (for high byte 0x05) */
    190190
    191     /* 0 */     0x0500, 0x0501, 0x0502, 0x0503, 0x0504, 0x0505, 0x0506, 0x0507, 0x0508, 0x0509, 0x050A, 0x050B, 0x050C, 0x050D, 0x050E, 0x050F,
    192     /* 1 */     0x0510, 0x0511, 0x0512, 0x0513, 0x0514, 0x0515, 0x0516, 0x0517, 0x0518, 0x0519, 0x051A, 0x051B, 0x051C, 0x051D, 0x051E, 0x051F,
    193     /* 2 */     0x0520, 0x0521, 0x0522, 0x0523, 0x0524, 0x0525, 0x0526, 0x0527, 0x0528, 0x0529, 0x052A, 0x052B, 0x052C, 0x052D, 0x052E, 0x052F,
    194     /* 3 */     0x0530, 0x0561, 0x0562, 0x0563, 0x0564, 0x0565, 0x0566, 0x0567, 0x0568, 0x0569, 0x056A, 0x056B, 0x056C, 0x056D, 0x056E, 0x056F,
    195     /* 4 */     0x0570, 0x0571, 0x0572, 0x0573, 0x0574, 0x0575, 0x0576, 0x0577, 0x0578, 0x0579, 0x057A, 0x057B, 0x057C, 0x057D, 0x057E, 0x057F,
    196     /* 5 */     0x0580, 0x0581, 0x0582, 0x0583, 0x0584, 0x0585, 0x0586, 0x0557, 0x0558, 0x0559, 0x055A, 0x055B, 0x055C, 0x055D, 0x055E, 0x055F,
    197     /* 6 */     0x0560, 0x0561, 0x0562, 0x0563, 0x0564, 0x0565, 0x0566, 0x0567, 0x0568, 0x0569, 0x056A, 0x056B, 0x056C, 0x056D, 0x056E, 0x056F,
    198     /* 7 */     0x0570, 0x0571, 0x0572, 0x0573, 0x0574, 0x0575, 0x0576, 0x0577, 0x0578, 0x0579, 0x057A, 0x057B, 0x057C, 0x057D, 0x057E, 0x057F,
    199     /* 8 */     0x0580, 0x0581, 0x0582, 0x0583, 0x0584, 0x0585, 0x0586, 0x0587, 0x0588, 0x0589, 0x058A, 0x058B, 0x058C, 0x058D, 0x058E, 0x058F,
    200     /* 9 */     0x0590, 0x0591, 0x0592, 0x0593, 0x0594, 0x0595, 0x0596, 0x0597, 0x0598, 0x0599, 0x059A, 0x059B, 0x059C, 0x059D, 0x059E, 0x059F,
    201     /* A */     0x05A0, 0x05A1, 0x05A2, 0x05A3, 0x05A4, 0x05A5, 0x05A6, 0x05A7, 0x05A8, 0x05A9, 0x05AA, 0x05AB, 0x05AC, 0x05AD, 0x05AE, 0x05AF,
    202     /* B */     0x05B0, 0x05B1, 0x05B2, 0x05B3, 0x05B4, 0x05B5, 0x05B6, 0x05B7, 0x05B8, 0x05B9, 0x05BA, 0x05BB, 0x05BC, 0x05BD, 0x05BE, 0x05BF,
    203     /* C */     0x05C0, 0x05C1, 0x05C2, 0x05C3, 0x05C4, 0x05C5, 0x05C6, 0x05C7, 0x05C8, 0x05C9, 0x05CA, 0x05CB, 0x05CC, 0x05CD, 0x05CE, 0x05CF,
    204     /* D */     0x05D0, 0x05D1, 0x05D2, 0x05D3, 0x05D4, 0x05D5, 0x05D6, 0x05D7, 0x05D8, 0x05D9, 0x05DA, 0x05DB, 0x05DC, 0x05DD, 0x05DE, 0x05DF,
    205     /* E */     0x05E0, 0x05E1, 0x05E2, 0x05E3, 0x05E4, 0x05E5, 0x05E6, 0x05E7, 0x05E8, 0x05E9, 0x05EA, 0x05EB, 0x05EC, 0x05ED, 0x05EE, 0x05EF,
    206     /* F */     0x05F0, 0x05F1, 0x05F2, 0x05F3, 0x05F4, 0x05F5, 0x05F6, 0x05F7, 0x05F8, 0x05F9, 0x05FA, 0x05FB, 0x05FC, 0x05FD, 0x05FE, 0x05FF,
     191    /* 0 */     0x0500, 0x0501, 0x0502, 0x0503, 0x0504, 0x0505, 0x0506, 0x0507, 0x0508, 0x0509, 0x050A, 0x050B, 0x050C, 0x050D, 0x050E, 0x050F,
     192    /* 1 */     0x0510, 0x0511, 0x0512, 0x0513, 0x0514, 0x0515, 0x0516, 0x0517, 0x0518, 0x0519, 0x051A, 0x051B, 0x051C, 0x051D, 0x051E, 0x051F,
     193    /* 2 */     0x0520, 0x0521, 0x0522, 0x0523, 0x0524, 0x0525, 0x0526, 0x0527, 0x0528, 0x0529, 0x052A, 0x052B, 0x052C, 0x052D, 0x052E, 0x052F,
     194    /* 3 */     0x0530, 0x0561, 0x0562, 0x0563, 0x0564, 0x0565, 0x0566, 0x0567, 0x0568, 0x0569, 0x056A, 0x056B, 0x056C, 0x056D, 0x056E, 0x056F,
     195    /* 4 */     0x0570, 0x0571, 0x0572, 0x0573, 0x0574, 0x0575, 0x0576, 0x0577, 0x0578, 0x0579, 0x057A, 0x057B, 0x057C, 0x057D, 0x057E, 0x057F,
     196    /* 5 */     0x0580, 0x0581, 0x0582, 0x0583, 0x0584, 0x0585, 0x0586, 0x0557, 0x0558, 0x0559, 0x055A, 0x055B, 0x055C, 0x055D, 0x055E, 0x055F,
     197    /* 6 */     0x0560, 0x0561, 0x0562, 0x0563, 0x0564, 0x0565, 0x0566, 0x0567, 0x0568, 0x0569, 0x056A, 0x056B, 0x056C, 0x056D, 0x056E, 0x056F,
     198    /* 7 */     0x0570, 0x0571, 0x0572, 0x0573, 0x0574, 0x0575, 0x0576, 0x0577, 0x0578, 0x0579, 0x057A, 0x057B, 0x057C, 0x057D, 0x057E, 0x057F,
     199    /* 8 */     0x0580, 0x0581, 0x0582, 0x0583, 0x0584, 0x0585, 0x0586, 0x0587, 0x0588, 0x0589, 0x058A, 0x058B, 0x058C, 0x058D, 0x058E, 0x058F,
     200    /* 9 */     0x0590, 0x0591, 0x0592, 0x0593, 0x0594, 0x0595, 0x0596, 0x0597, 0x0598, 0x0599, 0x059A, 0x059B, 0x059C, 0x059D, 0x059E, 0x059F,
     201    /* A */     0x05A0, 0x05A1, 0x05A2, 0x05A3, 0x05A4, 0x05A5, 0x05A6, 0x05A7, 0x05A8, 0x05A9, 0x05AA, 0x05AB, 0x05AC, 0x05AD, 0x05AE, 0x05AF,
     202    /* B */     0x05B0, 0x05B1, 0x05B2, 0x05B3, 0x05B4, 0x05B5, 0x05B6, 0x05B7, 0x05B8, 0x05B9, 0x05BA, 0x05BB, 0x05BC, 0x05BD, 0x05BE, 0x05BF,
     203    /* C */     0x05C0, 0x05C1, 0x05C2, 0x05C3, 0x05C4, 0x05C5, 0x05C6, 0x05C7, 0x05C8, 0x05C9, 0x05CA, 0x05CB, 0x05CC, 0x05CD, 0x05CE, 0x05CF,
     204    /* D */     0x05D0, 0x05D1, 0x05D2, 0x05D3, 0x05D4, 0x05D5, 0x05D6, 0x05D7, 0x05D8, 0x05D9, 0x05DA, 0x05DB, 0x05DC, 0x05DD, 0x05DE, 0x05DF,
     205    /* E */     0x05E0, 0x05E1, 0x05E2, 0x05E3, 0x05E4, 0x05E5, 0x05E6, 0x05E7, 0x05E8, 0x05E9, 0x05EA, 0x05EB, 0x05EC, 0x05ED, 0x05EE, 0x05EF,
     206    /* F */     0x05F0, 0x05F1, 0x05F2, 0x05F3, 0x05F4, 0x05F5, 0x05F6, 0x05F7, 0x05F8, 0x05F9, 0x05FA, 0x05FB, 0x05FC, 0x05FD, 0x05FE, 0x05FF,
    207207
    208208    /* Table 5 (for high byte 0x10) */
    209209
    210     /* 0 */     0x1000, 0x1001, 0x1002, 0x1003, 0x1004, 0x1005, 0x1006, 0x1007, 0x1008, 0x1009, 0x100A, 0x100B, 0x100C, 0x100D, 0x100E, 0x100F,
    211     /* 1 */     0x1010, 0x1011, 0x1012, 0x1013, 0x1014, 0x1015, 0x1016, 0x1017, 0x1018, 0x1019, 0x101A, 0x101B, 0x101C, 0x101D, 0x101E, 0x101F,
    212     /* 2 */     0x1020, 0x1021, 0x1022, 0x1023, 0x1024, 0x1025, 0x1026, 0x1027, 0x1028, 0x1029, 0x102A, 0x102B, 0x102C, 0x102D, 0x102E, 0x102F,
    213     /* 3 */     0x1030, 0x1031, 0x1032, 0x1033, 0x1034, 0x1035, 0x1036, 0x1037, 0x1038, 0x1039, 0x103A, 0x103B, 0x103C, 0x103D, 0x103E, 0x103F,
    214     /* 4 */     0x1040, 0x1041, 0x1042, 0x1043, 0x1044, 0x1045, 0x1046, 0x1047, 0x1048, 0x1049, 0x104A, 0x104B, 0x104C, 0x104D, 0x104E, 0x104F,
    215     /* 5 */     0x1050, 0x1051, 0x1052, 0x1053, 0x1054, 0x1055, 0x1056, 0x1057, 0x1058, 0x1059, 0x105A, 0x105B, 0x105C, 0x105D, 0x105E, 0x105F,
    216     /* 6 */     0x1060, 0x1061, 0x1062, 0x1063, 0x1064, 0x1065, 0x1066, 0x1067, 0x1068, 0x1069, 0x106A, 0x106B, 0x106C, 0x106D, 0x106E, 0x106F,
    217     /* 7 */     0x1070, 0x1071, 0x1072, 0x1073, 0x1074, 0x1075, 0x1076, 0x1077, 0x1078, 0x1079, 0x107A, 0x107B, 0x107C, 0x107D, 0x107E, 0x107F,
    218     /* 8 */     0x1080, 0x1081, 0x1082, 0x1083, 0x1084, 0x1085, 0x1086, 0x1087, 0x1088, 0x1089, 0x108A, 0x108B, 0x108C, 0x108D, 0x108E, 0x108F,
    219     /* 9 */     0x1090, 0x1091, 0x1092, 0x1093, 0x1094, 0x1095, 0x1096, 0x1097, 0x1098, 0x1099, 0x109A, 0x109B, 0x109C, 0x109D, 0x109E, 0x109F,
    220     /* A */     0x10D0, 0x10D1, 0x10D2, 0x10D3, 0x10D4, 0x10D5, 0x10D6, 0x10D7, 0x10D8, 0x10D9, 0x10DA, 0x10DB, 0x10DC, 0x10DD, 0x10DE, 0x10DF,
    221     /* B */     0x10E0, 0x10E1, 0x10E2, 0x10E3, 0x10E4, 0x10E5, 0x10E6, 0x10E7, 0x10E8, 0x10E9, 0x10EA, 0x10EB, 0x10EC, 0x10ED, 0x10EE, 0x10EF,
    222     /* C */     0x10F0, 0x10F1, 0x10F2, 0x10F3, 0x10F4, 0x10F5, 0x10C6, 0x10C7, 0x10C8, 0x10C9, 0x10CA, 0x10CB, 0x10CC, 0x10CD, 0x10CE, 0x10CF,
    223     /* D */     0x10D0, 0x10D1, 0x10D2, 0x10D3, 0x10D4, 0x10D5, 0x10D6, 0x10D7, 0x10D8, 0x10D9, 0x10DA, 0x10DB, 0x10DC, 0x10DD, 0x10DE, 0x10DF,
    224     /* E */     0x10E0, 0x10E1, 0x10E2, 0x10E3, 0x10E4, 0x10E5, 0x10E6, 0x10E7, 0x10E8, 0x10E9, 0x10EA, 0x10EB, 0x10EC, 0x10ED, 0x10EE, 0x10EF,
    225     /* F */     0x10F0, 0x10F1, 0x10F2, 0x10F3, 0x10F4, 0x10F5, 0x10F6, 0x10F7, 0x10F8, 0x10F9, 0x10FA, 0x10FB, 0x10FC, 0x10FD, 0x10FE, 0x10FF,
     210    /* 0 */     0x1000, 0x1001, 0x1002, 0x1003, 0x1004, 0x1005, 0x1006, 0x1007, 0x1008, 0x1009, 0x100A, 0x100B, 0x100C, 0x100D, 0x100E, 0x100F,
     211    /* 1 */     0x1010, 0x1011, 0x1012, 0x1013, 0x1014, 0x1015, 0x1016, 0x1017, 0x1018, 0x1019, 0x101A, 0x101B, 0x101C, 0x101D, 0x101E, 0x101F,
     212    /* 2 */     0x1020, 0x1021, 0x1022, 0x1023, 0x1024, 0x1025, 0x1026, 0x1027, 0x1028, 0x1029, 0x102A, 0x102B, 0x102C, 0x102D, 0x102E, 0x102F,
     213    /* 3 */     0x1030, 0x1031, 0x1032, 0x1033, 0x1034, 0x1035, 0x1036, 0x1037, 0x1038, 0x1039, 0x103A, 0x103B, 0x103C, 0x103D, 0x103E, 0x103F,
     214    /* 4 */     0x1040, 0x1041, 0x1042, 0x1043, 0x1044, 0x1045, 0x1046, 0x1047, 0x1048, 0x1049, 0x104A, 0x104B, 0x104C, 0x104D, 0x104E, 0x104F,
     215    /* 5 */     0x1050, 0x1051, 0x1052, 0x1053, 0x1054, 0x1055, 0x1056, 0x1057, 0x1058, 0x1059, 0x105A, 0x105B, 0x105C, 0x105D, 0x105E, 0x105F,
     216    /* 6 */     0x1060, 0x1061, 0x1062, 0x1063, 0x1064, 0x1065, 0x1066, 0x1067, 0x1068, 0x1069, 0x106A, 0x106B, 0x106C, 0x106D, 0x106E, 0x106F,
     217    /* 7 */     0x1070, 0x1071, 0x1072, 0x1073, 0x1074, 0x1075, 0x1076, 0x1077, 0x1078, 0x1079, 0x107A, 0x107B, 0x107C, 0x107D, 0x107E, 0x107F,
     218    /* 8 */     0x1080, 0x1081, 0x1082, 0x1083, 0x1084, 0x1085, 0x1086, 0x1087, 0x1088, 0x1089, 0x108A, 0x108B, 0x108C, 0x108D, 0x108E, 0x108F,
     219    /* 9 */     0x1090, 0x1091, 0x1092, 0x1093, 0x1094, 0x1095, 0x1096, 0x1097, 0x1098, 0x1099, 0x109A, 0x109B, 0x109C, 0x109D, 0x109E, 0x109F,
     220    /* A */     0x10D0, 0x10D1, 0x10D2, 0x10D3, 0x10D4, 0x10D5, 0x10D6, 0x10D7, 0x10D8, 0x10D9, 0x10DA, 0x10DB, 0x10DC, 0x10DD, 0x10DE, 0x10DF,
     221    /* B */     0x10E0, 0x10E1, 0x10E2, 0x10E3, 0x10E4, 0x10E5, 0x10E6, 0x10E7, 0x10E8, 0x10E9, 0x10EA, 0x10EB, 0x10EC, 0x10ED, 0x10EE, 0x10EF,
     222    /* C */     0x10F0, 0x10F1, 0x10F2, 0x10F3, 0x10F4, 0x10F5, 0x10C6, 0x10C7, 0x10C8, 0x10C9, 0x10CA, 0x10CB, 0x10CC, 0x10CD, 0x10CE, 0x10CF,
     223    /* D */     0x10D0, 0x10D1, 0x10D2, 0x10D3, 0x10D4, 0x10D5, 0x10D6, 0x10D7, 0x10D8, 0x10D9, 0x10DA, 0x10DB, 0x10DC, 0x10DD, 0x10DE, 0x10DF,
     224    /* E */     0x10E0, 0x10E1, 0x10E2, 0x10E3, 0x10E4, 0x10E5, 0x10E6, 0x10E7, 0x10E8, 0x10E9, 0x10EA, 0x10EB, 0x10EC, 0x10ED, 0x10EE, 0x10EF,
     225    /* F */     0x10F0, 0x10F1, 0x10F2, 0x10F3, 0x10F4, 0x10F5, 0x10F6, 0x10F7, 0x10F8, 0x10F9, 0x10FA, 0x10FB, 0x10FC, 0x10FD, 0x10FE, 0x10FF,
    226226
    227227    /* Table 6 (for high byte 0x20) */
    228228
    229     /* 0 */     0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A, 0x200B, 0x0000, 0x0000, 0x0000, 0x0000,
    230     /* 1 */     0x2010, 0x2011, 0x2012, 0x2013, 0x2014, 0x2015, 0x2016, 0x2017, 0x2018, 0x2019, 0x201A, 0x201B, 0x201C, 0x201D, 0x201E, 0x201F,
    231     /* 2 */     0x2020, 0x2021, 0x2022, 0x2023, 0x2024, 0x2025, 0x2026, 0x2027, 0x2028, 0x2029, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x202F,
    232     /* 3 */     0x2030, 0x2031, 0x2032, 0x2033, 0x2034, 0x2035, 0x2036, 0x2037, 0x2038, 0x2039, 0x203A, 0x203B, 0x203C, 0x203D, 0x203E, 0x203F,
    233     /* 4 */     0x2040, 0x2041, 0x2042, 0x2043, 0x2044, 0x2045, 0x2046, 0x2047, 0x2048, 0x2049, 0x204A, 0x204B, 0x204C, 0x204D, 0x204E, 0x204F,
    234     /* 5 */     0x2050, 0x2051, 0x2052, 0x2053, 0x2054, 0x2055, 0x2056, 0x2057, 0x2058, 0x2059, 0x205A, 0x205B, 0x205C, 0x205D, 0x205E, 0x205F,
    235     /* 6 */     0x2060, 0x2061, 0x2062, 0x2063, 0x2064, 0x2065, 0x2066, 0x2067, 0x2068, 0x2069, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    236     /* 7 */     0x2070, 0x2071, 0x2072, 0x2073, 0x2074, 0x2075, 0x2076, 0x2077, 0x2078, 0x2079, 0x207A, 0x207B, 0x207C, 0x207D, 0x207E, 0x207F,
    237     /* 8 */     0x2080, 0x2081, 0x2082, 0x2083, 0x2084, 0x2085, 0x2086, 0x2087, 0x2088, 0x2089, 0x208A, 0x208B, 0x208C, 0x208D, 0x208E, 0x208F,
    238     /* 9 */     0x2090, 0x2091, 0x2092, 0x2093, 0x2094, 0x2095, 0x2096, 0x2097, 0x2098, 0x2099, 0x209A, 0x209B, 0x209C, 0x209D, 0x209E, 0x209F,
    239     /* A */     0x20A0, 0x20A1, 0x20A2, 0x20A3, 0x20A4, 0x20A5, 0x20A6, 0x20A7, 0x20A8, 0x20A9, 0x20AA, 0x20AB, 0x20AC, 0x20AD, 0x20AE, 0x20AF,
    240     /* B */     0x20B0, 0x20B1, 0x20B2, 0x20B3, 0x20B4, 0x20B5, 0x20B6, 0x20B7, 0x20B8, 0x20B9, 0x20BA, 0x20BB, 0x20BC, 0x20BD, 0x20BE, 0x20BF,
    241     /* C */     0x20C0, 0x20C1, 0x20C2, 0x20C3, 0x20C4, 0x20C5, 0x20C6, 0x20C7, 0x20C8, 0x20C9, 0x20CA, 0x20CB, 0x20CC, 0x20CD, 0x20CE, 0x20CF,
    242     /* D */     0x20D0, 0x20D1, 0x20D2, 0x20D3, 0x20D4, 0x20D5, 0x20D6, 0x20D7, 0x20D8, 0x20D9, 0x20DA, 0x20DB, 0x20DC, 0x20DD, 0x20DE, 0x20DF,
    243     /* E */     0x20E0, 0x20E1, 0x20E2, 0x20E3, 0x20E4, 0x20E5, 0x20E6, 0x20E7, 0x20E8, 0x20E9, 0x20EA, 0x20EB, 0x20EC, 0x20ED, 0x20EE, 0x20EF,
    244     /* F */     0x20F0, 0x20F1, 0x20F2, 0x20F3, 0x20F4, 0x20F5, 0x20F6, 0x20F7, 0x20F8, 0x20F9, 0x20FA, 0x20FB, 0x20FC, 0x20FD, 0x20FE, 0x20FF,
     229    /* 0 */     0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A, 0x200B, 0x0000, 0x0000, 0x0000, 0x0000,
     230    /* 1 */     0x2010, 0x2011, 0x2012, 0x2013, 0x2014, 0x2015, 0x2016, 0x2017, 0x2018, 0x2019, 0x201A, 0x201B, 0x201C, 0x201D, 0x201E, 0x201F,
     231    /* 2 */     0x2020, 0x2021, 0x2022, 0x2023, 0x2024, 0x2025, 0x2026, 0x2027, 0x2028, 0x2029, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x202F,
     232    /* 3 */     0x2030, 0x2031, 0x2032, 0x2033, 0x2034, 0x2035, 0x2036, 0x2037, 0x2038, 0x2039, 0x203A, 0x203B, 0x203C, 0x203D, 0x203E, 0x203F,
     233    /* 4 */     0x2040, 0x2041, 0x2042, 0x2043, 0x2044, 0x2045, 0x2046, 0x2047, 0x2048, 0x2049, 0x204A, 0x204B, 0x204C, 0x204D, 0x204E, 0x204F,
     234    /* 5 */     0x2050, 0x2051, 0x2052, 0x2053, 0x2054, 0x2055, 0x2056, 0x2057, 0x2058, 0x2059, 0x205A, 0x205B, 0x205C, 0x205D, 0x205E, 0x205F,
     235    /* 6 */     0x2060, 0x2061, 0x2062, 0x2063, 0x2064, 0x2065, 0x2066, 0x2067, 0x2068, 0x2069, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
     236    /* 7 */     0x2070, 0x2071, 0x2072, 0x2073, 0x2074, 0x2075, 0x2076, 0x2077, 0x2078, 0x2079, 0x207A, 0x207B, 0x207C, 0x207D, 0x207E, 0x207F,
     237    /* 8 */     0x2080, 0x2081, 0x2082, 0x2083, 0x2084, 0x2085, 0x2086, 0x2087, 0x2088, 0x2089, 0x208A, 0x208B, 0x208C, 0x208D, 0x208E, 0x208F,
     238    /* 9 */     0x2090, 0x2091, 0x2092, 0x2093, 0x2094, 0x2095, 0x2096, 0x2097, 0x2098, 0x2099, 0x209A, 0x209B, 0x209C, 0x209D, 0x209E, 0x209F,
     239    /* A */     0x20A0, 0x20A1, 0x20A2, 0x20A3, 0x20A4, 0x20A5, 0x20A6, 0x20A7, 0x20A8, 0x20A9, 0x20AA, 0x20AB, 0x20AC, 0x20AD, 0x20AE, 0x20AF,
     240    /* B */     0x20B0, 0x20B1, 0x20B2, 0x20B3, 0x20B4, 0x20B5, 0x20B6, 0x20B7, 0x20B8, 0x20B9, 0x20BA, 0x20BB, 0x20BC, 0x20BD, 0x20BE, 0x20BF,
     241    /* C */     0x20C0, 0x20C1, 0x20C2, 0x20C3, 0x20C4, 0x20C5, 0x20C6, 0x20C7, 0x20C8, 0x20C9, 0x20CA, 0x20CB, 0x20CC, 0x20CD, 0x20CE, 0x20CF,
     242    /* D */     0x20D0, 0x20D1, 0x20D2, 0x20D3, 0x20D4, 0x20D5, 0x20D6, 0x20D7, 0x20D8, 0x20D9, 0x20DA, 0x20DB, 0x20DC, 0x20DD, 0x20DE, 0x20DF,
     243    /* E */     0x20E0, 0x20E1, 0x20E2, 0x20E3, 0x20E4, 0x20E5, 0x20E6, 0x20E7, 0x20E8, 0x20E9, 0x20EA, 0x20EB, 0x20EC, 0x20ED, 0x20EE, 0x20EF,
     244    /* F */     0x20F0, 0x20F1, 0x20F2, 0x20F3, 0x20F4, 0x20F5, 0x20F6, 0x20F7, 0x20F8, 0x20F9, 0x20FA, 0x20FB, 0x20FC, 0x20FD, 0x20FE, 0x20FF,
    245245
    246246    /* Table 7 (for high byte 0x21) */
    247247
    248     /* 0 */     0x2100, 0x2101, 0x2102, 0x2103, 0x2104, 0x2105, 0x2106, 0x2107, 0x2108, 0x2109, 0x210A, 0x210B, 0x210C, 0x210D, 0x210E, 0x210F,
    249     /* 1 */     0x2110, 0x2111, 0x2112, 0x2113, 0x2114, 0x2115, 0x2116, 0x2117, 0x2118, 0x2119, 0x211A, 0x211B, 0x211C, 0x211D, 0x211E, 0x211F,
    250     /* 2 */     0x2120, 0x2121, 0x2122, 0x2123, 0x2124, 0x2125, 0x2126, 0x2127, 0x2128, 0x2129, 0x212A, 0x212B, 0x212C, 0x212D, 0x212E, 0x212F,
    251     /* 3 */     0x2130, 0x2131, 0x2132, 0x2133, 0x2134, 0x2135, 0x2136, 0x2137, 0x2138, 0x2139, 0x213A, 0x213B, 0x213C, 0x213D, 0x213E, 0x213F,
    252     /* 4 */     0x2140, 0x2141, 0x2142, 0x2143, 0x2144, 0x2145, 0x2146, 0x2147, 0x2148, 0x2149, 0x214A, 0x214B, 0x214C, 0x214D, 0x214E, 0x214F,
    253     /* 5 */     0x2150, 0x2151, 0x2152, 0x2153, 0x2154, 0x2155, 0x2156, 0x2157, 0x2158, 0x2159, 0x215A, 0x215B, 0x215C, 0x215D, 0x215E, 0x215F,
    254     /* 6 */     0x2170, 0x2171, 0x2172, 0x2173, 0x2174, 0x2175, 0x2176, 0x2177, 0x2178, 0x2179, 0x217A, 0x217B, 0x217C, 0x217D, 0x217E, 0x217F,
    255     /* 7 */     0x2170, 0x2171, 0x2172, 0x2173, 0x2174, 0x2175, 0x2176, 0x2177, 0x2178, 0x2179, 0x217A, 0x217B, 0x217C, 0x217D, 0x217E, 0x217F,
    256     /* 8 */     0x2180, 0x2181, 0x2182, 0x2183, 0x2184, 0x2185, 0x2186, 0x2187, 0x2188, 0x2189, 0x218A, 0x218B, 0x218C, 0x218D, 0x218E, 0x218F,
    257     /* 9 */     0x2190, 0x2191, 0x2192, 0x2193, 0x2194, 0x2195, 0x2196, 0x2197, 0x2198, 0x2199, 0x219A, 0x219B, 0x219C, 0x219D, 0x219E, 0x219F,
    258     /* A */     0x21A0, 0x21A1, 0x21A2, 0x21A3, 0x21A4, 0x21A5, 0x21A6, 0x21A7, 0x21A8, 0x21A9, 0x21AA, 0x21AB, 0x21AC, 0x21AD, 0x21AE, 0x21AF,
    259     /* B */     0x21B0, 0x21B1, 0x21B2, 0x21B3, 0x21B4, 0x21B5, 0x21B6, 0x21B7, 0x21B8, 0x21B9, 0x21BA, 0x21BB, 0x21BC, 0x21BD, 0x21BE, 0x21BF,
    260     /* C */     0x21C0, 0x21C1, 0x21C2, 0x21C3, 0x21C4, 0x21C5, 0x21C6, 0x21C7, 0x21C8, 0x21C9, 0x21CA, 0x21CB, 0x21CC, 0x21CD, 0x21CE, 0x21CF,
    261     /* D */     0x21D0, 0x21D1, 0x21D2, 0x21D3, 0x21D4, 0x21D5, 0x21D6, 0x21D7, 0x21D8, 0x21D9, 0x21DA, 0x21DB, 0x21DC, 0x21DD, 0x21DE, 0x21DF,
    262     /* E */     0x21E0, 0x21E1, 0x21E2, 0x21E3, 0x21E4, 0x21E5, 0x21E6, 0x21E7, 0x21E8, 0x21E9, 0x21EA, 0x21EB, 0x21EC, 0x21ED, 0x21EE, 0x21EF,
    263     /* F */     0x21F0, 0x21F1, 0x21F2, 0x21F3, 0x21F4, 0x21F5, 0x21F6, 0x21F7, 0x21F8, 0x21F9, 0x21FA, 0x21FB, 0x21FC, 0x21FD, 0x21FE, 0x21FF,
     248    /* 0 */     0x2100, 0x2101, 0x2102, 0x2103, 0x2104, 0x2105, 0x2106, 0x2107, 0x2108, 0x2109, 0x210A, 0x210B, 0x210C, 0x210D, 0x210E, 0x210F,
     249    /* 1 */     0x2110, 0x2111, 0x2112, 0x2113, 0x2114, 0x2115, 0x2116, 0x2117, 0x2118, 0x2119, 0x211A, 0x211B, 0x211C, 0x211D, 0x211E, 0x211F,
     250    /* 2 */     0x2120, 0x2121, 0x2122, 0x2123, 0x2124, 0x2125, 0x2126, 0x2127, 0x2128, 0x2129, 0x212A, 0x212B, 0x212C, 0x212D, 0x212E, 0x212F,
     251    /* 3 */     0x2130, 0x2131, 0x2132, 0x2133, 0x2134, 0x2135, 0x2136, 0x2137, 0x2138, 0x2139, 0x213A, 0x213B, 0x213C, 0x213D, 0x213E, 0x213F,
     252    /* 4 */     0x2140, 0x2141, 0x2142, 0x2143, 0x2144, 0x2145, 0x2146, 0x2147, 0x2148, 0x2149, 0x214A, 0x214B, 0x214C, 0x214D, 0x214E, 0x214F,
     253    /* 5 */     0x2150, 0x2151, 0x2152, 0x2153, 0x2154, 0x2155, 0x2156, 0x2157, 0x2158, 0x2159, 0x215A, 0x215B, 0x215C, 0x215D, 0x215E, 0x215F,
     254    /* 6 */     0x2170, 0x2171, 0x2172, 0x2173, 0x2174, 0x2175, 0x2176, 0x2177, 0x2178, 0x2179, 0x217A, 0x217B, 0x217C, 0x217D, 0x217E, 0x217F,
     255    /* 7 */     0x2170, 0x2171, 0x2172, 0x2173, 0x2174, 0x2175, 0x2176, 0x2177, 0x2178, 0x2179, 0x217A, 0x217B, 0x217C, 0x217D, 0x217E, 0x217F,
     256    /* 8 */     0x2180, 0x2181, 0x2182, 0x2183, 0x2184, 0x2185, 0x2186, 0x2187, 0x2188, 0x2189, 0x218A, 0x218B, 0x218C, 0x218D, 0x218E, 0x218F,
     257    /* 9 */     0x2190, 0x2191, 0x2192, 0x2193, 0x2194, 0x2195, 0x2196, 0x2197, 0x2198, 0x2199, 0x219A, 0x219B, 0x219C, 0x219D, 0x219E, 0x219F,
     258    /* A */     0x21A0, 0x21A1, 0x21A2, 0x21A3, 0x21A4, 0x21A5, 0x21A6, 0x21A7, 0x21A8, 0x21A9, 0x21AA, 0x21AB, 0x21AC, 0x21AD, 0x21AE, 0x21AF,
     259    /* B */     0x21B0, 0x21B1, 0x21B2, 0x21B3, 0x21B4, 0x21B5, 0x21B6, 0x21B7, 0x21B8, 0x21B9, 0x21BA, 0x21BB, 0x21BC, 0x21BD, 0x21BE, 0x21BF,
     260    /* C */     0x21C0, 0x21C1, 0x21C2, 0x21C3, 0x21C4, 0x21C5, 0x21C6, 0x21C7, 0x21C8, 0x21C9, 0x21CA, 0x21CB, 0x21CC, 0x21CD, 0x21CE, 0x21CF,
     261    /* D */     0x21D0, 0x21D1, 0x21D2, 0x21D3, 0x21D4, 0x21D5, 0x21D6, 0x21D7, 0x21D8, 0x21D9, 0x21DA, 0x21DB, 0x21DC, 0x21DD, 0x21DE, 0x21DF,
     262    /* E */     0x21E0, 0x21E1, 0x21E2, 0x21E3, 0x21E4, 0x21E5, 0x21E6, 0x21E7, 0x21E8, 0x21E9, 0x21EA, 0x21EB, 0x21EC, 0x21ED, 0x21EE, 0x21EF,
     263    /* F */     0x21F0, 0x21F1, 0x21F2, 0x21F3, 0x21F4, 0x21F5, 0x21F6, 0x21F7, 0x21F8, 0x21F9, 0x21FA, 0x21FB, 0x21FC, 0x21FD, 0x21FE, 0x21FF,
    264264
    265265    /* Table 8 (for high byte 0xFE) */
    266266
    267     /* 0 */     0xFE00, 0xFE01, 0xFE02, 0xFE03, 0xFE04, 0xFE05, 0xFE06, 0xFE07, 0xFE08, 0xFE09, 0xFE0A, 0xFE0B, 0xFE0C, 0xFE0D, 0xFE0E, 0xFE0F,
    268     /* 1 */     0xFE10, 0xFE11, 0xFE12, 0xFE13, 0xFE14, 0xFE15, 0xFE16, 0xFE17, 0xFE18, 0xFE19, 0xFE1A, 0xFE1B, 0xFE1C, 0xFE1D, 0xFE1E, 0xFE1F,
    269     /* 2 */     0xFE20, 0xFE21, 0xFE22, 0xFE23, 0xFE24, 0xFE25, 0xFE26, 0xFE27, 0xFE28, 0xFE29, 0xFE2A, 0xFE2B, 0xFE2C, 0xFE2D, 0xFE2E, 0xFE2F,
    270     /* 3 */     0xFE30, 0xFE31, 0xFE32, 0xFE33, 0xFE34, 0xFE35, 0xFE36, 0xFE37, 0xFE38, 0xFE39, 0xFE3A, 0xFE3B, 0xFE3C, 0xFE3D, 0xFE3E, 0xFE3F,
    271     /* 4 */     0xFE40, 0xFE41, 0xFE42, 0xFE43, 0xFE44, 0xFE45, 0xFE46, 0xFE47, 0xFE48, 0xFE49, 0xFE4A, 0xFE4B, 0xFE4C, 0xFE4D, 0xFE4E, 0xFE4F,
    272     /* 5 */     0xFE50, 0xFE51, 0xFE52, 0xFE53, 0xFE54, 0xFE55, 0xFE56, 0xFE57, 0xFE58, 0xFE59, 0xFE5A, 0xFE5B, 0xFE5C, 0xFE5D, 0xFE5E, 0xFE5F,
    273     /* 6 */     0xFE60, 0xFE61, 0xFE62, 0xFE63, 0xFE64, 0xFE65, 0xFE66, 0xFE67, 0xFE68, 0xFE69, 0xFE6A, 0xFE6B, 0xFE6C, 0xFE6D, 0xFE6E, 0xFE6F,
    274     /* 7 */     0xFE70, 0xFE71, 0xFE72, 0xFE73, 0xFE74, 0xFE75, 0xFE76, 0xFE77, 0xFE78, 0xFE79, 0xFE7A, 0xFE7B, 0xFE7C, 0xFE7D, 0xFE7E, 0xFE7F,
    275     /* 8 */     0xFE80, 0xFE81, 0xFE82, 0xFE83, 0xFE84, 0xFE85, 0xFE86, 0xFE87, 0xFE88, 0xFE89, 0xFE8A, 0xFE8B, 0xFE8C, 0xFE8D, 0xFE8E, 0xFE8F,
    276     /* 9 */     0xFE90, 0xFE91, 0xFE92, 0xFE93, 0xFE94, 0xFE95, 0xFE96, 0xFE97, 0xFE98, 0xFE99, 0xFE9A, 0xFE9B, 0xFE9C, 0xFE9D, 0xFE9E, 0xFE9F,
    277     /* A */     0xFEA0, 0xFEA1, 0xFEA2, 0xFEA3, 0xFEA4, 0xFEA5, 0xFEA6, 0xFEA7, 0xFEA8, 0xFEA9, 0xFEAA, 0xFEAB, 0xFEAC, 0xFEAD, 0xFEAE, 0xFEAF,
    278     /* B */     0xFEB0, 0xFEB1, 0xFEB2, 0xFEB3, 0xFEB4, 0xFEB5, 0xFEB6, 0xFEB7, 0xFEB8, 0xFEB9, 0xFEBA, 0xFEBB, 0xFEBC, 0xFEBD, 0xFEBE, 0xFEBF,
    279     /* C */     0xFEC0, 0xFEC1, 0xFEC2, 0xFEC3, 0xFEC4, 0xFEC5, 0xFEC6, 0xFEC7, 0xFEC8, 0xFEC9, 0xFECA, 0xFECB, 0xFECC, 0xFECD, 0xFECE, 0xFECF,
    280     /* D */     0xFED0, 0xFED1, 0xFED2, 0xFED3, 0xFED4, 0xFED5, 0xFED6, 0xFED7, 0xFED8, 0xFED9, 0xFEDA, 0xFEDB, 0xFEDC, 0xFEDD, 0xFEDE, 0xFEDF,
    281     /* E */     0xFEE0, 0xFEE1, 0xFEE2, 0xFEE3, 0xFEE4, 0xFEE5, 0xFEE6, 0xFEE7, 0xFEE8, 0xFEE9, 0xFEEA, 0xFEEB, 0xFEEC, 0xFEED, 0xFEEE, 0xFEEF,
    282     /* F */     0xFEF0, 0xFEF1, 0xFEF2, 0xFEF3, 0xFEF4, 0xFEF5, 0xFEF6, 0xFEF7, 0xFEF8, 0xFEF9, 0xFEFA, 0xFEFB, 0xFEFC, 0xFEFD, 0xFEFE, 0x0000,
     267    /* 0 */     0xFE00, 0xFE01, 0xFE02, 0xFE03, 0xFE04, 0xFE05, 0xFE06, 0xFE07, 0xFE08, 0xFE09, 0xFE0A, 0xFE0B, 0xFE0C, 0xFE0D, 0xFE0E, 0xFE0F,
     268    /* 1 */     0xFE10, 0xFE11, 0xFE12, 0xFE13, 0xFE14, 0xFE15, 0xFE16, 0xFE17, 0xFE18, 0xFE19, 0xFE1A, 0xFE1B, 0xFE1C, 0xFE1D, 0xFE1E, 0xFE1F,
     269    /* 2 */     0xFE20, 0xFE21, 0xFE22, 0xFE23, 0xFE24, 0xFE25, 0xFE26, 0xFE27, 0xFE28, 0xFE29, 0xFE2A, 0xFE2B, 0xFE2C, 0xFE2D, 0xFE2E, 0xFE2F,
     270    /* 3 */     0xFE30, 0xFE31, 0xFE32, 0xFE33, 0xFE34, 0xFE35, 0xFE36, 0xFE37, 0xFE38, 0xFE39, 0xFE3A, 0xFE3B, 0xFE3C, 0xFE3D, 0xFE3E, 0xFE3F,
     271    /* 4 */     0xFE40, 0xFE41, 0xFE42, 0xFE43, 0xFE44, 0xFE45, 0xFE46, 0xFE47, 0xFE48, 0xFE49, 0xFE4A, 0xFE4B, 0xFE4C, 0xFE4D, 0xFE4E, 0xFE4F,
     272    /* 5 */     0xFE50, 0xFE51, 0xFE52, 0xFE53, 0xFE54, 0xFE55, 0xFE56, 0xFE57, 0xFE58, 0xFE59, 0xFE5A, 0xFE5B, 0xFE5C, 0xFE5D, 0xFE5E, 0xFE5F,
     273    /* 6 */     0xFE60, 0xFE61, 0xFE62, 0xFE63, 0xFE64, 0xFE65, 0xFE66, 0xFE67, 0xFE68, 0xFE69, 0xFE6A, 0xFE6B, 0xFE6C, 0xFE6D, 0xFE6E, 0xFE6F,
     274    /* 7 */     0xFE70, 0xFE71, 0xFE72, 0xFE73, 0xFE74, 0xFE75, 0xFE76, 0xFE77, 0xFE78, 0xFE79, 0xFE7A, 0xFE7B, 0xFE7C, 0xFE7D, 0xFE7E, 0xFE7F,
     275    /* 8 */     0xFE80, 0xFE81, 0xFE82, 0xFE83, 0xFE84, 0xFE85, 0xFE86, 0xFE87, 0xFE88, 0xFE89, 0xFE8A, 0xFE8B, 0xFE8C, 0xFE8D, 0xFE8E, 0xFE8F,
     276    /* 9 */     0xFE90, 0xFE91, 0xFE92, 0xFE93, 0xFE94, 0xFE95, 0xFE96, 0xFE97, 0xFE98, 0xFE99, 0xFE9A, 0xFE9B, 0xFE9C, 0xFE9D, 0xFE9E, 0xFE9F,
     277    /* A */     0xFEA0, 0xFEA1, 0xFEA2, 0xFEA3, 0xFEA4, 0xFEA5, 0xFEA6, 0xFEA7, 0xFEA8, 0xFEA9, 0xFEAA, 0xFEAB, 0xFEAC, 0xFEAD, 0xFEAE, 0xFEAF,
     278    /* B */     0xFEB0, 0xFEB1, 0xFEB2, 0xFEB3, 0xFEB4, 0xFEB5, 0xFEB6, 0xFEB7, 0xFEB8, 0xFEB9, 0xFEBA, 0xFEBB, 0xFEBC, 0xFEBD, 0xFEBE, 0xFEBF,
     279    /* C */     0xFEC0, 0xFEC1, 0xFEC2, 0xFEC3, 0xFEC4, 0xFEC5, 0xFEC6, 0xFEC7, 0xFEC8, 0xFEC9, 0xFECA, 0xFECB, 0xFECC, 0xFECD, 0xFECE, 0xFECF,
     280    /* D */     0xFED0, 0xFED1, 0xFED2, 0xFED3, 0xFED4, 0xFED5, 0xFED6, 0xFED7, 0xFED8, 0xFED9, 0xFEDA, 0xFEDB, 0xFEDC, 0xFEDD, 0xFEDE, 0xFEDF,
     281    /* E */     0xFEE0, 0xFEE1, 0xFEE2, 0xFEE3, 0xFEE4, 0xFEE5, 0xFEE6, 0xFEE7, 0xFEE8, 0xFEE9, 0xFEEA, 0xFEEB, 0xFEEC, 0xFEED, 0xFEEE, 0xFEEF,
     282    /* F */     0xFEF0, 0xFEF1, 0xFEF2, 0xFEF3, 0xFEF4, 0xFEF5, 0xFEF6, 0xFEF7, 0xFEF8, 0xFEF9, 0xFEFA, 0xFEFB, 0xFEFC, 0xFEFD, 0xFEFE, 0x0000,
    283283
    284284    /* Table 9 (for high byte 0xFF) */
    285285
    286     /* 0 */     0xFF00, 0xFF01, 0xFF02, 0xFF03, 0xFF04, 0xFF05, 0xFF06, 0xFF07, 0xFF08, 0xFF09, 0xFF0A, 0xFF0B, 0xFF0C, 0xFF0D, 0xFF0E, 0xFF0F,
    287     /* 1 */     0xFF10, 0xFF11, 0xFF12, 0xFF13, 0xFF14, 0xFF15, 0xFF16, 0xFF17, 0xFF18, 0xFF19, 0xFF1A, 0xFF1B, 0xFF1C, 0xFF1D, 0xFF1E, 0xFF1F,
    288     /* 2 */     0xFF20, 0xFF41, 0xFF42, 0xFF43, 0xFF44, 0xFF45, 0xFF46, 0xFF47, 0xFF48, 0xFF49, 0xFF4A, 0xFF4B, 0xFF4C, 0xFF4D, 0xFF4E, 0xFF4F,
    289     /* 3 */     0xFF50, 0xFF51, 0xFF52, 0xFF53, 0xFF54, 0xFF55, 0xFF56, 0xFF57, 0xFF58, 0xFF59, 0xFF5A, 0xFF3B, 0xFF3C, 0xFF3D, 0xFF3E, 0xFF3F,
    290     /* 4 */     0xFF40, 0xFF41, 0xFF42, 0xFF43, 0xFF44, 0xFF45, 0xFF46, 0xFF47, 0xFF48, 0xFF49, 0xFF4A, 0xFF4B, 0xFF4C, 0xFF4D, 0xFF4E, 0xFF4F,
    291     /* 5 */     0xFF50, 0xFF51, 0xFF52, 0xFF53, 0xFF54, 0xFF55, 0xFF56, 0xFF57, 0xFF58, 0xFF59, 0xFF5A, 0xFF5B, 0xFF5C, 0xFF5D, 0xFF5E, 0xFF5F,
    292     /* 6 */     0xFF60, 0xFF61, 0xFF62, 0xFF63, 0xFF64, 0xFF65, 0xFF66, 0xFF67, 0xFF68, 0xFF69, 0xFF6A, 0xFF6B, 0xFF6C, 0xFF6D, 0xFF6E, 0xFF6F,
    293     /* 7 */     0xFF70, 0xFF71, 0xFF72, 0xFF73, 0xFF74, 0xFF75, 0xFF76, 0xFF77, 0xFF78, 0xFF79, 0xFF7A, 0xFF7B, 0xFF7C, 0xFF7D, 0xFF7E, 0xFF7F,
    294     /* 8 */     0xFF80, 0xFF81, 0xFF82, 0xFF83, 0xFF84, 0xFF85, 0xFF86, 0xFF87, 0xFF88, 0xFF89, 0xFF8A, 0xFF8B, 0xFF8C, 0xFF8D, 0xFF8E, 0xFF8F,
    295     /* 9 */     0xFF90, 0xFF91, 0xFF92, 0xFF93, 0xFF94, 0xFF95, 0xFF96, 0xFF97, 0xFF98, 0xFF99, 0xFF9A, 0xFF9B, 0xFF9C, 0xFF9D, 0xFF9E, 0xFF9F,
    296     /* A */     0xFFA0, 0xFFA1, 0xFFA2, 0xFFA3, 0xFFA4, 0xFFA5, 0xFFA6, 0xFFA7, 0xFFA8, 0xFFA9, 0xFFAA, 0xFFAB, 0xFFAC, 0xFFAD, 0xFFAE, 0xFFAF,
    297     /* B */     0xFFB0, 0xFFB1, 0xFFB2, 0xFFB3, 0xFFB4, 0xFFB5, 0xFFB6, 0xFFB7, 0xFFB8, 0xFFB9, 0xFFBA, 0xFFBB, 0xFFBC, 0xFFBD, 0xFFBE, 0xFFBF,
    298     /* C */     0xFFC0, 0xFFC1, 0xFFC2, 0xFFC3, 0xFFC4, 0xFFC5, 0xFFC6, 0xFFC7, 0xFFC8, 0xFFC9, 0xFFCA, 0xFFCB, 0xFFCC, 0xFFCD, 0xFFCE, 0xFFCF,
    299     /* D */     0xFFD0, 0xFFD1, 0xFFD2, 0xFFD3, 0xFFD4, 0xFFD5, 0xFFD6, 0xFFD7, 0xFFD8, 0xFFD9, 0xFFDA, 0xFFDB, 0xFFDC, 0xFFDD, 0xFFDE, 0xFFDF,
    300     /* E */     0xFFE0, 0xFFE1, 0xFFE2, 0xFFE3, 0xFFE4, 0xFFE5, 0xFFE6, 0xFFE7, 0xFFE8, 0xFFE9, 0xFFEA, 0xFFEB, 0xFFEC, 0xFFED, 0xFFEE, 0xFFEF,
    301     /* F */     0xFFF0, 0xFFF1, 0xFFF2, 0xFFF3, 0xFFF4, 0xFFF5, 0xFFF6, 0xFFF7, 0xFFF8, 0xFFF9, 0xFFFA, 0xFFFB, 0xFFFC, 0xFFFD, 0xFFFE, 0xFFFF,
     286    /* 0 */     0xFF00, 0xFF01, 0xFF02, 0xFF03, 0xFF04, 0xFF05, 0xFF06, 0xFF07, 0xFF08, 0xFF09, 0xFF0A, 0xFF0B, 0xFF0C, 0xFF0D, 0xFF0E, 0xFF0F,
     287    /* 1 */     0xFF10, 0xFF11, 0xFF12, 0xFF13, 0xFF14, 0xFF15, 0xFF16, 0xFF17, 0xFF18, 0xFF19, 0xFF1A, 0xFF1B, 0xFF1C, 0xFF1D, 0xFF1E, 0xFF1F,
     288    /* 2 */     0xFF20, 0xFF41, 0xFF42, 0xFF43, 0xFF44, 0xFF45, 0xFF46, 0xFF47, 0xFF48, 0xFF49, 0xFF4A, 0xFF4B, 0xFF4C, 0xFF4D, 0xFF4E, 0xFF4F,
     289    /* 3 */     0xFF50, 0xFF51, 0xFF52, 0xFF53, 0xFF54, 0xFF55, 0xFF56, 0xFF57, 0xFF58, 0xFF59, 0xFF5A, 0xFF3B, 0xFF3C, 0xFF3D, 0xFF3E, 0xFF3F,
     290    /* 4 */     0xFF40, 0xFF41, 0xFF42, 0xFF43, 0xFF44, 0xFF45, 0xFF46, 0xFF47, 0xFF48, 0xFF49, 0xFF4A, 0xFF4B, 0xFF4C, 0xFF4D, 0xFF4E, 0xFF4F,
     291    /* 5 */     0xFF50, 0xFF51, 0xFF52, 0xFF53, 0xFF54, 0xFF55, 0xFF56, 0xFF57, 0xFF58, 0xFF59, 0xFF5A, 0xFF5B, 0xFF5C, 0xFF5D, 0xFF5E, 0xFF5F,
     292    /* 6 */     0xFF60, 0xFF61, 0xFF62, 0xFF63, 0xFF64, 0xFF65, 0xFF66, 0xFF67, 0xFF68, 0xFF69, 0xFF6A, 0xFF6B, 0xFF6C, 0xFF6D, 0xFF6E, 0xFF6F,
     293    /* 7 */     0xFF70, 0xFF71, 0xFF72, 0xFF73, 0xFF74, 0xFF75, 0xFF76, 0xFF77, 0xFF78, 0xFF79, 0xFF7A, 0xFF7B, 0xFF7C, 0xFF7D, 0xFF7E, 0xFF7F,
     294    /* 8 */     0xFF80, 0xFF81, 0xFF82, 0xFF83, 0xFF84, 0xFF85, 0xFF86, 0xFF87, 0xFF88, 0xFF89, 0xFF8A, 0xFF8B, 0xFF8C, 0xFF8D, 0xFF8E, 0xFF8F,
     295    /* 9 */     0xFF90, 0xFF91, 0xFF92, 0xFF93, 0xFF94, 0xFF95, 0xFF96, 0xFF97, 0xFF98, 0xFF99, 0xFF9A, 0xFF9B, 0xFF9C, 0xFF9D, 0xFF9E, 0xFF9F,
     296    /* A */     0xFFA0, 0xFFA1, 0xFFA2, 0xFFA3, 0xFFA4, 0xFFA5, 0xFFA6, 0xFFA7, 0xFFA8, 0xFFA9, 0xFFAA, 0xFFAB, 0xFFAC, 0xFFAD, 0xFFAE, 0xFFAF,
     297    /* B */     0xFFB0, 0xFFB1, 0xFFB2, 0xFFB3, 0xFFB4, 0xFFB5, 0xFFB6, 0xFFB7, 0xFFB8, 0xFFB9, 0xFFBA, 0xFFBB, 0xFFBC, 0xFFBD, 0xFFBE, 0xFFBF,
     298    /* C */     0xFFC0, 0xFFC1, 0xFFC2, 0xFFC3, 0xFFC4, 0xFFC5, 0xFFC6, 0xFFC7, 0xFFC8, 0xFFC9, 0xFFCA, 0xFFCB, 0xFFCC, 0xFFCD, 0xFFCE, 0xFFCF,
     299    /* D */     0xFFD0, 0xFFD1, 0xFFD2, 0xFFD3, 0xFFD4, 0xFFD5, 0xFFD6, 0xFFD7, 0xFFD8, 0xFFD9, 0xFFDA, 0xFFDB, 0xFFDC, 0xFFDD, 0xFFDE, 0xFFDF,
     300    /* E */     0xFFE0, 0xFFE1, 0xFFE2, 0xFFE3, 0xFFE4, 0xFFE5, 0xFFE6, 0xFFE7, 0xFFE8, 0xFFE9, 0xFFEA, 0xFFEB, 0xFFEC, 0xFFED, 0xFFEE, 0xFFEF,
     301    /* F */     0xFFF0, 0xFFF1, 0xFFF2, 0xFFF3, 0xFFF4, 0xFFF5, 0xFFF6, 0xFFF7, 0xFFF8, 0xFFF9, 0xFFFA, 0xFFFB, 0xFFFC, 0xFFFD, 0xFFFE, 0xFFFF,
    302302};
    303303#endif
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxFsDxe/fsw_strfunc.h

    r48674 r48947  
    3333    fsw_u8 *p2 = (fsw_u8 *)s2data;
    3434    fsw_u32 c1, c2;
    35    
     35
    3636    for (i = 0; i < len; i++) {
    3737        c1 = *p1++;
     
    6060    fsw_u16 *p2 = (fsw_u16 *)s2data;
    6161    fsw_u32 c1, c2;
    62    
     62
    6363    for (i = 0; i < len; i++) {
    6464        c1 = *p1++;
     
    7777    fsw_u16 *p2 = (fsw_u16 *)s2data;
    7878    fsw_u32 c1, c2;
    79    
     79
    8080    for (i = 0; i < len; i++) {
    8181        c1 = *p1++;
     
    9393    fsw_u16 *p2 = (fsw_u16 *)s2data;
    9494    fsw_u32 c1, c2;
    95    
     95
    9696    for (i = 0; i < len; i++) {
    9797        c1 = *p1++;
     
    119119    fsw_u16 *p2 = (fsw_u16 *)s2data;
    120120    fsw_u32 c1, c2;
    121    
     121
    122122    for (i = 0; i < len; i++) {
    123123        c1 = *p1++;
     
    145145    fsw_u16 *p2 = (fsw_u16 *)s2data;
    146146    fsw_u32 c1, c2;
    147    
     147
    148148    for (i = 0; i < len; i++) {
    149149        c1 = *p1++;
     
    162162    fsw_u8       *dp;
    163163    fsw_u32         c;
    164    
     164
    165165    dest->type = FSW_STRING_TYPE_ISO88591;
    166166    dest->len  = srclen;
     
    169169    if (status)
    170170        return status;
    171    
     171
    172172    sp = (fsw_u8 *)srcdata;
    173173    dp = (fsw_u8 *)dest->data;
     
    196196    fsw_u8       *dp;
    197197    fsw_u32         c;
    198    
     198
    199199    dest->type = FSW_STRING_TYPE_ISO88591;
    200200    dest->len  = srclen;
     
    203203    if (status)
    204204        return status;
    205    
     205
    206206    sp = (fsw_u16 *)srcdata;
    207207    dp = (fsw_u8 *)dest->data;
     
    220220    fsw_u8       *dp;
    221221    fsw_u32         c;
    222    
     222
    223223    dest->type = FSW_STRING_TYPE_ISO88591;
    224224    dest->len  = srclen;
     
    227227    if (status)
    228228        return status;
    229    
     229
    230230    sp = (fsw_u16 *)srcdata;
    231231    dp = (fsw_u8 *)dest->data;
     
    244244    fsw_u16       *dp;
    245245    fsw_u32         c;
    246    
     246
    247247    dest->type = FSW_STRING_TYPE_UTF16;
    248248    dest->len  = srclen;
     
    251251    if (status)
    252252        return status;
    253    
     253
    254254    sp = (fsw_u8 *)srcdata;
    255255    dp = (fsw_u16 *)dest->data;
     
    268268    fsw_u16       *dp;
    269269    fsw_u32         c;
    270    
     270
    271271    dest->type = FSW_STRING_TYPE_UTF16;
    272272    dest->len  = srclen;
     
    275275    if (status)
    276276        return status;
    277    
     277
    278278    sp = (fsw_u8 *)srcdata;
    279279    dp = (fsw_u16 *)dest->data;
     
    302302    fsw_u16       *dp;
    303303    fsw_u32         c;
    304    
     304
    305305    dest->type = FSW_STRING_TYPE_UTF16;
    306306    dest->len  = srclen;
     
    309309    if (status)
    310310        return status;
    311    
     311
    312312    sp = (fsw_u16 *)srcdata;
    313313    dp = (fsw_u16 *)dest->data;
     
    326326    fsw_u8       *dp;
    327327    fsw_u32         c;
    328    
     328
    329329    sp = (fsw_u8 *)srcdata;
    330330    destsize = 0;
    331331    for (i = 0; i < srclen; i++) {
    332332        c = *sp++;
    333        
     333
    334334        if (c < 0x000080)
    335335            destsize++;
     
    341341            destsize += 4;
    342342    }
    343    
     343
    344344    dest->type = FSW_STRING_TYPE_UTF8;
    345345    dest->len  = srclen;
     
    348348    if (status)
    349349        return status;
    350    
     350
    351351    sp = (fsw_u8 *)srcdata;
    352352    dp = (fsw_u8 *)dest->data;
    353353    for (i = 0; i < srclen; i++) {
    354354        c = *sp++;
    355        
     355
    356356        if (c < 0x000080) {
    357357            *dp++ = (fsw_u8)c;
     
    380380    fsw_u8       *dp;
    381381    fsw_u32         c;
    382    
     382
    383383    sp = (fsw_u16 *)srcdata;
    384384    destsize = 0;
    385385    for (i = 0; i < srclen; i++) {
    386386        c = *sp++;
    387        
     387
    388388        if (c < 0x000080)
    389389            destsize++;
     
    395395            destsize += 4;
    396396    }
    397    
     397
    398398    dest->type = FSW_STRING_TYPE_UTF8;
    399399    dest->len  = srclen;
     
    402402    if (status)
    403403        return status;
    404    
    405     sp = (fsw_u16 *)srcdata;
    406     dp = (fsw_u8 *)dest->data;
    407     for (i = 0; i < srclen; i++) {
    408         c = *sp++;
    409        
     404
     405    sp = (fsw_u16 *)srcdata;
     406    dp = (fsw_u8 *)dest->data;
     407    for (i = 0; i < srclen; i++) {
     408        c = *sp++;
     409
    410410        if (c < 0x000080) {
    411411            *dp++ = (fsw_u8)c;
     
    434434    fsw_u8       *dp;
    435435    fsw_u32         c;
    436    
     436
    437437    sp = (fsw_u16 *)srcdata;
    438438    destsize = 0;
    439439    for (i = 0; i < srclen; i++) {
    440440        c = *sp++; c = FSW_SWAPVALUE_U16(c);
    441        
     441
    442442        if (c < 0x000080)
    443443            destsize++;
     
    449449            destsize += 4;
    450450    }
    451    
     451
    452452    dest->type = FSW_STRING_TYPE_UTF8;
    453453    dest->len  = srclen;
     
    456456    if (status)
    457457        return status;
    458    
     458
    459459    sp = (fsw_u16 *)srcdata;
    460460    dp = (fsw_u8 *)dest->data;
    461461    for (i = 0; i < srclen; i++) {
    462462        c = *sp++; c = FSW_SWAPVALUE_U16(c);
    463        
     463
    464464        if (c < 0x000080) {
    465465            *dp++ = (fsw_u8)c;
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxIdeBusDxe/Ata.c

    r48674 r48947  
    2626
    2727/** @file
    28   This file contains all helper functions on the ATA command 
    29  
     28  This file contains all helper functions on the ATA command
     29
    3030  Copyright (c) 2006 - 2008, Intel Corporation.<BR>
    3131  All rights reserved. This program and the accompanying materials
     
    5858                all the information of the IDE device.
    5959
    60   @retval EFI_SUCCESS       The disk specified by IdeDev is a Atapi6 supported one and 
     60  @retval EFI_SUCCESS       The disk specified by IdeDev is a Atapi6 supported one and
    6161                            48-bit addressing must be used
    62   @retval EFI_UNSUPPORTED   The disk doesn't not support Atapi6 or it supports but the 
     62  @retval EFI_UNSUPPORTED   The disk doesn't not support Atapi6 or it supports but the
    6363                            capacity is below 120G, 48bit addressing is not needed
    6464  @retval  EFI_DEVICE_ERROR      The identify data in IdeDev is incorrect
     
    137137  Enable SMART of the disk if supported
    138138
    139   @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure,used to record 
     139  @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure,used to record
    140140                all the information of the IDE device.
    141141**/
     
    290290  including device type, media block size, media capacity, and etc.
    291291
    292   @param IdeDev  pointer pointing to IDE_BLK_IO_DEV data structure,used to record 
     292  @param IdeDev  pointer pointing to IDE_BLK_IO_DEV data structure,used to record
    293293                 all the information of the IDE device.
    294294
     
    307307  UINT32            Capacity;
    308308  UINT8             DeviceSelect;
    309   UINTN                         Retry;
     309  UINTN                         Retry;
    310310
    311311  //
     
    324324  DeviceSelect  = (UINT8) ((IdeDev->Device) << 4);
    325325
    326  
     326
    327327  Retry = 3;
    328   while (Retry > 0) {   
     328  while (Retry > 0) {
    329329    Status = AtaPioDataIn (
    330330              IdeDev,
     
    375375          return EFI_SUCCESS;
    376376        } else if (Status == EFI_DEVICE_ERROR) {
    377                   //
    378                   // Some disk with big capacity (>200GB) is slow when being identified
    379                   // and will return all zero for word83.
    380                   // We try twice at first. If it fails, we do a SoftRest and try again.
    381                   //
    382                   Retry--;
    383                   if (Retry == 1) {
    384                     //
    385                     // Do a SoftRest before the third attempt.
    386                     //
    387                     AtaSoftReset (IdeDev);
    388                   }
    389                   continue;
    390             }
     377                  //
     378                  // Some disk with big capacity (>200GB) is slow when being identified
     379                  // and will return all zero for word83.
     380                  // We try twice at first. If it fails, we do a SoftRest and try again.
     381                  //
     382                  Retry--;
     383                  if (Retry == 1) {
     384                    //
     385                    // Do a SoftRest before the third attempt.
     386                    //
     387                    AtaSoftReset (IdeDev);
     388                  }
     389                  continue;
     390            }
    391391        //
    392392        // This is a hard disk <= 120GB capacity, treat it as normal hard disk
     
    417417
    418418    }
    419         break;
     419        break;
    420420  }
    421421
     
    431431/**
    432432  This function is a helper function used to change the char order in a string. It
    433   is designed specially for the PrintAtaModuleName() function. After the IDE device 
    434   is detected, the IDE driver gets the device module name by sending ATA command 
     433  is designed specially for the PrintAtaModuleName() function. After the IDE device
     434  is detected, the IDE driver gets the device module name by sending ATA command
    435435  called ATA Identify Command or ATAPI Identify Command to the specified IDE device.
    436436  The module name returned is a string of ASCII characters: the first character is bit8--bit15
    437437  of the first word, the second character is BIT0--bit7 of the first word and so on. Thus
    438   the string can not be print directly before it is preprocessed by this func to change 
     438  the string can not be print directly before it is preprocessed by this func to change
    439439  the order of characters in each word in the string.
    440440
     
    482482  This function is used to send out ATA commands conforms to the PIO Data In Protocol.
    483483
    484   @param IdeDev       pointer pointing to IDE_BLK_IO_DEV data structure, used to record 
     484  @param IdeDev       pointer pointing to IDE_BLK_IO_DEV data structure, used to record
    485485                      all the information of the IDE device.
    486486  @param Buffer       buffer contained data transferred from device to host.
     
    492492  @param CylinderLsb  value of the low byte of the Cylinder Register
    493493  @param CylinderMsb  value of the high byte of the Cylinder Register
    494  
     494
    495495  @retval EFI_SUCCESS      send out the ATA command and device send required data successfully.
    496496  @retval EFI_DEVICE_ERROR command sent failed.
     
    779779  Register, the Error Register's value is also be parsed and print out.
    780780
    781   @param IdeDev  pointer pointing to IDE_BLK_IO_DEV data structure, used to 
     781  @param IdeDev  pointer pointing to IDE_BLK_IO_DEV data structure, used to
    782782                 record all the information of the IDE device.
    783783
     
    877877
    878878/**
    879   This function is called by the AtaBlkIoReadBlocks() to perform reading from 
     879  This function is called by the AtaBlkIoReadBlocks() to perform reading from
    880880  media in block unit.
    881881
    882   @param IdeDev         pointer pointing to IDE_BLK_IO_DEV data structure, used to record 
     882  @param IdeDev         pointer pointing to IDE_BLK_IO_DEV data structure, used to record
    883883                        all the information of the IDE device.
    884884  @param DataBuffer     A pointer to the destination buffer for the data.
    885885  @param Lba            The starting logical block address to read from on the device media.
    886886  @param NumberOfBlocks The number of transfer data blocks.
    887  
     887
    888888  @return status is fully dependent on the return status of AtaPioDataIn() function.
    889889
     
    986986
    987987/**
    988   This function is called by the AtaBlkIoWriteBlocks() to perform writing onto 
     988  This function is called by the AtaBlkIoWriteBlocks() to perform writing onto
    989989  media in block unit.
    990990
     
    994994  @param Lba            The starting logical block address to write onto the device media.
    995995  @param NumberOfBlocks The number of transfer data blocks.
    996  
     996
    997997  @return status is fully dependent on the return status of AtaPioDataIn() function.
    998998
     
    10821082/**
    10831083  This function is used to implement the Soft Reset on the specified device. But,
    1084   the ATA Soft Reset mechanism is so strong a reset method that it will force 
     1084  the ATA Soft Reset mechanism is so strong a reset method that it will force
    10851085  resetting on both devices connected to the same cable.
    10861086
     
    11471147}
    11481148/**
    1149   This function is used to send out ATA commands conforms to the PIO Data In 
     1149  This function is used to send out ATA commands conforms to the PIO Data In
    11501150  Protocol, supporting ATA/ATAPI-6 standard
    11511151
     
    16221622  //
    16231623  IdeDev->PciIo->Io.Read (
    1624                                           IdeDev->PciIo,
    1625                                           EfiPciIoWidthUint8,
    1626                                           EFI_PCI_IO_PASS_THROUGH_BAR,
    1627                                           IoPortForBmis,
    1628                                           1,
    1629                                           &RegisterValue
    1630                                           );
    1631  
     1624                                          IdeDev->PciIo,
     1625                                          EfiPciIoWidthUint8,
     1626                                          EFI_PCI_IO_PASS_THROUGH_BAR,
     1627                                          IoPortForBmis,
     1628                                          1,
     1629                                          &RegisterValue
     1630                                          );
     1631
    16321632  RegisterValue |= (BMIS_INTERRUPT | BMIS_ERROR);
    1633  
     1633
    16341634  IdeDev->PciIo->Io.Write (
    1635                                           IdeDev->PciIo,
    1636                                           EfiPciIoWidthUint8,
    1637                                           EFI_PCI_IO_PASS_THROUGH_BAR,
    1638                                           IoPortForBmis,
    1639                                           1,
    1640                                           &RegisterValue
    1641                                           );
     1635                                          IdeDev->PciIo,
     1636                                          EfiPciIoWidthUint8,
     1637                                          EFI_PCI_IO_PASS_THROUGH_BAR,
     1638                                          IoPortForBmis,
     1639                                          1,
     1640                                          &RegisterValue
     1641                                          );
    16421642
    16431643  Status = EFI_SUCCESS;
    1644  
     1644
    16451645  RemainBlockNum = NumberOfBlocks;
    16461646  while (RemainBlockNum > 0) {
     
    18401840      if (((RegisterValue & (BMIS_INTERRUPT | BMIS_ERROR)) != 0) || (Count == 0)) {
    18411841        if (((RegisterValue & BMIS_ERROR) != 0) || (Count == 0)) {
    1842                   Status = EFI_DEVICE_ERROR;
    1843                   break;
     1842                  Status = EFI_DEVICE_ERROR;
     1843                  break;
    18441844        }
    18451845        break;
     
    18741874                        &RegisterValue
    18751875                        );
    1876         //
     1876        //
    18771877    // Read Status Register of IDE device to clear interrupt
    18781878    //
     
    19051905    }
    19061906
    1907         if (EFI_ERROR (Status)) {
    1908           break;
    1909         }
     1907        if (EFI_ERROR (Status)) {
     1908          break;
     1909        }
    19101910    DataBuffer = (UINT8 *) DataBuffer + NumberOfBlocks * IdeDev->BlkIo.Media->BlockSize;
    19111911    StartLba += NumberOfBlocks;
     
    19251925/**
    19261926  This function is called by the AtaBlkIoReadBlocks() to perform reading from
    1927   media in block unit. The function has been enhanced to support >120GB access 
     1927  media in block unit. The function has been enhanced to support >120GB access
    19281928  and transfer at most 65536 blocks per command
    19291929
    1930   @param IdeDev         pointer pointing to IDE_BLK_IO_DEV data structure, used to record 
     1930  @param IdeDev         pointer pointing to IDE_BLK_IO_DEV data structure, used to record
    19311931                        all the information of the IDE device.
    19321932  @param DataBuffer     A pointer to the destination buffer for the data.
     
    19571957                        on the device media.
    19581958  @param NumberOfBlocks The number of transfer data blocks.
    1959  
     1959
    19601960  @return status depends on the function DoAtaUdma() returns.
    19611961**/
     
    23402340/**
    23412341  This function is called by the AtaBlkIoWriteBlocks() to perform
    2342   writing to media in block unit. 
     2342  writing to media in block unit.
    23432343
    23442344  @param IdeDev         pointer pointing to IDE_BLK_IO_DEV data structure, used
     
    23482348                        on the device media.
    23492349  @param NumberOfBlocks The number of transfer data blocks.
    2350  
     2350
    23512351  @return status depends on the function DoAtaUdma() returns.
    23522352**/
     
    23692369                        to record all the information of the IDE device.
    23702370  @param DataBuffer     A pointer to the source buffer for the data.
    2371   @param StartLba       The starting logical block address to write onto the device 
     2371  @param StartLba       The starting logical block address to write onto the device
    23722372                        media.
    23732373  @param NumberOfBlocks The number of transfer data blocks.
     
    24502450                         of the intrinsic block size of the device.
    24512451  @param Buffer          A pointer to the source buffer for the data.The caller
    2452                          is responsible for either having implicit or explicit 
     2452                         is responsible for either having implicit or explicit
    24532453                         ownership of the memory that data is written from.
    24542454
     
    28212821}
    28222822
    2823 
    2824 
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxIdeBusDxe/Atapi.c

    r48674 r48947  
    2626
    2727/** @file
    28    This file contains all helper functions on the ATAPI command 
    29  
    30   Copyright (c) 2006 - 2008, Intel Corporation                                                       
    31   All rights reserved. This program and the accompanying materials                         
    32   are licensed and made available under the terms and conditions of the BSD License         
    33   which accompanies this distribution.  The full text of the license may be found at       
    34   http://opensource.org/licenses/bsd-license.php                                           
    35 
    36   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
    37   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
     28   This file contains all helper functions on the ATAPI command
     29
     30  Copyright (c) 2006 - 2008, Intel Corporation
     31  All rights reserved. This program and the accompanying materials
     32  are licensed and made available under the terms and conditions of the BSD License
     33  which accompanies this distribution.  The full text of the license may be found at
     34  http://opensource.org/licenses/bsd-license.php
     35
     36  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     37  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
    3838
    3939**/
     
    4343/**
    4444  This function is used to get the current status of the media residing
    45   in the LS-120 drive or ZIP drive. The media status is returned in the 
     45  in the LS-120 drive or ZIP drive. The media status is returned in the
    4646  Error Status.
    4747
     
    5555  @retval EFI_WRITE_PROTECTED The media is writing protected.
    5656
    57   @note  This function must be called after the LS120EnableMediaStatus() 
    58          with second parameter set to TRUE 
     57  @note  This function must be called after the LS120EnableMediaStatus()
     58         with second parameter set to TRUE
    5959         (means enable media status notification) is called.
    6060**/
     
    216216      IDEReadPortWMultiple (
    217217        IdeDev->PciIo,
    218         IdeDev->IoPort->Data, 
    219         1, 
     218        IdeDev->IoPort->Data,
     219        1,
    220220        &TempWordBuffer
    221221        );
     
    227227
    228228/**
    229   This function is called by either AtapiPacketCommandIn() or AtapiPacketCommandOut(). 
     229  This function is called by either AtapiPacketCommandIn() or AtapiPacketCommandOut().
    230230  It is used to transfer data between host and device. The data direction is specified
    231231  by the fourth parameter.
     
    273273  //
    274274  // for performance, we assert the ByteCount is an even number
    275   // which is actually a reasonable assumption 
     275  // which is actually a reasonable assumption
    276276  ASSERT((ByteCount%2) == 0);
    277  
     277
    278278  PtrBuffer         = Buffer;
    279279  RequiredWordCount = ByteCount / 2;
     
    284284
    285285  while (ActualWordCount < RequiredWordCount) {
    286    
     286
    287287    //
    288288    // before each data transfer stream, the host should poll DRQ bit ready,
     
    293293      return CheckErrorStatus (IdeDev);
    294294    }
    295    
     295
    296296    //
    297297    // read Status Register will clear interrupt
     
    328328    ActualWordCount += WordCount;
    329329  }
    330  
     330
    331331  if (Read) {
    332332    //
     
    353353
    354354/**
    355   This function is used to send out ATAPI commands conforms to the Packet Command 
     355  This function is used to send out ATAPI commands conforms to the Packet Command
    356356  with PIO Data In Protocol.
    357357
     
    359359                   to record all the information of the IDE device.
    360360  @param Packet    pointer pointing to ATAPI_PACKET_COMMAND data structure
    361                    which contains the contents of the command.     
     361                   which contains the contents of the command.
    362362  @param Buffer    buffer contained data transferred from device to host.
    363363  @param ByteCount data size in byte unit of the buffer.
    364   @param TimeOut   this parameter is used to specify the timeout value for the 
    365                    PioReadWriteData() function. 
     364  @param TimeOut   this parameter is used to specify the timeout value for the
     365                   PioReadWriteData() function.
    366366
    367367  @retval EFI_SUCCESS       send out the ATAPI packet command successfully
     
    464464  @param Buffer      buffer contained data transferred from host to device.
    465465  @param ByteCount   data size in byte unit of the buffer.
    466   @param TimeOut     this parameter is used to specify the timeout value 
    467                      for the PioReadWriteData() function. 
     466  @param TimeOut     this parameter is used to specify the timeout value
     467                     for the PioReadWriteData() function.
    468468  @retval EFI_SUCCESS      send out the ATAPI packet command successfully
    469                            and device received data successfully. 
     469                           and device received data successfully.
    470470  @retval EFI_DEVICE_ERROR the device failed to send data.
    471471
     
    492492    return Status;
    493493  }
    494  
     494
    495495  //
    496496  // Select device via Device/Head Register.
     
    614614
    615615  There are 5 steps to reach such objective:
    616   1. Sends out the ATAPI Identify Command to the specified device. 
     616  1. Sends out the ATAPI Identify Command to the specified device.
    617617  Only ATAPI device responses to this command. If the command succeeds,
    618   it returns the Identify data structure which filled with information 
    619   about the device. Since the ATAPI device contains removable media, 
     618  it returns the Identify data structure which filled with information
     619  about the device. Since the ATAPI device contains removable media,
    620620  the only meaningful information is the device module name.
    621621  2. Sends out ATAPI Inquiry Packet Command to the specified device.
     
    623623  the device type information.
    624624  3. Allocate sense data space for future use. We don't detect the media
    625   presence here to improvement boot performance, especially when CD 
     625  presence here to improvement boot performance, especially when CD
    626626  media is present. The media detection will be performed just before
    627627  each BLK_IO read/write
    628  
     628
    629629  @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure, used
    630630                 to record all the information of the IDE device.
     
    633633  @retval EFI_DEVICE_ERROR  ATAPI Identify Device Command failed or device type
    634634                            is not supported by this IDE driver.
    635   @retval EFI_OUT_OF_RESOURCES Allocate memory for sense data failed 
     635  @retval EFI_OUT_OF_RESOURCES Allocate memory for sense data failed
    636636
    637637  @note   Parameter "IdeDev" will be updated in this function.
     
    746746  //
    747747  case 0x04:
    748  
     748
    749749  //
    750750  // Optical
     
    785785/**
    786786  Sends out ATAPI Request Sense Packet Command to the specified device. This command
    787   will return all the current Sense data in the device.  This function will pack 
     787  will return all the current Sense data in the device.  This function will pack
    788788  all the Sense data in one single buffer.
    789789
     
    791791                      to record all the information of the IDE device.
    792792  @param SenseCounts  allocated in this function, and freed by the calling function.
    793                       This buffer is used to accommodate all the sense data returned 
     793                      This buffer is used to accommodate all the sense data returned
    794794                      by the device.
    795795
     
    877877/**
    878878  This function is used to parse sense data. Only the first sense data is honoured
    879  
     879
    880880  @param IdeDev     Indicates the calling context.
    881881  @param SenseCount Count of sense data.
     
    963963AtapiTestUnitReady (
    964964  IN  IDE_BLK_IO_DEV  *IdeDev,
    965   OUT SENSE_RESULT    *SResult 
     965  OUT SENSE_RESULT    *SResult
    966966  )
    967967{
    968968  ATAPI_PACKET_COMMAND  Packet;
    969969  EFI_STATUS            Status;
    970   UINTN                                 SenseCount;
     970  UINTN                                 SenseCount;
    971971
    972972  //
     
    10011001  Current device status will impact device's response to the Read Capacity
    10021002  Command. For example, if the device once reset, the Read Capacity
    1003   Command will fail. The Sense data record the current device status, so 
     1003  Command will fail. The Sense data record the current device status, so
    10041004  if the Read Capacity Command failed, the Sense data must be requested
    10051005  and be analyzed to determine if the Read Capacity Command should retry.
     
    10151015  @note Parameter "IdeDev" will be updated in this function.
    10161016
    1017  
     1017
    10181018**/
    10191019EFI_STATUS
    10201020AtapiReadCapacity (
    10211021  IN  IDE_BLK_IO_DEV  *IdeDev,
    1022   OUT SENSE_RESULT        *SResult 
     1022  OUT SENSE_RESULT        *SResult
    10231023  )
    10241024{
     
    10291029  EFI_STATUS                SenseStatus;
    10301030  ATAPI_PACKET_COMMAND      Packet;
    1031   UINTN                                         SenseCount;
     1031  UINTN                                         SenseCount;
    10321032
    10331033  //
     
    10751075
    10761076  if (!EFI_ERROR (SenseStatus)) {
    1077         ParseSenseData (IdeDev, SenseCount, SResult);                   
    1078                                                                                                                          
    1079         if (!EFI_ERROR (Status) && *SResult == SenseNoSenseKey) {
     1077        ParseSenseData (IdeDev, SenseCount, SResult);
     1078
     1079        if (!EFI_ERROR (Status) && *SResult == SenseNoSenseKey) {
    10801080      if (IdeDev->Type == IdeCdRom) {
    10811081
     
    10851085          Data.LastLba0;
    10861086
    1087               IdeDev->BlkIo.Media->MediaPresent = TRUE;
     1087              IdeDev->BlkIo.Media->MediaPresent = TRUE;
    10881088
    10891089        IdeDev->BlkIo.Media->ReadOnly = TRUE;
     
    11041104
    11051105          IdeDev->BlkIo.Media->LastBlock =  (FormatData.LastLba3 << 24) |
    1106             (FormatData.LastLba2 << 16) | 
     1106            (FormatData.LastLba2 << 16) |
    11071107            (FormatData.LastLba1 << 8)  |
    11081108            FormatData.LastLba0;
     
    11371137/**
    11381138  This function is used to test the current media write-protected or not residing
    1139   in the LS-120 drive or ZIP drive. 
     1139  in the LS-120 drive or ZIP drive.
    11401140  @param IdeDev          pointer pointing to IDE_BLK_IO_DEV data structure, used
    11411141                         to record all the information of the IDE device.
     
    11861186
    11871187/**
    1188   Used before read/write blocks from/to ATAPI device media. Since ATAPI device 
    1189   media is removable, it is necessary to detect whether media is present and 
     1188  Used before read/write blocks from/to ATAPI device media. Since ATAPI device
     1189  media is removable, it is necessary to detect whether media is present and
    11901190  get current present media's information, and if media has been changed, Block
    11911191  I/O Protocol need to be reinstalled.
     
    14361436  read from media in block unit.
    14371437
    1438   The main command used to access media here is READ(10) Command. 
    1439   READ(10) Command requests that the ATAPI device media transfer 
    1440   specified data to the host. Data is transferred in block(sector) 
     1438  The main command used to access media here is READ(10) Command.
     1439  READ(10) Command requests that the ATAPI device media transfer
     1440  specified data to the host. Data is transferred in block(sector)
    14411441  unit. The maximum number of blocks that can be transferred once is
    1442   65536. This is the main difference between READ(10) and READ(12) 
     1442  65536. This is the main difference between READ(10) and READ(12)
    14431443  Command. The maximum number of blocks in READ(12) is 2 power 32.
    14441444
    14451445  @param IdeDev           pointer pointing to IDE_BLK_IO_DEV data structure, used
    14461446                          to record all the information of the IDE device.
    1447   @param Buffer           A pointer to the destination buffer for the data. 
    1448   @param Lba              The starting logical block address to read from on the 
     1447  @param Buffer           A pointer to the destination buffer for the data.
     1448  @param Lba              The starting logical block address to read from on the
    14491449                          device media.
    14501450  @param NumberOfBlocks   The number of transfer data blocks.
     
    15541554  This function is called by the AtapiBlkIoWriteBlocks() to perform
    15551555  write onto media in block unit.
    1556   The main command used to access media here is Write(10) Command. 
    1557   Write(10) Command requests that the ATAPI device media transfer 
    1558   specified data to the host. Data is transferred in block (sector) 
     1556  The main command used to access media here is Write(10) Command.
     1557  Write(10) Command requests that the ATAPI device media transfer
     1558  specified data to the host. Data is transferred in block (sector)
    15591559  unit. The maximum number of blocks that can be transferred once is
    1560   65536. 
     1560  65536.
    15611561
    15621562  @param IdeDev          pointer pointing to IDE_BLK_IO_DEV data structure, used
    15631563                         to record all the information of the IDE device.
    1564   @param Buffer          A pointer to the source buffer for the data. 
    1565   @param Lba             The starting logical block address to write onto 
     1564  @param Buffer          A pointer to the source buffer for the data.
     1565  @param Lba             The starting logical block address to write onto
    15661566                         the device media.
    15671567  @param NumberOfBlocks  The number of transfer data blocks.
    1568  
     1568
    15691569  @return status is fully dependent on the return status of AtapiPacketCommandOut() function.
    15701570
     
    16211621      SectorCount = (UINT16) BlocksRemaining;
    16221622    }
    1623  
     1623
    16241624    //
    16251625    // Command code is WRITE_10.
     
    16721672  command should be sent without waiting for the BSY clear and DRDY
    16731673  set.
    1674   This function is called by IdeBlkIoReset(), 
     1674  This function is called by IdeBlkIoReset(),
    16751675  a interface function of Block I/O protocol.
    16761676
     
    17101710    return EFI_DEVICE_ERROR;
    17111711  }
    1712  
     1712
    17131713  //
    17141714  // stall 5 seconds to make the device status stable
     
    17291729                        of the intrinsic block size of the device.
    17301730  @param Buffer         A pointer to the destination buffer for the data. The caller
    1731                         is responsible for either having implicit or explicit 
     1731                        is responsible for either having implicit or explicit
    17321732                        ownership of the memory that data is read into.
    1733  
     1733
    17341734  @retval EFI_SUCCESS           Read Blocks successfully.
    17351735  @retval EFI_DEVICE_ERROR      Read Blocks failed.
     
    18311831    return EFI_DEVICE_ERROR;
    18321832  }
    1833  
     1833
    18341834  //
    18351835  // Read blocks succeeded
    18361836  //
    1837  
     1837
    18381838  //
    18391839  // save the first block to the cache for performance
     
    18671867  @retval EFI_MEDIA_CHANGE       The MediaId is not for the current media.
    18681868  @retval EFI_BAD_BUFFER_SIZE    The BufferSize parameter is not a multiple of the
    1869                                  intrinsic block size of the device. 
    1870   @retval EFI_INVALID_PARAMETER  The write request contains LBAs that are not valid, 
     1869                                 intrinsic block size of the device.
     1870  @retval EFI_INVALID_PARAMETER  The write request contains LBAs that are not valid,
    18711871                                 or the data buffer is not valid.
    18721872
     
    19161916    return Status;
    19171917  }
    1918  
     1918
    19191919  //
    19201920  // Get the intrinsic block size
     
    19751975}
    19761976
    1977 
    1978 
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxIdeBusDxe/ComponentName.c

    r48674 r48947  
    2727/** @file
    2828  UEFI Component Name(2) protocol implementation for ConPlatform driver.
    29  
    30   Copyright (c) 2006 - 2008, Intel Corporation                                                         
    31   All rights reserved. This program and the accompanying materials                         
    32   are licensed and made available under the terms and conditions of the BSD License         
    33   which accompanies this distribution.  The full text of the license may be found at       
    34   http://opensource.org/licenses/bsd-license.php                                           
    35 
    36   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
    37   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
     29
     30  Copyright (c) 2006 - 2008, Intel Corporation
     31  All rights reserved. This program and the accompanying materials
     32  are licensed and made available under the terms and conditions of the BSD License
     33  which accompanies this distribution.  The full text of the license may be found at
     34  http://opensource.org/licenses/bsd-license.php
     35
     36  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     37  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
    3838
    3939**/
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxIdeBusDxe/ComponentName.h

    r48674 r48947  
    2626
    2727/** @file
    28  
     28
    2929  UEFI Component Name(2) protocol implementation header file for IDE Bus driver.
    30  
     30
    3131  Copyright (c) 2006, Intel Corporation
    3232  All rights reserved. This program and the accompanying materials
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxIdeBusDxe/DriverConfiguration.c

    r48674 r48947  
    2626
    2727/** @file
    28   Implementation of UEFI Driver Configuration Protocol for IDE bus driver which 
     28  Implementation of UEFI Driver Configuration Protocol for IDE bus driver which
    2929  provides ability to set IDE bus controller specific options.
    30  
    31   Copyright (c) 2006 - 2008, Intel Corporation                                                         
    32   All rights reserved. This program and the accompanying materials                         
    33   are licensed and made available under the terms and conditions of the BSD License         
    34   which accompanies this distribution.  The full text of the license may be found at       
    35   http://opensource.org/licenses/bsd-license.php                                           
    36 
    37   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
    38   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
     30
     31  Copyright (c) 2006 - 2008, Intel Corporation
     32  All rights reserved. This program and the accompanying materials
     33  are licensed and made available under the terms and conditions of the BSD License
     34  which accompanies this distribution.  The full text of the license may be found at
     35  http://opensource.org/licenses/bsd-license.php
     36
     37  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     38  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
    3939
    4040**/
     
    107107
    108108/**
    109   Allows the user to set controller specific options for a controller that a 
     109  Allows the user to set controller specific options for a controller that a
    110110  driver is currently managing.
    111111
     
    118118                            It will not be NULL for a bus driver that wishes to set
    119119                            options for one of its child controllers.
    120   @param  Language          A pointer to a three character ISO 639-2 language identifier. 
    121                             This is the language of the user interface that should be presented 
    122                             to the user, and it must match one of the languages specified in 
     120  @param  Language          A pointer to a three character ISO 639-2 language identifier.
     121                            This is the language of the user interface that should be presented
     122                            to the user, and it must match one of the languages specified in
    123123                            SupportedLanguages. The number of languages supported by a driver is up to
    124124                            the driver writer.
    125   @param  ActionRequired    A pointer to the action that the calling agent is required 
     125  @param  ActionRequired    A pointer to the action that the calling agent is required
    126126                            to perform when this function returns.
    127  
    128 
    129   @retval  EFI_SUCCESS           The driver specified by This successfully set the configuration 
     127
     128
     129  @retval  EFI_SUCCESS           The driver specified by This successfully set the configuration
    130130                                 options for the controller specified by ControllerHandle..
    131131  @retval  EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.
    132132  @retval  EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.
    133133  @retval  EFI_INVALID_PARAMETER ActionRequired is NULL.
    134   @retval  EFI_UNSUPPORTED       The driver specified by This does not support setting configuration options for 
     134  @retval  EFI_UNSUPPORTED       The driver specified by This does not support setting configuration options for
    135135                                 the controller specified by ControllerHandle and ChildHandle.
    136136  @retval  EFI_UNSUPPORTED       The driver specified by This does not support the language specified by Language.
    137   @retval  EFI_DEVICE_ERROR      A device error occurred while attempt to set the configuration options for the 
     137  @retval  EFI_DEVICE_ERROR      A device error occurred while attempt to set the configuration options for the
    138138                                 controller specified by ControllerHandle and ChildHandle.
    139   @retval  EFI_OUT_RESOURCES     There are not enough resources available to set the configuration options for the 
     139  @retval  EFI_OUT_RESOURCES     There are not enough resources available to set the configuration options for the
    140140                                 controller specified by ControllerHandle and ChildHandle
    141141**/
     
    209209
    210210  @param  This             A pointer to the EFI_DRIVER_CONFIGURATION_PROTOCOL instance.
    211   @param  ControllerHandle The handle of the controller to test if it's current configuration options 
     211  @param  ControllerHandle The handle of the controller to test if it's current configuration options
    212212                           are valid.
    213   @param  ChildHandle      The handle of the child controller to test if it's current configuration 
    214                            options are valid.  This is an optional parameter that may be NULL. It will 
     213  @param  ChildHandle      The handle of the child controller to test if it's current configuration
     214                           options are valid.  This is an optional parameter that may be NULL. It will
    215215                           be NULL for device drivers.  It will also be NULL for a bus drivers that
    216                            wish to test the configuration options for the bus controller. It will 
    217                            not be NULL for a bus driver that wishes to test configuration options for 
     216                           wish to test the configuration options for the bus controller. It will
     217                           not be NULL for a bus driver that wishes to test configuration options for
    218218                           one of its child controllers.
    219219  @retval  EFI_SUCCESS           The controller specified by ControllerHandle and ChildHandle that is being
     
    222222  @retval  EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.
    223223  @retval  EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.
    224   @retval  EFI_UNSUPPORTED       The driver specified by This is not currently  managing the controller 
     224  @retval  EFI_UNSUPPORTED       The driver specified by This is not currently  managing the controller
    225225                                 specified by ControllerHandle and ChildHandle.
    226226  @retval  EFI_DEVICE_ERROR      The controller specified by ControllerHandle and ChildHandle that is being
     
    263263  @param  This             A pointer to the EFI_DRIVER_CONFIGURATION_ PROTOCOL instance.
    264264  @param  ControllerHandle The handle of the controller to force default configuration options on.
    265   @param  ChildHandle      The handle of the child controller to force default configuration 
    266                            options on  This is an optional parameter that may be NULL.  It 
    267                            will be NULL for device drivers. It will also be NULL for a bus 
     265  @param  ChildHandle      The handle of the child controller to force default configuration
     266                           options on  This is an optional parameter that may be NULL.  It
     267                           will be NULL for device drivers. It will also be NULL for a bus
    268268                           drivers that wish to force default configuration options for the bus
    269269                           controller.  It will not be NULL for a bus driver that wishes to force
    270270                           default configuration options for one of its child controllers.
    271   @param  DefaultType      The type of default configuration options to force on the controller 
    272                            specified by ControllerHandle and ChildHandle. 
    273   @param  ActionRequired   A pointer to the action that the calling agent is required to perform 
     271  @param  DefaultType      The type of default configuration options to force on the controller
     272                           specified by ControllerHandle and ChildHandle.
     273  @param  ActionRequired   A pointer to the action that the calling agent is required to perform
    274274                           when this function returns.
    275275
    276   @retval  EFI_SUCCESS           The driver specified by This successfully forced the 
    277                                  default configuration options on the controller specified by 
     276  @retval  EFI_SUCCESS           The driver specified by This successfully forced the
     277                                 default configuration options on the controller specified by
    278278                                 ControllerHandle and ChildHandle.
    279279  @retval  EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.
    280280  @retval  EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.
    281281  @retval  EFI_INVALID_PARAMETER ActionRequired is NULL.
    282   @retval  EFI_UNSUPPORTED       The driver specified by This does not support forcing the default 
     282  @retval  EFI_UNSUPPORTED       The driver specified by This does not support forcing the default
    283283                                 configuration options on the controller specified by ControllerHandle
    284284                                 and ChildHandle.
    285   @retval  EFI_UNSUPPORTED       The driver specified by This does not support the configuration type 
     285  @retval  EFI_UNSUPPORTED       The driver specified by This does not support the configuration type
    286286                                 specified by DefaultType.
    287   @retval  EFI_DEVICE_ERROR      A device error occurred while attempt to force the default configuration 
     287  @retval  EFI_DEVICE_ERROR      A device error occurred while attempt to force the default configuration
    288288                                 options on the controller specified by  ControllerHandle and ChildHandle.
    289   @retval  EFI_OUT_RESOURCES     There are not enough resources available to force the default configuration 
     289  @retval  EFI_OUT_RESOURCES     There are not enough resources available to force the default configuration
    290290                                 options on the controller specified by ControllerHandle and ChildHandle.
    291291**/
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxIdeBusDxe/DriverDiagnostics.c

    r48674 r48947  
    2828  Implementation of UEFI driver Diagnostics protocol which to perform diagnostic on the IDE
    2929  Bus controller.
    30  
    31   Copyright (c) 2006 - 2008, Intel Corporation                                                         
    32   All rights reserved. This program and the accompanying materials                         
    33   are licensed and made available under the terms and conditions of the BSD License         
    34   which accompanies this distribution.  The full text of the license may be found at       
    35   http://opensource.org/licenses/bsd-license.php                                           
    36 
    37   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
    38   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
     30
     31  Copyright (c) 2006 - 2008, Intel Corporation
     32  All rights reserved. This program and the accompanying materials
     33  are licensed and made available under the terms and conditions of the BSD License
     34  which accompanies this distribution.  The full text of the license may be found at
     35  http://opensource.org/licenses/bsd-license.php
     36
     37  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     38  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
    3939
    4040**/
     
    6969                           This is an optional parameter that may be NULL.  It will
    7070                           be NULL for device drivers.  It will also be NULL for a
    71                            bus drivers that wish to run diagnostics on the bus controller. 
    72                            It will not be NULL for a bus driver that wishes to run 
     71                           bus drivers that wish to run diagnostics on the bus controller.
     72                           It will not be NULL for a bus driver that wishes to run
    7373                           diagnostics on one of its child controllers.
    7474  @param  DiagnosticType   Indicates type of diagnostics to perform on the controller
    7575                           specified by ControllerHandle and ChildHandle.
    76   @param  Language         A pointer to a three character ISO 639-2 language identifier. 
    77                            This is the language in which the optional error message should 
    78                            be returned in Buffer, and it must match one of the languages 
     76  @param  Language         A pointer to a three character ISO 639-2 language identifier.
     77                           This is the language in which the optional error message should
     78                           be returned in Buffer, and it must match one of the languages
    7979                           specified in SupportedLanguages. The number of languages supported by
    8080                           a driver is up to the driver writer.
     
    8282  @param  BufferSize       The size, in bytes, of the data returned in Buffer.
    8383  @param  Buffer           A buffer that contains a Null-terminated Unicode string
    84                            plus some additional data whose format is defined by ErrorType. 
    85                            Buffer is allocated by this function with AllocatePool(), and 
     84                           plus some additional data whose format is defined by ErrorType.
     85                           Buffer is allocated by this function with AllocatePool(), and
    8686                           it is the caller's responsibility to free it with a call to FreePool().
    8787
    88   @retval  EFI_SUCCESS           The controller specified by ControllerHandle and ChildHandle passed 
     88  @retval  EFI_SUCCESS           The controller specified by ControllerHandle and ChildHandle passed
    8989                                 the diagnostic.
    9090  @retval  EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.
     
    9494  @retval  EFI_INVALID_PARAMETER BufferType is NULL.
    9595  @retval  EFI_INVALID_PARAMETER Buffer is NULL.
    96   @retval  EFI_UNSUPPORTED       The driver specified by This does not support running 
    97                                  diagnostics for the controller specified by ControllerHandle 
     96  @retval  EFI_UNSUPPORTED       The driver specified by This does not support running
     97                                 diagnostics for the controller specified by ControllerHandle
    9898                                 and ChildHandle.
    9999  @retval  EFI_UNSUPPORTED       The driver specified by This does not support the
    100100                                 type of diagnostic specified by DiagnosticType.
    101   @retval  EFI_UNSUPPORTED       The driver specified by This does not support the language 
     101  @retval  EFI_UNSUPPORTED       The driver specified by This does not support the language
    102102                                 specified by Language.
    103   @retval  EFI_OUT_OF_RESOURCES  There are not enough resources available to complete the 
     103  @retval  EFI_OUT_OF_RESOURCES  There are not enough resources available to complete the
    104104                                 diagnostics.
    105   @retval  EFI_OUT_OF_RESOURCES  There are not enough resources available to return the 
     105  @retval  EFI_OUT_OF_RESOURCES  There are not enough resources available to return the
    106106                                 status information in ErrorType, BufferSize,and Buffer.
    107   @retval  EFI_DEVICE_ERROR      The controller specified by ControllerHandle and ChildHandle 
     107  @retval  EFI_DEVICE_ERROR      The controller specified by ControllerHandle and ChildHandle
    108108                                 did not pass the diagnostic.
    109109**/
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxIdeBusDxe/Ide.c

    r48674 r48947  
    2727/** @file
    2828  The file containing the helper functions implement of the Ide Bus driver
    29  
     29
    3030  Copyright (c) 2006 - 2008, Intel Corporation
    3131  All rights reserved. This program and the accompanying materials
     
    5151
    5252  @param  PciIo  The PCI IO protocol instance
    53   @param  Port   the IDE Port number 
     53  @param  Port   the IDE Port number
    5454
    5555  @return  the one-byte data read from IDE port
     
    297297  @param  IdeRegsBaseAddr Pointer to IDE_REGISTERS_BASE_ADDR to
    298298           receive IDE IO port registers' base addresses
    299            
     299
    300300  @retval EFI_UNSUPPORTED return this value when the BARs is not IO type
    301301  @retval EFI_SUCCESS     Get the Base address successfully
     
    351351     case PCI_CLASS_MASS_STORAGE_IDE:
    352352        fIDEAhciEmulation = FALSE;
    353         break;
     353        break;
    354354     case 0x6:
    355355        fIDEAhciEmulation = TRUE;
    356         break;
     356        break;
    357357     default:
    358         ASSERT_EFI_ERROR((EFI_UNSUPPORTED));
    359         return EFI_UNSUPPORTED;
     358        ASSERT_EFI_ERROR((EFI_UNSUPPORTED));
     359        return EFI_UNSUPPORTED;
    360360  }
    361361  DEBUG((DEBUG_INFO, "class primary code: %x\n", PciData.Hdr.ClassCode[0] & IDE_PRIMARY_OPERATING_MODE));
     
    378378    fIDEAhciEmulation ? 0x3e6 :(UINT16) ((PciData.Device.Bar[1] & 0x0000fffc) + 2);
    379379  }
    380   IdeRegsBaseAddr[IdePrimary].BusMasterBaseAddr     = 
     380  IdeRegsBaseAddr[IdePrimary].BusMasterBaseAddr     =
    381381  fIDEAhciEmulation ? 0 : (UINT16)((PciData.Device.Bar[4] & 0x0000fff0));
    382382
     
    401401
    402402  DEBUG((DEBUG_INFO, "%a:%d CommandBlockBaseAddr:%x, "
    403                      "ControlBlockBaseAddr:%x, "
    404                      "BusMasterBaseAddr:%x\n", __FILE__, __LINE__,
    405                      IdeRegsBaseAddr[IdePrimary].CommandBlockBaseAddr,
    406                      IdeRegsBaseAddr[IdePrimary].ControlBlockBaseAddr,
    407                      IdeRegsBaseAddr[IdePrimary].BusMasterBaseAddr));
     403                     "ControlBlockBaseAddr:%x, "
     404                     "BusMasterBaseAddr:%x\n", __FILE__, __LINE__,
     405                     IdeRegsBaseAddr[IdePrimary].CommandBlockBaseAddr,
     406                     IdeRegsBaseAddr[IdePrimary].ControlBlockBaseAddr,
     407                     IdeRegsBaseAddr[IdePrimary].BusMasterBaseAddr));
    408408  DEBUG((DEBUG_INFO, "%a:%d CommandBlockBaseAddr:%x, "
    409                      "ControlBlockBaseAddr:%x, "
    410                      "BusMasterBaseAddr:%x\n", __FILE__, __LINE__,
    411                      IdeRegsBaseAddr[IdeSecondary].CommandBlockBaseAddr,
    412                      IdeRegsBaseAddr[IdeSecondary].ControlBlockBaseAddr,
    413                      IdeRegsBaseAddr[IdeSecondary].BusMasterBaseAddr));
     409                     "ControlBlockBaseAddr:%x, "
     410                     "BusMasterBaseAddr:%x\n", __FILE__, __LINE__,
     411                     IdeRegsBaseAddr[IdeSecondary].CommandBlockBaseAddr,
     412                     IdeRegsBaseAddr[IdeSecondary].ControlBlockBaseAddr,
     413                     IdeRegsBaseAddr[IdeSecondary].BusMasterBaseAddr));
    414414  return EFI_SUCCESS;
    415415}
     
    422422
    423423  @param  IdeDev The BLK_IO private data which specifies the IDE device
    424  
     424
    425425  @retval EFI_INVALID_PARAMETER return this value when the channel is invalid
    426426  @retval EFI_SUCCESS           reassign the IDE IO resource successfully
     
    441441    return EFI_INVALID_PARAMETER;
    442442  }
    443  
     443
    444444  //
    445445  // Requery IDE IO port registers' base addresses in case of the switch of
     
    664664
    665665  @param  IdeDev The BLK_IO private data which specifies the IDE device.
    666  
     666
    667667  @retval EFI_NOT_FOUND   The device or channel is not found
    668668  @retval EFI_SUCCESS     The device is found
     
    786786  So this function is called after data transfer is finished.
    787787
    788   @param IdeDev                 pointer pointing to IDE_BLK_IO_DEV data structure, used 
     788  @param IdeDev                 pointer pointing to IDE_BLK_IO_DEV data structure, used
    789789                                to record all the information of the IDE device.
    790790  @param TimeoutInMilliSeconds  used to designate the timeout for the DRQ clear.
     
    849849  is finished.
    850850
    851   @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used 
     851  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used
    852852                               to record all the information of the IDE device.
    853853
     
    972972/**
    973973  This function is used to poll for the DRQ bit set in the Alternate Status Register.
    974   DRQ is set when the device is ready to transfer data. So this function is called after 
     974  DRQ is set when the device is ready to transfer data. So this function is called after
    975975  the command is sent to the device and before required data is transferred.
    976976
    977   @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used to 
     977  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used to
    978978                               record all the information of the IDE device.
    979979
     
    10371037  is clear when the device is not busy. Every command must be sent after device is not busy.
    10381038
    1039   @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used 
     1039  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used
    10401040                               to record all the information of the IDE device.
    10411041  @param TimeoutInMilliSeconds used to designate the timeout for the DRQ ready.
     
    10791079}
    10801080/**
    1081   This function is used to poll for the BSY bit clear in the Alternate Status Register. 
    1082   BSY is clear when the device is not busy. Every command must be sent after device is 
     1081  This function is used to poll for the BSY bit clear in the Alternate Status Register.
     1082  BSY is clear when the device is not busy. Every command must be sent after device is
    10831083  not busy.
    10841084
    1085   @param IdeDev               pointer pointing to IDE_BLK_IO_DEV data structure, used to record 
     1085  @param IdeDev               pointer pointing to IDE_BLK_IO_DEV data structure, used to record
    10861086                              all the information of the IDE device.
    10871087  @param TimeoutInMilliSeconds used to designate the timeout for the DRQ ready.
     
    11221122/**
    11231123  This function is used to poll for the DRDY bit set in the Status Register. DRDY
    1124   bit is set when the device is ready to accept command. Most ATA commands must be 
     1124  bit is set when the device is ready to accept command. Most ATA commands must be
    11251125  sent after DRDY set except the ATAPI Packet Command.
    11261126
     
    11741174}
    11751175/**
    1176   This function is used to poll for the DRDY bit set in the Alternate Status Register. 
    1177   DRDY bit is set when the device is ready to accept command. Most ATA commands must 
     1176  This function is used to poll for the DRDY bit set in the Alternate Status Register.
     1177  DRDY bit is set when the device is ready to accept command. Most ATA commands must
    11781178  be sent after DRDY set except the ATAPI Packet Command.
    11791179
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxIdeBusDxe/Ide.h

    r48674 r48947  
    5555
    5656  @param  PciIo  The PCI IO protocol instance
    57   @param  Port   the IDE Port number 
     57  @param  Port   the IDE Port number
    5858
    5959  return  the one-byte data read from IDE port
     
    180180  @param  IdeRegsBaseAddr Pointer to IDE_REGISTERS_BASE_ADDR to
    181181          receive IDE IO port registers' base addresses
    182  
     182
    183183  @retval EFI_UNSUPPORTED return this value when the BARs is not IO type
    184184  @retval EFI_SUCCESS     Get the Base address successfully
     
    214214
    215215  @param  IdeDev The BLK_IO private data which specifies the IDE device.
    216  
     216
    217217  @retval EFI_NOT_FOUND   The device or channel is not found
    218218  @retval EFI_SUCCESS     The device is found
     
    239239  So this function is called after data transfer is finished.
    240240
    241   @param IdeDev                 pointer pointing to IDE_BLK_IO_DEV data structure, used 
     241  @param IdeDev                 pointer pointing to IDE_BLK_IO_DEV data structure, used
    242242                                to record all the information of the IDE device.
    243243  @param TimeoutInMilliSeconds  used to designate the timeout for the DRQ clear.
     
    263263  is finished.
    264264
    265   @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used 
     265  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used
    266266                               to record all the information of the IDE device.
    267267
     
    307307/**
    308308  This function is used to poll for the DRQ bit set in the Alternate Status Register.
    309   DRQ is set when the device is ready to transfer data. So this function is called after 
     309  DRQ is set when the device is ready to transfer data. So this function is called after
    310310  the command is sent to the device and before required data is transferred.
    311311
    312   @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used to 
     312  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used to
    313313                               record all the information of the IDE device.
    314314
     
    331331  is clear when the device is not busy. Every command must be sent after device is not busy.
    332332
    333   @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used 
     333  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used
    334334                               to record all the information of the IDE device.
    335335  @param TimeoutInMilliSeconds used to designate the timeout for the DRQ ready.
     
    347347
    348348/**
    349   This function is used to poll for the BSY bit clear in the Alternate Status Register. 
    350   BSY is clear when the device is not busy. Every command must be sent after device is 
     349  This function is used to poll for the BSY bit clear in the Alternate Status Register.
     350  BSY is clear when the device is not busy. Every command must be sent after device is
    351351  not busy.
    352352
    353   @param IdeDev               pointer pointing to IDE_BLK_IO_DEV data structure, used to record 
     353  @param IdeDev               pointer pointing to IDE_BLK_IO_DEV data structure, used to record
    354354                              all the information of the IDE device.
    355355  @param TimeoutInMilliSeconds used to designate the timeout for the DRQ ready.
     
    368368/**
    369369  This function is used to poll for the DRDY bit set in the Status Register. DRDY
    370   bit is set when the device is ready to accept command. Most ATA commands must be 
     370  bit is set when the device is ready to accept command. Most ATA commands must be
    371371  sent after DRDY set except the ATAPI Packet Command.
    372372
     
    387387
    388388/**
    389   This function is used to poll for the DRDY bit set in the Alternate Status Register. 
    390   DRDY bit is set when the device is ready to accept command. Most ATA commands must 
     389  This function is used to poll for the DRDY bit set in the Alternate Status Register.
     390  DRDY bit is set when the device is ready to accept command. Most ATA commands must
    391391  be sent after DRDY set except the ATAPI Packet Command.
    392392
     
    421421  including device type, media block size, media capacity, and etc.
    422422
    423   @param IdeDev  pointer pointing to IDE_BLK_IO_DEV data structure,used to record 
     423  @param IdeDev  pointer pointing to IDE_BLK_IO_DEV data structure,used to record
    424424                 all the information of the IDE device.
    425425
     
    447447  This function is used to send out ATA commands conforms to the PIO Data In Protocol.
    448448
    449   @param IdeDev       pointer pointing to IDE_BLK_IO_DEV data structure, used to record 
     449  @param IdeDev       pointer pointing to IDE_BLK_IO_DEV data structure, used to record
    450450                      all the information of the IDE device.
    451451  @param Buffer       buffer contained data transferred from device to host.
     
    457457  @param CylinderLsb  value of the low byte of the Cylinder Register
    458458  @param CylinderMsb  value of the high byte of the Cylinder Register
    459  
     459
    460460  @retval EFI_SUCCESS      send out the ATA command and device send required data successfully.
    461461  @retval EFI_DEVICE_ERROR command sent failed.
     
    513513  Register, the Error Register's value is also be parsed and print out.
    514514
    515   @param IdeDev  pointer pointing to IDE_BLK_IO_DEV data structure, used to 
     515  @param IdeDev  pointer pointing to IDE_BLK_IO_DEV data structure, used to
    516516                 record all the information of the IDE device.
    517517
     
    527527/**
    528528  This function is used to implement the Soft Reset on the specified device. But,
    529   the ATA Soft Reset mechanism is so strong a reset method that it will force 
     529  the ATA Soft Reset mechanism is so strong a reset method that it will force
    530530  resetting on both devices connected to the same cable.
    531531
     
    595595                         of the intrinsic block size of the device.
    596596  @param Buffer          A pointer to the source buffer for the data.The caller
    597                          is responsible for either having implicit or explicit 
     597                         is responsible for either having implicit or explicit
    598598                         ownership of the memory that data is written from.
    599599
     
    627627
    628628  There are 5 steps to reach such objective:
    629   1. Sends out the ATAPI Identify Command to the specified device. 
     629  1. Sends out the ATAPI Identify Command to the specified device.
    630630  Only ATAPI device responses to this command. If the command succeeds,
    631   it returns the Identify data structure which filled with information 
    632   about the device. Since the ATAPI device contains removable media, 
     631  it returns the Identify data structure which filled with information
     632  about the device. Since the ATAPI device contains removable media,
    633633  the only meaningful information is the device module name.
    634634  2. Sends out ATAPI Inquiry Packet Command to the specified device.
     
    636636  the device type information.
    637637  3. Allocate sense data space for future use. We don't detect the media
    638   presence here to improvement boot performance, especially when CD 
     638  presence here to improvement boot performance, especially when CD
    639639  media is present. The media detection will be performed just before
    640640  each BLK_IO read/write
    641  
     641
    642642  @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure, used
    643643                 to record all the information of the IDE device.
     
    646646  @retval EFI_DEVICE_ERROR  ATAPI Identify Device Command failed or device type
    647647                            is not supported by this IDE driver.
    648   @retval EFI_OUT_OF_RESOURCES Allocate memory for sense data failed 
     648  @retval EFI_OUT_OF_RESOURCES Allocate memory for sense data failed
    649649
    650650  @note   Parameter "IdeDev" will be updated in this function.
     
    664664  command should be sent without waiting for the BSY clear and DRDY
    665665  set.
    666   This function is called by IdeBlkIoReset(), 
     666  This function is called by IdeBlkIoReset(),
    667667  a interface function of Block I/O protocol.
    668668
     
    689689                        of the intrinsic block size of the device.
    690690  @param Buffer         A pointer to the destination buffer for the data. The caller
    691                         is responsible for either having implicit or explicit 
     691                        is responsible for either having implicit or explicit
    692692                        ownership of the memory that data is read into.
    693  
     693
    694694  @retval EFI_SUCCESS           Read Blocks successfully.
    695695  @retval EFI_DEVICE_ERROR      Read Blocks failed.
     
    728728  @retval EFI_MEDIA_CHANGE       The MediaId is not for the current media.
    729729  @retval EFI_BAD_BUFFER_SIZE    The BufferSize parameter is not a multiple of the
    730                                  intrinsic block size of the device. 
    731   @retval EFI_INVALID_PARAMETER  The write request contains LBAs that are not valid, 
     730                                 intrinsic block size of the device.
     731  @retval EFI_INVALID_PARAMETER  The write request contains LBAs that are not valid,
    732732                                 or the data buffer is not valid.
    733733
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxIdeBusDxe/IdeBus.c

    r48674 r48947  
    2626
    2727/** @file
    28   This file implement UEFI driver for IDE Bus which includes device identification, 
    29   Child device(Disk, CDROM, etc) enumeration and child handler installation, and 
     28  This file implement UEFI driver for IDE Bus which includes device identification,
     29  Child device(Disk, CDROM, etc) enumeration and child handler installation, and
    3030  driver stop.
    31    
     31
    3232  Copyright (c) 2006 - 2009, Intel Corporation
    3333  All rights reserved. This program and the accompanying materials
     
    179179    Node = (EFI_DEV_PATH *) RemainingDevicePath;
    180180    //
    181     // Check if RemainingDevicePath is the End of Device Path Node, 
     181    // Check if RemainingDevicePath is the End of Device Path Node,
    182182    // if yes, go on checking other conditions
    183183    //
     
    219219    return Status;
    220220  }
    221  
     221
    222222  //
    223223  // Close the I/O Abstraction(s) used to perform the supported test
     
    454454   if (EnumAll || RemainingDevicePath == NULL) {
    455455    //
    456     // If IdeInit->EnumAll is TRUE or RemainingDevicePath is NULL, 
     456    // If IdeInit->EnumAll is TRUE or RemainingDevicePath is NULL,
    457457    // must enumerate all IDE devices anyway
    458458    //
     
    464464  } else if (!IsDevicePathEnd (RemainingDevicePath)) {
    465465    //
    466     // If RemainingDevicePath isn't the End of Device Path Node, 
     466    // If RemainingDevicePath isn't the End of Device Path Node,
    467467    // only scan the specified device by RemainingDevicePath
    468468    //
     
    485485    // If RemainingDevicePath is the End of Device Path Node,
    486486    // skip enumerate any device and return EFI_SUCCESS
    487     // 
     487    //
    488488    BeginningIdeChannel = IdeMaxChannel;
    489489    EndIdeChannel       = IdeMaxChannel - 1;
     
    12861286
    12871287/**
    1288   This function is used by the IDE bus driver to get inquiry data. 
     1288  This function is used by the IDE bus driver to get inquiry data.
    12891289  Data format of Identify data is defined by the Interface GUID.
    12901290
     
    12941294
    12951295  @retval EFI_SUCCESS           The command was accepted without any errors.
    1296   @retval EFI_NOT_FOUND         Device does not support this data class 
    1297   @retval EFI_DEVICE_ERROR      Error reading InquiryData from device 
    1298   @retval EFI_BUFFER_TOO_SMALL  InquiryDataSize not big enough 
     1296  @retval EFI_NOT_FOUND         Device does not support this data class
     1297  @retval EFI_DEVICE_ERROR      Error reading InquiryData from device
     1298  @retval EFI_BUFFER_TOO_SMALL  InquiryDataSize not big enough
    12991299
    13001300**/
     
    13271327
    13281328/**
    1329   This function is used by the IDE bus driver to get identify data. 
     1329  This function is used by the IDE bus driver to get identify data.
    13301330  Data format of Identify data is defined by the Interface GUID.
    13311331
     
    13351335
    13361336  @retval EFI_SUCCESS           The command was accepted without any errors.
    1337   @retval EFI_NOT_FOUND         Device does not support this data class 
    1338   @retval EFI_DEVICE_ERROR      Error reading IdentifyData from device 
    1339   @retval EFI_BUFFER_TOO_SMALL  IdentifyDataSize not big enough 
     1337  @retval EFI_NOT_FOUND         Device does not support this data class
     1338  @retval EFI_DEVICE_ERROR      Error reading IdentifyData from device
     1339  @retval EFI_BUFFER_TOO_SMALL  IdentifyDataSize not big enough
    13401340
    13411341**/
     
    13681368
    13691369/**
    1370   This function is used by the IDE bus driver to get sense data. 
     1370  This function is used by the IDE bus driver to get sense data.
    13711371  Data format of Sense data is defined by the Interface GUID.
    13721372
    1373   @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance. 
    1374   @param  SenseData             Pointer to the SenseData. 
    1375   @param  SenseDataSize         Size of SenseData in bytes. 
     1373  @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance.
     1374  @param  SenseData             Pointer to the SenseData.
     1375  @param  SenseDataSize         Size of SenseData in bytes.
    13761376  @param  SenseDataNumber       Pointer to the value for the identify data size.
    13771377
    13781378  @retval EFI_SUCCESS           The command was accepted without any errors.
    1379   @retval EFI_NOT_FOUND         Device does not support this data class 
    1380   @retval EFI_DEVICE_ERROR      Error reading InquiryData from device 
    1381   @retval EFI_BUFFER_TOO_SMALL  SenseDataSize not big enough 
     1379  @retval EFI_NOT_FOUND         Device does not support this data class
     1380  @retval EFI_DEVICE_ERROR      Error reading InquiryData from device
     1381  @retval EFI_BUFFER_TOO_SMALL  SenseDataSize not big enough
    13821382
    13831383**/
     
    13971397  This function is used by the IDE bus driver to get controller information.
    13981398
    1399   @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance. 
     1399  @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance.
    14001400  @param  IdeChannel            Pointer to the Ide Channel number. Primary or secondary.
    14011401  @param  IdeDevice             Pointer to the Ide Device number. Master or slave.
    14021402
    1403   @retval EFI_SUCCESS           IdeChannel and IdeDevice are valid 
    1404   @retval EFI_UNSUPPORTED       This is not an IDE device 
     1403  @retval EFI_SUCCESS           IdeChannel and IdeDevice are valid
     1404  @retval EFI_UNSUPPORTED       This is not an IDE device
    14051405
    14061406**/
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxIdeBusDxe/IdeBus.h

    r48674 r48947  
    208208//
    209209/**
    210   Allows the user to set controller specific options for a controller that a 
     210  Allows the user to set controller specific options for a controller that a
    211211  driver is currently managing.
    212212
     
    219219                            It will not be NULL for a bus driver that wishes to set
    220220                            options for one of its child controllers.
    221   @param  Language          A pointer to a three character ISO 639-2 language identifier. 
    222                             This is the language of the user interface that should be presented 
    223                             to the user, and it must match one of the languages specified in 
     221  @param  Language          A pointer to a three character ISO 639-2 language identifier.
     222                            This is the language of the user interface that should be presented
     223                            to the user, and it must match one of the languages specified in
    224224                            SupportedLanguages. The number of languages supported by a driver is up to
    225225                            the driver writer.
    226   @param  ActionRequired    A pointer to the action that the calling agent is required 
     226  @param  ActionRequired    A pointer to the action that the calling agent is required
    227227                            to perform when this function returns.
    228  
    229 
    230   @retval  EFI_SUCCESS           The driver specified by This successfully set the configuration 
     228
     229
     230  @retval  EFI_SUCCESS           The driver specified by This successfully set the configuration
    231231                                 options for the controller specified by ControllerHandle..
    232232  @retval  EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.
    233233  @retval  EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.
    234234  @retval  EFI_INVALID_PARAMETER ActionRequired is NULL.
    235   @retval  EFI_UNSUPPORTED       The driver specified by This does not support setting configuration options for 
     235  @retval  EFI_UNSUPPORTED       The driver specified by This does not support setting configuration options for
    236236                                 the controller specified by ControllerHandle and ChildHandle.
    237237  @retval  EFI_UNSUPPORTED       The driver specified by This does not support the language specified by Language.
    238   @retval  EFI_DEVICE_ERROR      A device error occurred while attempt to set the configuration options for the 
     238  @retval  EFI_DEVICE_ERROR      A device error occurred while attempt to set the configuration options for the
    239239                                 controller specified by ControllerHandle and ChildHandle.
    240   @retval  EFI_OUT_RESOURCES     There are not enough resources available to set the configuration options for the 
     240  @retval  EFI_OUT_RESOURCES     There are not enough resources available to set the configuration options for the
    241241                                 controller specified by ControllerHandle and ChildHandle
    242242**/
     
    255255
    256256  @param  This             A pointer to the EFI_DRIVER_CONFIGURATION_PROTOCOL instance.
    257   @param  ControllerHandle The handle of the controller to test if it's current configuration options 
     257  @param  ControllerHandle The handle of the controller to test if it's current configuration options
    258258                           are valid.
    259   @param  ChildHandle      The handle of the child controller to test if it's current configuration 
    260                            options are valid.  This is an optional parameter that may be NULL. It will 
     259  @param  ChildHandle      The handle of the child controller to test if it's current configuration
     260                           options are valid.  This is an optional parameter that may be NULL. It will
    261261                           be NULL for device drivers.  It will also be NULL for a bus drivers that
    262                            wish to test the configuration options for the bus controller. It will 
    263                            not be NULL for a bus driver that wishes to test configuration options for 
     262                           wish to test the configuration options for the bus controller. It will
     263                           not be NULL for a bus driver that wishes to test configuration options for
    264264                           one of its child controllers.
    265265  @retval  EFI_SUCCESS           The controller specified by ControllerHandle and ChildHandle that is being
     
    268268  @retval  EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.
    269269  @retval  EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.
    270   @retval  EFI_UNSUPPORTED       The driver specified by This is not currently  managing the controller 
     270  @retval  EFI_UNSUPPORTED       The driver specified by This is not currently  managing the controller
    271271                                 specified by ControllerHandle and ChildHandle.
    272272  @retval  EFI_DEVICE_ERROR      The controller specified by ControllerHandle and ChildHandle that is being
     
    287287  @param  This             A pointer to the EFI_DRIVER_CONFIGURATION_ PROTOCOL instance.
    288288  @param  ControllerHandle The handle of the controller to force default configuration options on.
    289   @param  ChildHandle      The handle of the child controller to force default configuration 
    290                            options on  This is an optional parameter that may be NULL.  It 
    291                            will be NULL for device drivers. It will also be NULL for a bus 
     289  @param  ChildHandle      The handle of the child controller to force default configuration
     290                           options on  This is an optional parameter that may be NULL.  It
     291                           will be NULL for device drivers. It will also be NULL for a bus
    292292                           drivers that wish to force default configuration options for the bus
    293293                           controller.  It will not be NULL for a bus driver that wishes to force
    294294                           default configuration options for one of its child controllers.
    295   @param  DefaultType      The type of default configuration options to force on the controller 
    296                            specified by ControllerHandle and ChildHandle. 
    297   @param  ActionRequired   A pointer to the action that the calling agent is required to perform 
     295  @param  DefaultType      The type of default configuration options to force on the controller
     296                           specified by ControllerHandle and ChildHandle.
     297  @param  ActionRequired   A pointer to the action that the calling agent is required to perform
    298298                           when this function returns.
    299299
    300   @retval  EFI_SUCCESS           The driver specified by This successfully forced the 
    301                                  default configuration options on the controller specified by 
     300  @retval  EFI_SUCCESS           The driver specified by This successfully forced the
     301                                 default configuration options on the controller specified by
    302302                                 ControllerHandle and ChildHandle.
    303303  @retval  EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.
    304304  @retval  EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.
    305305  @retval  EFI_INVALID_PARAMETER ActionRequired is NULL.
    306   @retval  EFI_UNSUPPORTED       The driver specified by This does not support forcing the default 
     306  @retval  EFI_UNSUPPORTED       The driver specified by This does not support forcing the default
    307307                                 configuration options on the controller specified by ControllerHandle
    308308                                 and ChildHandle.
    309   @retval  EFI_UNSUPPORTED       The driver specified by This does not support the configuration type 
     309  @retval  EFI_UNSUPPORTED       The driver specified by This does not support the configuration type
    310310                                 specified by DefaultType.
    311   @retval  EFI_DEVICE_ERROR      A device error occurred while attempt to force the default configuration 
     311  @retval  EFI_DEVICE_ERROR      A device error occurred while attempt to force the default configuration
    312312                                 options on the controller specified by  ControllerHandle and ChildHandle.
    313   @retval  EFI_OUT_RESOURCES     There are not enough resources available to force the default configuration 
     313  @retval  EFI_OUT_RESOURCES     There are not enough resources available to force the default configuration
    314314                                 options on the controller specified by ControllerHandle and ChildHandle.
    315315**/
     
    335335                           This is an optional parameter that may be NULL.  It will
    336336                           be NULL for device drivers.  It will also be NULL for a
    337                            bus drivers that wish to run diagnostics on the bus controller. 
    338                            It will not be NULL for a bus driver that wishes to run 
     337                           bus drivers that wish to run diagnostics on the bus controller.
     338                           It will not be NULL for a bus driver that wishes to run
    339339                           diagnostics on one of its child controllers.
    340340  @param  DiagnosticType   Indicates type of diagnostics to perform on the controller
    341341                           specified by ControllerHandle and ChildHandle.
    342   @param  Language         A pointer to a three character ISO 639-2 language identifier. 
    343                            This is the language in which the optional error message should 
    344                            be returned in Buffer, and it must match one of the languages 
     342  @param  Language         A pointer to a three character ISO 639-2 language identifier.
     343                           This is the language in which the optional error message should
     344                           be returned in Buffer, and it must match one of the languages
    345345                           specified in SupportedLanguages. The number of languages supported by
    346346                           a driver is up to the driver writer.
     
    348348  @param  BufferSize       The size, in bytes, of the data returned in Buffer.
    349349  @param  Buffer           A buffer that contains a Null-terminated Unicode string
    350                            plus some additional data whose format is defined by ErrorType. 
    351                            Buffer is allocated by this function with AllocatePool(), and 
     350                           plus some additional data whose format is defined by ErrorType.
     351                           Buffer is allocated by this function with AllocatePool(), and
    352352                           it is the caller's responsibility to free it with a call to FreePool().
    353353
    354   @retval  EFI_SUCCESS           The controller specified by ControllerHandle and ChildHandle passed 
     354  @retval  EFI_SUCCESS           The controller specified by ControllerHandle and ChildHandle passed
    355355                                 the diagnostic.
    356356  @retval  EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.
     
    360360  @retval  EFI_INVALID_PARAMETER BufferType is NULL.
    361361  @retval  EFI_INVALID_PARAMETER Buffer is NULL.
    362   @retval  EFI_UNSUPPORTED       The driver specified by This does not support running 
    363                                  diagnostics for the controller specified by ControllerHandle 
     362  @retval  EFI_UNSUPPORTED       The driver specified by This does not support running
     363                                 diagnostics for the controller specified by ControllerHandle
    364364                                 and ChildHandle.
    365365  @retval  EFI_UNSUPPORTED       The driver specified by This does not support the
    366366                                 type of diagnostic specified by DiagnosticType.
    367   @retval  EFI_UNSUPPORTED       The driver specified by This does not support the language 
     367  @retval  EFI_UNSUPPORTED       The driver specified by This does not support the language
    368368                                 specified by Language.
    369   @retval  EFI_OUT_OF_RESOURCES  There are not enough resources available to complete the 
     369  @retval  EFI_OUT_OF_RESOURCES  There are not enough resources available to complete the
    370370                                 diagnostics.
    371   @retval  EFI_OUT_OF_RESOURCES  There are not enough resources available to return the 
     371  @retval  EFI_OUT_OF_RESOURCES  There are not enough resources available to return the
    372372                                 status information in ErrorType, BufferSize,and Buffer.
    373   @retval  EFI_DEVICE_ERROR      The controller specified by ControllerHandle and ChildHandle 
     373  @retval  EFI_DEVICE_ERROR      The controller specified by ControllerHandle and ChildHandle
    374374                                 did not pass the diagnostic.
    375375**/
     
    454454  Flushes all modified data to a physical block devices
    455455
    456   @param  This  Indicates a pointer to the calling context which to specify a 
     456  @param  This  Indicates a pointer to the calling context which to specify a
    457457                specific block device
    458458
     
    465465  );
    466466/**
    467   This function is used by the IDE bus driver to get inquiry data. 
     467  This function is used by the IDE bus driver to get inquiry data.
    468468  Data format of Identify data is defined by the Interface GUID.
    469469
     
    473473
    474474  @retval EFI_SUCCESS           The command was accepted without any errors.
    475   @retval EFI_NOT_FOUND         Device does not support this data class 
    476   @retval EFI_DEVICE_ERROR      Error reading InquiryData from device 
    477   @retval EFI_BUFFER_TOO_SMALL  InquiryDataSize not big enough 
     475  @retval EFI_NOT_FOUND         Device does not support this data class
     476  @retval EFI_DEVICE_ERROR      Error reading InquiryData from device
     477  @retval EFI_BUFFER_TOO_SMALL  InquiryDataSize not big enough
    478478
    479479**/
     
    487487
    488488/**
    489   This function is used by the IDE bus driver to get identify data. 
     489  This function is used by the IDE bus driver to get identify data.
    490490  Data format of Identify data is defined by the Interface GUID.
    491491
     
    495495
    496496  @retval EFI_SUCCESS           The command was accepted without any errors.
    497   @retval EFI_NOT_FOUND         Device does not support this data class 
    498   @retval EFI_DEVICE_ERROR      Error reading IdentifyData from device 
    499   @retval EFI_BUFFER_TOO_SMALL  IdentifyDataSize not big enough 
     497  @retval EFI_NOT_FOUND         Device does not support this data class
     498  @retval EFI_DEVICE_ERROR      Error reading IdentifyData from device
     499  @retval EFI_BUFFER_TOO_SMALL  IdentifyDataSize not big enough
    500500
    501501**/
     
    509509
    510510/**
    511   This function is used by the IDE bus driver to get sense data. 
     511  This function is used by the IDE bus driver to get sense data.
    512512  Data format of Sense data is defined by the Interface GUID.
    513513
    514   @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance. 
    515   @param  SenseData             Pointer to the SenseData. 
    516   @param  SenseDataSize         Size of SenseData in bytes. 
     514  @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance.
     515  @param  SenseData             Pointer to the SenseData.
     516  @param  SenseDataSize         Size of SenseData in bytes.
    517517  @param  SenseDataNumber       Pointer to the value for the identify data size.
    518518
    519519  @retval EFI_SUCCESS           The command was accepted without any errors.
    520   @retval EFI_NOT_FOUND         Device does not support this data class 
    521   @retval EFI_DEVICE_ERROR      Error reading InquiryData from device 
    522   @retval EFI_BUFFER_TOO_SMALL  SenseDataSize not big enough 
     520  @retval EFI_NOT_FOUND         Device does not support this data class
     521  @retval EFI_DEVICE_ERROR      Error reading InquiryData from device
     522  @retval EFI_BUFFER_TOO_SMALL  SenseDataSize not big enough
    523523
    524524**/
     
    535535  This function is used by the IDE bus driver to get controller information.
    536536
    537   @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance. 
     537  @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance.
    538538  @param  IdeChannel            Pointer to the Ide Channel number. Primary or secondary.
    539539  @param  IdeDevice             Pointer to the Ide Device number. Master or slave.
    540540
    541   @retval EFI_SUCCESS           IdeChannel and IdeDevice are valid 
    542   @retval EFI_UNSUPPORTED       This is not an IDE device 
     541  @retval EFI_SUCCESS           IdeChannel and IdeDevice are valid
     542  @retval EFI_UNSUPPORTED       This is not an IDE device
    543543
    544544**/
     
    551551  );
    552552/**
    553   The is an event(generally the event is exitBootService event) call back function. 
     553  The is an event(generally the event is exitBootService event) call back function.
    554554  Clear pending IDE interrupt before OS loader/kernel take control of the IDE device.
    555555
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxIdeBusDxe/IdeData.h

    r48674 r48947  
    2929
    3030  Copyright (c) 2006 - 2007 Intel Corporation. <BR>
    31   All rights reserved. This program and the accompanying materials                         
    32   are licensed and made available under the terms and conditions of the BSD License         
    33   which accompanies this distribution.  The full text of the license may be found at       
    34   http://opensource.org/licenses/bsd-license.php                                           
    35 
    36   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
    37   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
     31  All rights reserved. This program and the accompanying materials
     32  are licensed and made available under the terms and conditions of the BSD License
     33  which accompanies this distribution.  The full text of the license may be found at
     34  http://opensource.org/licenses/bsd-license.php
     35
     36  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     37  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
    3838
    3939**/
     
    169169// 1 second
    170170//
    171 #define ATATIMEOUT  1000 
     171#define ATATIMEOUT  1000
    172172
    173173//
     
    179179// 1 second
    180180//
    181 #define ATAPITIMEOUT  1000 
     181#define ATAPITIMEOUT  1000
    182182
    183183//
     
    189189// 2 seconds
    190190//
    191 #define CDROMLONGTIMEOUT  2000 
     191#define CDROMLONGTIMEOUT  2000
    192192
    193193//
    194194// 5 seconds
    195195//
    196 #define ATAPILONGTIMEOUT  5000 
     196#define ATAPILONGTIMEOUT  5000
    197197
    198198//
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxIdeControllerDxe/ComponentName.c

    r48674 r48947  
    3030
    3131  Copyright (c) 2008 Intel Corporation. <BR>
    32   All rights reserved. This program and the accompanying materials                         
    33   are licensed and made available under the terms and conditions of the BSD License         
    34   which accompanies this distribution.  The full text of the license may be found at       
    35   http://opensource.org/licenses/bsd-license.php                                           
    36 
    37   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
    38   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
     32  All rights reserved. This program and the accompanying materials
     33  are licensed and made available under the terms and conditions of the BSD License
     34  which accompanies this distribution.  The full text of the license may be found at
     35  http://opensource.org/licenses/bsd-license.php
     36
     37  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     38  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
    3939
    4040**/
     
    103103    This       - A pointer to the EFI_COMPONENT_NAME_PROTOCOL instance.
    104104    Language   - A pointer to a three character ISO 639-2 language identifier.
    105                  This is the language of the driver name that that the caller 
     105                 This is the language of the driver name that that the caller
    106106                 is requesting, and it must match one of the languages specified
    107                  in SupportedLanguages.  The number of languages supported by a 
     107                 in SupportedLanguages.  The number of languages supported by a
    108108                 driver is up to the driver writer.
    109109    DriverName - A pointer to the Unicode string to return.  This Unicode string
    110                  is the name of the driver specified by This in the language 
     110                 is the name of the driver specified by This in the language
    111111                 specified by Language.
    112112
    113113  Returns:
    114114    EFI_SUCCESS           - The Unicode string for the Driver specified by This
    115                             and the language specified by Language was returned 
     115                            and the language specified by Language was returned
    116116                            in DriverName.
    117117    EFI_INVALID_PARAMETER - Language is NULL.
    118118    EFI_INVALID_PARAMETER - DriverName is NULL.
    119     EFI_UNSUPPORTED       - The driver specified by This does not support the 
     119    EFI_UNSUPPORTED       - The driver specified by This does not support the
    120120                            language specified by Language.
    121121
     
    148148  Arguments:
    149149    This             - A pointer to the EFI_COMPONENT_NAME_PROTOCOL instance.
    150     ControllerHandle - The handle of a controller that the driver specified by 
    151                        This is managing.  This handle specifies the controller 
     150    ControllerHandle - The handle of a controller that the driver specified by
     151                       This is managing.  This handle specifies the controller
    152152                       whose name is to be returned.
    153     ChildHandle      - The handle of the child controller to retrieve the name 
    154                        of.  This is an optional parameter that may be NULL.  It 
    155                        will be NULL for device drivers.  It will also be NULL 
    156                        for a bus drivers that wish to retrieve the name of the 
    157                        bus controller.  It will not be NULL for a bus driver 
     153    ChildHandle      - The handle of the child controller to retrieve the name
     154                       of.  This is an optional parameter that may be NULL.  It
     155                       will be NULL for device drivers.  It will also be NULL
     156                       for a bus drivers that wish to retrieve the name of the
     157                       bus controller.  It will not be NULL for a bus driver
    158158                       that wishes to retrieve the name of a child controller.
    159     Language         - A pointer to a three character ISO 639-2 language 
    160                        identifier.  This is the language of the controller name 
     159    Language         - A pointer to a three character ISO 639-2 language
     160                       identifier.  This is the language of the controller name
    161161                       that that the caller is requesting, and it must match one
    162                        of the languages specified in SupportedLanguages.  The 
    163                        number of languages supported by a driver is up to the 
     162                       of the languages specified in SupportedLanguages.  The
     163                       number of languages supported by a driver is up to the
    164164                       driver writer.
    165165    ControllerName   - A pointer to the Unicode string to return.  This Unicode
    166                        string is the name of the controller specified by 
    167                        ControllerHandle and ChildHandle in the language 
    168                        specified by Language from the point of view of the 
    169                        driver specified by This. 
     166                       string is the name of the controller specified by
     167                       ControllerHandle and ChildHandle in the language
     168                       specified by Language from the point of view of the
     169                       driver specified by This.
    170170
    171171  Returns:
    172     EFI_SUCCESS           - The Unicode string for the user readable name in the 
    173                             language specified by Language for the driver 
     172    EFI_SUCCESS           - The Unicode string for the user readable name in the
     173                            language specified by Language for the driver
    174174                            specified by This was returned in DriverName.
    175175    EFI_INVALID_PARAMETER - ControllerHandle is not a valid EFI_HANDLE.
    176     EFI_INVALID_PARAMETER - ChildHandle is not NULL and it is not a valid 
     176    EFI_INVALID_PARAMETER - ChildHandle is not NULL and it is not a valid
    177177                            EFI_HANDLE.
    178178    EFI_INVALID_PARAMETER - Language is NULL.
    179179    EFI_INVALID_PARAMETER - ControllerName is NULL.
    180     EFI_UNSUPPORTED       - The driver specified by This is not currently 
    181                             managing the controller specified by 
     180    EFI_UNSUPPORTED       - The driver specified by This is not currently
     181                            managing the controller specified by
    182182                            ControllerHandle and ChildHandle.
    183     EFI_UNSUPPORTED       - The driver specified by This does not support the 
     183    EFI_UNSUPPORTED       - The driver specified by This does not support the
    184184                            language specified by Language.
    185185
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxIdeControllerDxe/IdeController.c

    r48674 r48947  
    2626
    2727/** @file
    28   This driver module produces IDE_CONTROLLER_INIT protocol and will be used by 
     28  This driver module produces IDE_CONTROLLER_INIT protocol and will be used by
    2929  IDE Bus driver to support platform dependent timing information. This driver
    3030  is responsible for early initialization of IDE controller.
    3131
    3232  Copyright (c) 2008 - 2009 Intel Corporation. <BR>
    33   All rights reserved. This program and the accompanying materials                         
    34   are licensed and made available under the terms and conditions of the BSD License         
    35   which accompanies this distribution.  The full text of the license may be found at       
    36   http://opensource.org/licenses/bsd-license.php                                           
    37 
    38   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
    39   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
     33  All rights reserved. This program and the accompanying materials
     34  are licensed and made available under the terms and conditions of the BSD License
     35  which accompanies this distribution.  The full text of the license may be found at
     36  http://opensource.org/licenses/bsd-license.php
     37
     38  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     39  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
    4040
    4141**/
     
    7373//
    7474EFI_ATA_COLLECTIVE_MODE  gEfiAtaCollectiveModeTemplate = {
    75   {           
     75  {
    7676    TRUE,                   // PioMode.Valid
    7777    0                       // PioMode.Mode
     
    101101/*++
    102102  Routine Description:
    103  
    104     Chipset Ide Driver EntryPoint function. It follows the standard EFI driver 
     103
     104    Chipset Ide Driver EntryPoint function. It follows the standard EFI driver
    105105    model. It's called by StartImage() of DXE Core
    106    
     106
    107107  Arguments:
    108  
    109     ImageHandle  -- While the driver image loaded be the ImageLoader(), 
    110                     an image handle is assigned to this driver binary, 
     108
     109    ImageHandle  -- While the driver image loaded be the ImageLoader(),
     110                    an image handle is assigned to this driver binary,
    111111                    all activities of the driver is tied to this ImageHandle
    112112    *SystemTable -- A pointer to the system table, for all BS(Boo Services) and
     
    114114
    115115  Returns:
    116  
     116
    117117    Always call EfiLibInstallDriverBindingProtocol( ) and return the result
    118118
     
    147147
    148148  Routine Description:
    149  
     149
    150150  Register Driver Binding protocol for this driver.
    151  
     151
    152152  Arguments:
    153  
     153
    154154    This                 -- a pointer points to the Binding Protocol instance
    155     Controller           -- The handle of controller to be tested. 
     155    Controller           -- The handle of controller to be tested.
    156156    *RemainingDevicePath -- A pointer to the device path. Ignored by device
    157157                            driver but used by bus driver
     
    239239
    240240  Routine Description:
    241  
    242     This routine is called right after the .Supported() called and return 
     241
     242    This routine is called right after the .Supported() called and return
    243243    EFI_SUCCESS. Notes: The supported protocols are checked but the Protocols
    244244    are closed.
    245245
    246246  Arguments:
    247      
     247
    248248    This                 -- a pointer points to the Binding Protocol instance
    249249    Controller           -- The handle of controller to be tested. Parameter
     
    280280
    281281  //
    282   // Install IDE_CONTROLLER_INIT protocol 
     282  // Install IDE_CONTROLLER_INIT protocol
    283283  //
    284284  return gBS->InstallMultipleProtocolInterfaces (
     
    298298  )
    299299/*++
    300  
     300
    301301  Routine Description:
    302     Stop this driver on Controller Handle. 
     302    Stop this driver on Controller Handle.
    303303
    304304  Arguments:
    305305    This              - Protocol instance pointer.
    306     Controller        - Handle of device to stop driver on 
     306    Controller        - Handle of device to stop driver on
    307307    NumberOfChildren  - Not used
    308308    ChildHandleBuffer - Not used
     
    311311    EFI_SUCCESS       - This driver is removed DeviceHandle
    312312    other             - This driver was not removed from this device
    313  
     313
    314314--*/
    315315{
     
    376376Routine Description:
    377377
    378   This function can be used to obtain information about a specified channel. 
     378  This function can be used to obtain information about a specified channel.
    379379  It's usually used by IDE Bus driver during enumeration process.
    380380
     
    383383  This       -- the EFI_IDE_CONTROLLER_INIT_PROTOCOL instance.
    384384  Channel    -- Channel number (0 based, either 0 or 1)
    385   Enabled    -- TRUE if the channel is enabled. If the channel is disabled, 
     385  Enabled    -- TRUE if the channel is enabled. If the channel is disabled,
    386386                then it will no be enumerated.
    387387  MaxDevices -- The Max number of IDE devices that the bus driver can expect
     
    389389
    390390Returns:
    391   EFI_STATUS 
     391  EFI_STATUS
    392392
    393393--*/
     
    418418Routine Description:
    419419
    420   This function is called by IdeBus driver before executing certain actions. 
     420  This function is called by IdeBus driver before executing certain actions.
    421421  This allows IDE Controller Init to prepare for each action.
    422422
     
    428428
    429429Returns:
    430    
     430
    431431--*/
    432432{
     
    457457
    458458Returns:
    459    
     459
    460460--*/
    461461{
     
    486486
    487487Returns:
    488    
     488
    489489--*/
    490490{
     
    515515
    516516Returns:
    517    
     517
    518518--*/
    519519{
     
    560560
    561561Returns:
    562    
     562
    563563--*/
    564564{
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxIdeControllerDxe/IdeController.h

    r48674 r48947  
    2929
    3030  Copyright (c) 2008 Intel Corporation. <BR>
    31   All rights reserved. This program and the accompanying materials                         
    32   are licensed and made available under the terms and conditions of the BSD License         
    33   which accompanies this distribution.  The full text of the license may be found at       
    34   http://opensource.org/licenses/bsd-license.php                                           
    35 
    36   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     
    37   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             
     31  All rights reserved. This program and the accompanying materials
     32  are licensed and made available under the terms and conditions of the BSD License
     33  which accompanies this distribution.  The full text of the license may be found at
     34  http://opensource.org/licenses/bsd-license.php
     35
     36  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     37  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
    3838
    3939**/
     
    8686
    8787  Routine Description:
    88  
     88
    8989  Register Driver Binding protocol for this driver.
    90  
     90
    9191  Arguments:
    92  
     92
    9393    This                 -- a pointer points to the Binding Protocol instance
    94     Controller           -- The handle of controller to be tested. 
     94    Controller           -- The handle of controller to be tested.
    9595    *RemainingDevicePath -- A pointer to the device path. Ignored by device
    9696                            driver but used by bus driver
     
    113113
    114114  Routine Description:
    115  
    116     This routine is called right after the .Supported() called and return 
     115
     116    This routine is called right after the .Supported() called and return
    117117    EFI_SUCCESS. Notes: The supported protocols are checked but the Protocols
    118118    are closed.
    119119
    120120  Arguments:
    121      
     121
    122122    This                 -- a pointer points to the Binding Protocol instance
    123123    Controller           -- The handle of controller to be tested. Parameter
     
    137137  )
    138138/*++
    139  
     139
    140140  Routine Description:
    141     Stop this driver on Controller Handle. 
     141    Stop this driver on Controller Handle.
    142142
    143143  Arguments:
    144144    This              - Protocol instance pointer.
    145     Controller        - Handle of device to stop driver on 
     145    Controller        - Handle of device to stop driver on
    146146    NumberOfChildren  - Not used
    147147    ChildHandleBuffer - Not used
     
    150150    EFI_SUCCESS       - This driver is removed DeviceHandle
    151151    other             - This driver was not removed from this device
    152  
     152
    153153--*/
    154154;
     
    367367    This       - A pointer to the EFI_COMPONENT_NAME_PROTOCOL instance.
    368368    Language   - A pointer to a three character ISO 639-2 language identifier.
    369                  This is the language of the driver name that that the caller 
     369                 This is the language of the driver name that that the caller
    370370                 is requesting, and it must match one of the languages specified
    371                  in SupportedLanguages.  The number of languages supported by a 
     371                 in SupportedLanguages.  The number of languages supported by a
    372372                 driver is up to the driver writer.
    373373    DriverName - A pointer to the Unicode string to return.  This Unicode string
    374                  is the name of the driver specified by This in the language 
     374                 is the name of the driver specified by This in the language
    375375                 specified by Language.
    376376
    377377  Returns:
    378378    EFI_SUCCESS           - The Unicode string for the Driver specified by This
    379                             and the language specified by Language was returned 
     379                            and the language specified by Language was returned
    380380                            in DriverName.
    381381    EFI_INVALID_PARAMETER - Language is NULL.
    382382    EFI_INVALID_PARAMETER - DriverName is NULL.
    383     EFI_UNSUPPORTED       - The driver specified by This does not support the 
     383    EFI_UNSUPPORTED       - The driver specified by This does not support the
    384384                            language specified by Language.
    385385
     
    404404  Arguments:
    405405    This             - A pointer to the EFI_COMPONENT_NAME_PROTOCOL instance.
    406     ControllerHandle - The handle of a controller that the driver specified by 
    407                        This is managing.  This handle specifies the controller 
     406    ControllerHandle - The handle of a controller that the driver specified by
     407                       This is managing.  This handle specifies the controller
    408408                       whose name is to be returned.
    409     ChildHandle      - The handle of the child controller to retrieve the name 
    410                        of.  This is an optional parameter that may be NULL.  It 
    411                        will be NULL for device drivers.  It will also be NULL 
    412                        for a bus drivers that wish to retrieve the name of the 
    413                        bus controller.  It will not be NULL for a bus driver 
     409    ChildHandle      - The handle of the child controller to retrieve the name
     410                       of.  This is an optional parameter that may be NULL.  It
     411                       will be NULL for device drivers.  It will also be NULL
     412                       for a bus drivers that wish to retrieve the name of the
     413                       bus controller.  It will not be NULL for a bus driver
    414414                       that wishes to retrieve the name of a child controller.
    415     Language         - A pointer to a three character ISO 639-2 language 
    416                        identifier.  This is the language of the controller name 
     415    Language         - A pointer to a three character ISO 639-2 language
     416                       identifier.  This is the language of the controller name
    417417                       that that the caller is requesting, and it must match one
    418                        of the languages specified in SupportedLanguages.  The 
    419                        number of languages supported by a driver is up to the 
     418                       of the languages specified in SupportedLanguages.  The
     419                       number of languages supported by a driver is up to the
    420420                       driver writer.
    421421    ControllerName   - A pointer to the Unicode string to return.  This Unicode
    422                        string is the name of the controller specified by 
    423                        ControllerHandle and ChildHandle in the language 
    424                        specified by Language from the point of view of the 
    425                        driver specified by This. 
     422                       string is the name of the controller specified by
     423                       ControllerHandle and ChildHandle in the language
     424                       specified by Language from the point of view of the
     425                       driver specified by This.
    426426
    427427  Returns:
    428     EFI_SUCCESS           - The Unicode string for the user readable name in the 
    429                             language specified by Language for the driver 
     428    EFI_SUCCESS           - The Unicode string for the user readable name in the
     429                            language specified by Language for the driver
    430430                            specified by This was returned in DriverName.
    431431    EFI_INVALID_PARAMETER - ControllerHandle is not a valid EFI_HANDLE.
    432     EFI_INVALID_PARAMETER - ChildHandle is not NULL and it is not a valid 
     432    EFI_INVALID_PARAMETER - ChildHandle is not NULL and it is not a valid
    433433                            EFI_HANDLE.
    434434    EFI_INVALID_PARAMETER - Language is NULL.
    435435    EFI_INVALID_PARAMETER - ControllerName is NULL.
    436     EFI_UNSUPPORTED       - The driver specified by This is not currently 
    437                             managing the controller specified by 
     436    EFI_UNSUPPORTED       - The driver specified by This is not currently
     437                            managing the controller specified by
    438438                            ControllerHandle and ChildHandle.
    439     EFI_UNSUPPORTED       - The driver specified by This does not support the 
     439    EFI_UNSUPPORTED       - The driver specified by This does not support the
    440440                            language specified by Language.
    441441
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxVariable/EmuVariable.c

    r48674 r48947  
    8080  @param[in] DataSize           Size of data. 0 means delete
    8181
    82   @param[in] Attributes               Attribues of the variable
     82  @param[in] Attributes               Attribues of the variable
    8383
    8484  @param[in] Variable           The variable information which is used to keep track of variable usage.
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxVariable/InitVariable.c

    r48730 r48947  
    248248    }
    249249
    250     /* 
     250    /*
    251251     * Tell DevEFI which the current variable is, then ask for the next one.
    252252     */
     
    267267    if (u32Rc == EFI_VARIABLE_OP_STATUS_OK)
    268268    {
    269         /* 
     269        /*
    270270         * Output buffer check.
    271271         */
     
    277277            UINT32 i;
    278278
    279             /* 
     279            /*
    280280             * Read back the result.
    281281             */
  • trunk/src/VBox/Devices/EFI/Firmware/VBoxPkg/VBoxVgaDxe/Edid.c

    r48674 r48947  
    401401    EdidOverrideDataBlock = AllocatePool (sizeof (EDID_BLOCK_SIZE * 2));
    402402    if (NULL == EdidOverrideDataBlock) {
    403                 Status = EFI_OUT_OF_RESOURCES;
     403                Status = EFI_OUT_OF_RESOURCES;
    404404      goto Done;
    405405    }
     
    429429    if (ReadEdidData (Private, &EdidDiscoveredDataBlock, &EdidDiscoveredDataSize) == EFI_SUCCESS) {
    430430      Private->EdidDiscovered.SizeOfEdid = (UINT32) EdidDiscoveredDataSize;
    431         Private->EdidDiscovered.Edid = (UINT8 *) AllocateCopyPool (
     431        Private->EdidDiscovered.Edid = (UINT8 *) AllocateCopyPool (
    432432                                                          EdidDiscoveredDataSize,
    433433                                                          EdidDiscoveredDataBlock
    434                                                                                                                                                                                                                   );
     434                                                                                                                                                                                                                  );
    435435
    436436      if (NULL == Private->EdidDiscovered.Edid) {
    437           Status = EFI_OUT_OF_RESOURCES;
     437          Status = EFI_OUT_OF_RESOURCES;
    438438        goto Done;
    439439      }
     
    450450    EdidActiveDataBlock = EdidOverrideDataBlock;
    451451    EdidFound = TRUE;
    452         }
    453 
    454         if (EdidFound == TRUE) {
     452        }
     453
     454        if (EdidFound == TRUE) {
    455455    //
    456456    // Parse EDID data structure to retrieve modes supported by monitor
     
    466466                                             );
    467467      if (NULL == Private->EdidActive.Edid) {
    468                   Status = EFI_OUT_OF_RESOURCES;
     468                  Status = EFI_OUT_OF_RESOURCES;
    469469        goto Done;
    470470      }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette