VirtualBox

Changeset 48947 in vbox


Ignore:
Timestamp:
Oct 7, 2013 9:41:00 PM (11 years ago)
Author:
vboxsync
Message:

Devices: Whitespace and svn:keyword cleanups by scm.

Location:
trunk/src/VBox/Devices
Files:
67 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevPCI.cpp

    r45305 r48947  
    13001300        { 0x0a, 1, 0, 3, "CLASS_SUB" },
    13011301        { 0x0b, 1, 0, 3, "CLASS_BASE" },
    1302         { 0x0c, 1, 1, 3, "CACHE_LINE_SIZE" },   
    1303         { 0x0d, 1, 1, 3, "LATENCY_TIMER" },     
     1302        { 0x0c, 1, 1, 3, "CACHE_LINE_SIZE" },
     1303        { 0x0d, 1, 1, 3, "LATENCY_TIMER" },
    13041304        { 0x0e, 1, 0, 3, "HEADER_TYPE" },
    1305         { 0x0f, 1, 1, 3, "BIST" },             
     1305        { 0x0f, 1, 1, 3, "BIST" },
    13061306        { 0x10, 4, 1, 3, "BASE_ADDRESS_0" },
    13071307        { 0x14, 4, 1, 3, "BASE_ADDRESS_1" },
  • 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      }
  • trunk/src/VBox/Devices/Graphics/BIOS/vbe.c

    r43152 r48947  
    179179    uint16_t    sig, vmode, attrs;
    180180    uint16_t    cur_info_ofs;   /* Current offset in mode list. */
    181    
     181
    182182    /* Read and check the VBE Extra Data signature. */
    183183    sig = in_word(VBE_EXTRA_PORT, 0);
     
    188188        return 0;
    189189    }
    190    
     190
    191191    cur_info_ofs = sizeof(VBEHeader);
    192    
     192
    193193    vmode = in_word(VBE_EXTRA_PORT, cur_info_ofs + offsetof(ModeInfoListItem, mode)/*&cur_info->mode*/);
    194194    while (vmode != VBE_VESA_MODE_END_OF_LIST)
    195195    {
    196196        attrs = in_word(VBE_EXTRA_PORT, /*&cur_info->info.ModeAttributes*/cur_info_ofs + offsetof(ModeInfoListItem, info.ModeAttributes) );
    197        
     197
    198198        if (vmode == mode)
    199199        {
     
    217217{
    218218    ModeInfoListItem    *cur_info = &mode_info_list;
    219    
     219
    220220    while (cur_info->mode != VBE_VESA_MODE_END_OF_LIST)
    221221    {
     
    650650 *
    651651 */
    652 void vbe_biosfn_save_restore_state(uint16_t STACK_BASED *AX, uint16_t CX, uint16_t DX, 
     652void vbe_biosfn_save_restore_state(uint16_t STACK_BASED *AX, uint16_t CX, uint16_t DX,
    653653                                   uint16_t ES, uint16_t STACK_BASED *BX)
    654654{
  • trunk/src/VBox/Devices/Input/PS2K.cpp

    r47321 r48947  
    433433};
    434434
    435 /* 
     435/*
    436436 * Note 1: The behavior of these keys depends on the state of modifier keys
    437437 * at the time the key was pressed.
  • trunk/src/VBox/Devices/Input/PS2M.cpp

    r48358 r48947  
    461461    if (pThis->enmProtocol == PS2M_PROTO_PS2STD)
    462462    {
    463         switch (pThis->enmKnockState) 
     463        switch (pThis->enmKnockState)
    464464        {
    465465        case PS2M_KNOCK_INITIAL:
     
    482482            pThis->enmKnockState = PS2M_KNOCK_INITIAL;
    483483        }
    484     } 
    485     else if (pThis->enmProtocol == PS2M_PROTO_IMPS2) 
    486     {
    487         switch (pThis->enmKnockState) 
     484    }
     485    else if (pThis->enmProtocol == PS2M_PROTO_IMPS2)
     486    {
     487        switch (pThis->enmKnockState)
    488488        {
    489489        case PS2M_KNOCK_INITIAL:
     
    638638                    break;
    639639                case ACMD_SET_SAMP_RATE:
    640                     //@todo reject unsupported rates                   
     640                    //@todo reject unsupported rates
    641641                    ps2mSetRate(pThis, cmd);
    642642                    ps2mRateProtocolKnock(pThis, cmd);
  • trunk/src/VBox/Devices/Input/UsbKbd.cpp

    r47675 r48947  
    747747                    rc = true;
    748748            }
    749             /* Avoid "hanging" keys: If a key is unreported but no longer 
     749            /* Avoid "hanging" keys: If a key is unreported but no longer
    750750             * depressed, we'll need to report the key-up state, too.
    751751             */
    752752            if (pabUnreportedKeys[iKey] && !pabDepressedKeys[iKey])
    753753                rc = true;
    754            
     754
    755755            pabUnreportedKeys[iKey] = 0;
    756756        }
     
    974974
    975975                    for (iModKey = USBHID_MODIFIER_FIRST; iModKey <= USBHID_MODIFIER_LAST; ++iModKey)
    976                         if (pThis->abDepressedKeys[iModKey]) 
     976                        if (pThis->abDepressedKeys[iModKey])
    977977                            pThis->abUnreportedKeys[iModKey] = 1;
    978978                }
  • trunk/src/VBox/Devices/Input/UsbMouse.cpp

    r47885 r48947  
    203203    bool                fHaveDoneQueueWaiter;
    204204    /** If device has pending changes. */
    205     bool                fHasPendingChanges;   
     205    bool                fHasPendingChanges;
    206206    /** Is this a relative, absolute or multi-touch pointing device? */
    207207    USBHIDMODE          enmMode;
     
    655655
    656656/*     Report ID                         */ 0x85, REPORTID_TOUCH_MAX_COUNT,
    657 /*     Usage (Contact count maximum)     */ 0x09, 0x55, 
    658 /*     Usage (Device identifier)         */ 0x09, 0x53, 
    659 /*     Report Size (8)                   */ 0x75, 0x08, 
    660 /*     Report Count (2)                  */ 0x95, 0x02, 
     657/*     Usage (Contact count maximum)     */ 0x09, 0x55,
     658/*     Usage (Device identifier)         */ 0x09, 0x53,
     659/*     Report Size (8)                   */ 0x75, 0x08,
     660/*     Report Count (2)                  */ 0x95, 0x02,
    661661/*     Logical Maximum (255)             */ 0x26, 0xFF, 0x00,
    662 /*     Feature (Var)                     */ 0xB1, 0x02, 
     662/*     Feature (Var)                     */ 0xB1, 0x02,
    663663
    664664/*     Usage Page (Vendor-Defined 1)     */ 0x06, 0x00, 0xFF,
     
    708708/* End Collection                        */ 0xC0,
    709709
    710 /* Usage Page (Digitizer)                */ 0x05, 0x0D, 
    711 /* Usage (Device configuration)          */ 0x09, 0x0E, 
    712 /* Collection (Application)              */ 0xA1, 0x01, 
    713 /*     Report ID                         */ 0x85, REPORTID_TOUCH_DEVCONFIG, 
    714 /*     Usage (Device settings)           */ 0x09, 0x23, 
    715 /*     Collection (Logical)              */ 0xA1, 0x02, 
    716 /*         Usage (Device mode)           */ 0x09, 0x52, 
    717 /*         Usage (Device identifier)     */ 0x09, 0x53, 
    718 /*         Logical Minimum (0)           */ 0x15, 0x00, 
    719 /*         Logical Maximum (10)          */ 0x25, 0x0A, 
    720 /*         Report Size (8)               */ 0x75, 0x08, 
    721 /*         Report Count (2)              */ 0x95, 0x02, 
    722 /*         Feature (Var)                 */ 0xB1, 0x02, 
    723 /*     End Collection                    */ 0xC0, 
     710/* Usage Page (Digitizer)                */ 0x05, 0x0D,
     711/* Usage (Device configuration)          */ 0x09, 0x0E,
     712/* Collection (Application)              */ 0xA1, 0x01,
     713/*     Report ID                         */ 0x85, REPORTID_TOUCH_DEVCONFIG,
     714/*     Usage (Device settings)           */ 0x09, 0x23,
     715/*     Collection (Logical)              */ 0xA1, 0x02,
     716/*         Usage (Device mode)           */ 0x09, 0x52,
     717/*         Usage (Device identifier)     */ 0x09, 0x53,
     718/*         Logical Minimum (0)           */ 0x15, 0x00,
     719/*         Logical Maximum (10)          */ 0x25, 0x0A,
     720/*         Report Size (8)               */ 0x75, 0x08,
     721/*         Report Count (2)              */ 0x95, 0x02,
     722/*         Feature (Var)                 */ 0xB1, 0x02,
     723/*     End Collection                    */ 0xC0,
    724724/* End Collection                        */ 0xC0
    725725};
     
    12231223        pReport->m.dy       = clamp_i8(pAccumulated->u.Relative.dy);
    12241224        pReport->m.dz       = clamp_i8(pAccumulated->u.Relative.dz);
    1225    
     1225
    12261226        cbCopy = sizeof(pReport->m);
    12271227        LogRel3(("Rel event, dx=%d, dy=%d, dz=%d, fButtons=%02x, report size %d\n",
     
    17811781#define SET_PROTOCOL 0x0B
    17821782
    1783 static uint8_t sau8QASampleBlob[256] = 
     1783static uint8_t sau8QASampleBlob[256] =
    17841784{
    17851785    0xfc, 0x28, 0xfe, 0x84, 0x40, 0xcb, 0x9a, 0x87,
  • trunk/src/VBox/Devices/Network/DevINIP.cpp

    r47933 r48947  
    116116    bool                    fLnkUp;
    117117#ifndef VBOX_WITH_NEW_LWIP
    118     /** 
    119      * This hack-flag for spliting initialization logic in devINIPTcpipInitDone, 
     118    /**
     119     * This hack-flag for spliting initialization logic in devINIPTcpipInitDone,
    120120     * this is the only place when during initialization we can be called from TCPIP
    121      * thread. 
     121     * thread.
    122122     * This callback used for Initialization and Finalization with old lwip.
    123123     */
     
    127127     * In callback we're getting status of interface adding operation (TCPIP thread),
    128128     * but we need inform constructing routine whether it was success or not(EMT thread).
    129      */ 
     129     */
    130130    int rcInitialization;
    131131} DEVINTNETIP, *PDEVINTNETIP;
     
    342342#else
    343343    netif->output = devINIPOutput;
    344    
     344
    345345    lwip_etharp_init();
    346346    TMTimerSetMillies(g_pDevINIPData->ARPTimer, ARP_TMR_INTERVAL);
     
    363363        PDMDEV_SET_ERROR(pDevIns, rc,
    364364                         N_("Configuration error: Failed to get the \"IP\" value"));
    365         /* @todo: perhaps we should panic if IPv4 address isn't specify, with assumtion that 
    366          * ISCSI target specified in IPv6 form. 
     365        /* @todo: perhaps we should panic if IPv4 address isn't specify, with assumtion that
     366         * ISCSI target specified in IPv6 form.
    367367         */
    368368        return rc;
     
    490490/**
    491491 * Signals the end of lwIP TCPIP initialization.
    492  * 
     492 *
    493493 * @note: TCPIP thread, corresponding EMT waiting on semaphore.
    494494 * @param   arg     opaque argument, here the pointer to the PDEVINTNETIP.
     
    512512        {
    513513            pThis->rcInitialization = VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES;
    514             PDMDEV_SET_ERROR(pThis->pDevIns, 
     514            PDMDEV_SET_ERROR(pThis->pDevIns,
    515515                             pThis->rcInitialization,
    516516                             N_("Configuration error: Invalid \"IP\" value"));
     
    518518        }
    519519        memcpy(&ipaddr, &ip, sizeof(ipaddr));
    520        
     520
    521521        if (!inet_aton(pThis->pszNetmask, &ip))
    522522        {
    523523            pThis->rcInitialization = VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES;
    524             PDMDEV_SET_ERROR(pThis->pDevIns, 
     524            PDMDEV_SET_ERROR(pThis->pDevIns,
    525525                             pThis->rcInitialization,
    526526                             N_("Configuration error: Invalid \"Netmask\" value"));
     
    534534            {
    535535                pThis->rcInitialization = VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES;
    536                 PDMDEV_SET_ERROR(pThis->pDevIns, 
     536                PDMDEV_SET_ERROR(pThis->pDevIns,
    537537                                 pThis->rcInitialization,
    538538                                 N_("Configuration error: Invalid \"Gateway\" value"));
     
    549549        pThis->IntNetIF.name[0] = 'I';
    550550        pThis->IntNetIF.name[1] = 'N';
    551    
     551
    552552        ret = netif_add(&pThis->IntNetIF, &ipaddr, &netmask, &gw, NULL,
    553553                        devINIPInterface, lwip_tcpip_input);
     
    555555        if (!ret)
    556556        {
    557            
     557
    558558            pThis->rcInitialization = VERR_NET_NO_NETWORK;
    559             PDMDEV_SET_ERROR(pThis->pDevIns, 
     559            PDMDEV_SET_ERROR(pThis->pDevIns,
    560560                             pThis->rcInitialization,
    561561                             N_("netif_add failed"));
     
    565565        lwip_netif_set_default(&pThis->IntNetIF);
    566566        lwip_netif_set_up(&pThis->IntNetIF);
    567        
     567
    568568#ifndef VBOX_WITH_NEW_LWIP
    569569    }
     
    581581 * XXX: We do it only for new LWIP, old LWIP will stay broken for now.
    582582 */
    583 static DECLCALLBACK(void) devINIPTcpipFiniDone(void *arg) 
     583static DECLCALLBACK(void) devINIPTcpipFiniDone(void *arg)
    584584{
    585585    PDEVINTNETIP pThis = (PDEVINTNETIP)arg;
  • trunk/src/VBox/Devices/Network/DrvIntNet.cpp

    r47499 r48947  
    10891089                Frame.Hdr.DstMac.au16[2] = 0xffff;
    10901090                Frame.Hdr.EtherType      = RT_H2BE_U16_C(0x801e);
    1091                 int rc = pThis->pIAboveConfigR3->pfnGetMac(pThis->pIAboveConfigR3, 
     1091                int rc = pThis->pIAboveConfigR3->pfnGetMac(pThis->pIAboveConfigR3,
    10921092                                                           &Frame.Hdr.SrcMac);
    10931093                if (RT_SUCCESS(rc))
    10941094                    rc = drvR3IntNetResumeSend(pThis, &Frame, sizeof(Frame));
    10951095                if (RT_FAILURE(rc))
    1096                     LogRel(("IntNet#%u: Sending dummy frame failed: %Rrc\n", 
     1096                    LogRel(("IntNet#%u: Sending dummy frame failed: %Rrc\n",
    10971097                            pDrvIns->iInstance, rc));
    10981098            }
  • trunk/src/VBox/Devices/Network/DrvNAT.cpp

    r48526 r48947  
    10501050             */
    10511051#ifndef RT_OS_DARWIN
    1052             pThis->pIAboveConfig->pfnSetLinkState(pThis->pIAboveConfig, 
     1052            pThis->pIAboveConfig->pfnSetLinkState(pThis->pIAboveConfig,
    10531053                                                  PDMNETWORKLINKSTATE_DOWN_RESUME);
    10541054#endif
  • trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp

    r46921 r48947  
    12721272            break;
    12731273        case kIntNetAddrType_IPv6:
    1274             Log(("intnetR0IfAddrCacheAddIt: hIf=%#x MAC=%.6Rhxs IPv6 added #%d %RTnaipv6 %s\n", 
     1274            Log(("intnetR0IfAddrCacheAddIt: hIf=%#x MAC=%.6Rhxs IPv6 added #%d %RTnaipv6 %s\n",
    12751275                 pIf->hIf, &pIf->MacAddr, pCache->cEntries, pAddr->IPv6, pszMsg));
    12761276            break;
     
    28582858        }
    28592859        else if (pEthHdr->EtherType == RT_H2BE_U16(RTNET_ETHERTYPE_IPV6))
    2860         { 
     2860        {
    28612861            /*
    2862              * IPV6 ICMP Neighbor Discovery : replace 
     2862             * IPV6 ICMP Neighbor Discovery : replace
    28632863             * 1) the advertised source mac address in outgoing neighbor sollicitations
    28642864             *    with the HW MAC address of the trunk interface,
     
    28682868             * Note that this only applies to traffic going out on the trunk. Incoming
    28692869             * NS/NA will never advertise any VM mac address, so we do not need to touch
    2870              * them. Other VMs on this bridge as well as the host will see and use the VM's 
     2870             * them. Other VMs on this bridge as well as the host will see and use the VM's
    28712871             * actual mac addresses.
    28722872             *
     
    28742874
    28752875            PRTNETIPV6 pIPv6            = (PRTNETIPV6)(pEthHdr + 1);
    2876             PRTNETNDP pNd               = (PRTNETNDP)(pIPv6 + 1); 
    2877             PRTNETNDP_SLLA_OPT pLLAOpt  = (PRTNETNDP_SLLA_OPT)(pNd + 1); 
     2876            PRTNETNDP pNd               = (PRTNETNDP)(pIPv6 + 1);
     2877            PRTNETNDP_SLLA_OPT pLLAOpt  = (PRTNETNDP_SLLA_OPT)(pNd + 1);
    28782878
    28792879            /* make sure we have enough bytes to work with */
     
    28822882               pIPv6->ip6_hlim == 0xff &&
    28832883               /* protocol has to be icmpv6 */
    2884                 pIPv6->ip6_nxt == RTNETIPV6_PROT_ICMPV6 && 
     2884                pIPv6->ip6_nxt == RTNETIPV6_PROT_ICMPV6 &&
    28852885               /* we either have a sollicitation with source link layer addr. opt, or */
    28862886                ((pNd->icmp6_type == RTNETIPV6_ICMP_NS_TYPE &&
     
    29002900                pNd->icmp6_cksum = computeIPv6FullChecksum(pIPv6);
    29012901            }
    2902            
     2902
    29032903        }
    29042904    }
     
    29332933 * @param   pNetwork        The network the frame is being sent to.
    29342934 * @param   pSG             Pointer to the gather list for the frame.
    2935  * @param   pEthHdr         Pointer to the ethernet header. 
     2935 * @param   pEthHdr         Pointer to the ethernet header.
    29362936 */
    29372937static bool intnetR0NetworkDetectAndFixNdBroadcast(PINTNETNETWORK pNetwork, PINTNETSG pSG, PRTNETETHERHDR pEthHdr)
     
    29432943     * using the temporary buffer if necessary.
    29442944     */
    2945     if (RT_UNLIKELY(pSG->cbTotal < sizeof(RTNETETHERHDR) + sizeof(RTNETIPV6) + 
     2945    if (RT_UNLIKELY(pSG->cbTotal < sizeof(RTNETETHERHDR) + sizeof(RTNETIPV6) +
    29462946                                            sizeof(RTNETNDP)))
    29472947        return false;
     
    29982998 * @param   pNetwork        The network the frame is being sent to.
    29992999 * @param   pSG             Pointer to the gather list for the frame.
    3000  * @param   pEthHdr         Pointer to the ethernet header. 
     3000 * @param   pEthHdr         Pointer to the ethernet header.
    30013001 */
    30023002static void intnetR0NetworkSnoopNAFromWire(PINTNETNETWORK pNetwork, PINTNETSG pSG, PRTNETETHERHDR pEthHdr)
     
    30063006     * using the temporary buffer if necessary.
    30073007     */
    3008     if (RT_UNLIKELY(pSG->cbTotal < sizeof(RTNETETHERHDR) + sizeof(RTNETIPV6) + 
     3008    if (RT_UNLIKELY(pSG->cbTotal < sizeof(RTNETETHERHDR) + sizeof(RTNETIPV6) +
    30093009                                            sizeof(RTNETNDP)))
    30103010        return;
     
    30373037        &&  pIPv6->ip6_src.QWords.qw1 == 0)
    30383038    {
    3039        
    3040         intnetR0NetworkAddrCacheDelete(pNetwork, (PCRTNETADDRU) &pNd->target_address, 
     3039
     3040        intnetR0NetworkAddrCacheDelete(pNetwork, (PCRTNETADDRU) &pNd->target_address,
    30413041                                        kIntNetAddrType_IPv6, sizeof(RTNETADDRIPV6), "tif/ip6");
    30423042    }
     
    52635263        case kIntNetTrunkType_WhateverNone:
    52645264#ifdef VBOX_WITH_NAT_SERVICE
    5265             /* 
     5265            /*
    52665266             * Well, here we don't want load anything special,
    5267              * just communicate between processes via internal network. 
     5267             * just communicate between processes via internal network.
    52685268             */
    52695269        case kIntNetTrunkType_SrvNat:
     
    52885288#endif /* VBOXNETADP_DO_NOT_USE_NETFLT */
    52895289            break;
    5290 #ifndef VBOX_WITH_NAT_SERVICE   
     5290#ifndef VBOX_WITH_NAT_SERVICE
    52915291        case kIntNetTrunkType_SrvNat:
    52925292            pszName = "VBoxSrvNat";
  • trunk/src/VBox/Devices/Network/slirp/dnsproxy/dnsproxy.c

    r48526 r48947  
    120120    /* be paranoid */
    121121    AssertPtrReturnVoid(arg);
    122    
     122
    123123    de = TAILQ_PREV(req->dns_server, dns_list_head, de_list);
    124    
     124
    125125    if (de == NULL)
    126126    {
     
    137137        struct mbuf *m = NULL;
    138138        char *data;
    139        
     139
    140140        m = slirpDnsMbufAlloc(pData);
    141141        if (m == NULL)
     
    168168
    169169        /* expiration will be bumped in dnsproxy_query */
    170        
     170
    171171        dnsproxy_query(pData, so, m, iphlen);
    172172        /* should we free so->so_m ? */
    173173        return;
    174174    }
    175  
    176  socket_clean_up:   
     175
     176 socket_clean_up:
    177177    /* This socket (so) will be detached, so we need to remove timeout(&_arg) references
    178      * before leave 
     178     * before leave
    179179     */
    180180    so->so_timeout = NULL;
     
    309309#else /* VBOX */
    310310    AssertPtr(pData);
    311    
     311
    312312    /* m->m_data points to IP header */
    313313#if 0
     
    340340
    341341
    342     req = so->so_timeout_arg; 
     342    req = so->so_timeout_arg;
    343343
    344344    if (!req)
     
    347347        Assert(!so->so_timeout_arg);
    348348
    349         if ((req = RTMemAllocZ(sizeof(struct request) + byte)) == NULL) 
     349        if ((req = RTMemAllocZ(sizeof(struct request) + byte)) == NULL)
    350350        {
    351351            LogRel(("calloc failed\n"));
     
    382382
    383383    req->recursion = 0;
    384        
     384
    385385    DPRINTF(("External query RD=%d\n", RD(buf)));
    386        
     386
    387387    if (retransmit == 0)
    388388        hash_add_request(pData, req);
     
    394394    /* let's slirp to care about expiration */
    395395    so->so_expire = curtime + recursive_timeout * 1000;
    396  
     396
    397397    memset(&addr, 0, sizeof(struct sockaddr_in));
    398398    addr.sin_family = AF_INET;
     
    408408    /* send it to our authoritative server */
    409409    Log2(("NAT: request will be sent to %RTnaipv4 on %R[natsock]\n", addr.sin_addr, so));
    410    
     410
    411411    byte = sendto(so->s, buf, (unsigned int)byte, 0,
    412412                  (struct sockaddr *)&addr,
    413413                  sizeof(struct sockaddr_in));
    414     if (byte == -1) 
     414    if (byte == -1)
    415415    {
    416416        /* XXX: is it really enough? */
     
    425425    ++authoritative_queries;
    426426
    427 # if 0   
    428     /* XXX: this stuff for _debugging_ only, 
    429      * first enforce guest to send next request 
    430      * and second for faster getting timeout callback 
    431      * other option is adding couple entries in resolv.conf with 
     427# if 0
     428    /* XXX: this stuff for _debugging_ only,
     429     * first enforce guest to send next request
     430     * and second for faster getting timeout callback
     431     * other option is adding couple entries in resolv.conf with
    432432     * invalid nameservers.
    433433     *
    434      * For testing purposes could be used 
    435      * namebench -S -q 10000 -m random or -m chunk 
     434     * For testing purposes could be used
     435     * namebench -S -q 10000 -m random or -m chunk
    436436     */
    437437    /* RTThreadSleep(3000); */
     
    497497        LogRel(("sendto failed: %s\n", strerror(errno)));
    498498        ++dropped_answers;
    499     } 
     499    }
    500500    else
    501501        ++answered_queries;
     
    509509
    510510    AssertPtr(pData);
    511    
     511
    512512    /* XXX: mbuf->data points to ??? */
    513513    byte = m->m_len;
     
    524524
    525525    /* find corresponding query */
    526     if (query == NULL) 
     526    if (query == NULL)
    527527    {
    528         /* XXX: if we haven't found anything for this request ... 
     528        /* XXX: if we haven't found anything for this request ...
    529529         * What we are expecting later?
    530530         */
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r48526 r48947  
    354354    /* set default addresses */
    355355    inet_aton("127.0.0.1", &loopback_addr);
    356    
     356
    357357    if (!fUseHostResolver)
    358358    {
     
    744744                if (so->so_timeout != NULL)
    745745                {
    746                     /* so_timeout - might change the so_expire value or 
    747                      * drop so_timeout* from so. 
     746                    /* so_timeout - might change the so_expire value or
     747                     * drop so_timeout* from so.
    748748                     */
    749749                    so->so_timeout(pData, so, so->so_timeout_arg);
    750                     /* on 4.2 so-> 
     750                    /* on 4.2 so->
    751751                     */
    752752                    if (   so_next->so_prev != so /* so_timeout freed the socket */
  • trunk/src/VBox/Devices/PC/BIOS/bios.c

    r44528 r48947  
    100100    // interrupt level.
    101101    uint8_t     isrA, isrB, imr, last_int = 0xFF;
    102    
     102
    103103    outb(PIC_MASTER, PIC_CMD_RD_ISR);           // Read master ISR
    104104    isrA = inb(PIC_MASTER);
     
    175175
    176176    /* Avoid using preprocessing directives within macro arguments. */
    177     bios_conf = 
     177    bios_conf =
    178178#ifdef __WATCOMC__
    179179    "watcom "
  • trunk/src/VBox/Devices/PC/BIOS/eltorito.c

    r45791 r48947  
    135135// ---------------------------------------------------------------------------
    136136
    137 // !! TODO !! convert EBDA accesses to far pointers 
     137// !! TODO !! convert EBDA accesses to far pointers
    138138
    139139extern  int     diskette_param_table;
     
    144144    // @TODO: a macro or a function for getting the EBDA segment
    145145    uint16_t    ebda_seg = read_word(0x0040,0x000E);
    146    
     146
    147147    // the only important data is this one for now
    148148    write_byte(ebda_seg,(uint16_t)&EbdaData->cdemu.active, 0x00);
     
    153153    // @TODO: a macro or a function for getting the EBDA segment
    154154    uint16_t    ebda_seg = read_word(0x0040,0x000E);
    155    
     155
    156156    return read_byte(ebda_seg,(uint16_t)&EbdaData->cdemu.active);
    157157}
     
    161161    // @TODO: a macro or a function for getting the EBDA segment
    162162    uint16_t    ebda_seg = read_word(0x0040,0x000E);
    163    
     163
    164164    return read_byte(ebda_seg,(uint16_t)&EbdaData->cdemu.emulated_drive);
    165165}
     
    177177    cdemu = ebda_seg :> &EbdaData->cdemu;
    178178
    179    
     179
    180180    BX_DEBUG_INT13_ET("%s: AX=%04x BX=%04x CX=%04x DX=%04x ES=%04x\n", __func__, AX, BX, CX, DX, ES);
    181181    // BX_DEBUG_INT13_ET("%s: SS=%04x DS=%04x ES=%04x DI=%04x SI=%04x\n", __func__, get_SS(), DS, ES, DI, SI);
    182    
     182
    183183    switch (GET_AH()) {
    184184
     
    206206        write_byte(DS,SI+0x11,cdemu->vdevice.spt);
    207207        write_byte(DS,SI+0x12,cdemu->vdevice.heads);
    208        
     208
    209209        // If we have to terminate emulation
    210210        if(GET_AL() == 0x00) {
     
    244244{
    245245    bio_dsk_t __far *bios_dsk;
    246    
     246
    247247    bios_dsk = read_word(0x0040, 0x000E) :> &EbdaData->bdisk;
    248    
     248
    249249    if (device >= BX_MAX_STORAGE_DEVICES)
    250250        return 0;
    251    
     251
    252252//    if (bios_dsk->devices[device].type != DSK_TYPE_ATAPI)
    253253//        return 0;
    254    
     254
    255255    if (bios_dsk->devices[device].device != DSK_DEVICE_CDROM)
    256256        return 0;
    257    
     257
    258258    return 1;
    259259}
     
    390390    cdemu->ilba = lba;
    391391
    392     BX_DEBUG_ELTORITO("Emulate drive %02x, type %02x, LBA %lu\n", 
     392    BX_DEBUG_ELTORITO("Emulate drive %02x, type %02x, LBA %lu\n",
    393393                      cdemu->emulated_drive, cdemu->media, cdemu->ilba);
    394394
     
    410410        return 13;
    411411
    412     BX_DEBUG_ELTORITO("Emulate drive %02x, type %02x, LBA %lu\n", 
     412    BX_DEBUG_ELTORITO("Emulate drive %02x, type %02x, LBA %lu\n",
    413413                      cdemu->emulated_drive, cdemu->media, cdemu->ilba);
    414414    /* Set up emulated drive geometry based on the media type. */
     
    481481
    482482    /* at this point, we are emulating a floppy/harddisk */
    483    
     483
    484484    // Recompute the device number
    485485    device  = cdemu->controller_index * 2;
    486486    device += cdemu->device_spec;
    487    
     487
    488488    SET_DISK_RET_STATUS(0x00);
    489    
     489
    490490    /* basic checks : emulation should be active, dl should equal the emulated drive */
    491491    if (!cdemu->active || (cdemu->emulated_drive != GET_DL())) {
     
    493493        goto int13_fail;
    494494    }
    495    
     495
    496496    switch (GET_AH()) {
    497497
     
    525525        SET_AH(status);
    526526        SET_DISK_RET_STATUS(0);
    527        
     527
    528528        /* set CF if error status read */
    529529        if (status)
     
    539539        vheads     = cdemu->vdevice.heads;
    540540        ilba       = cdemu->ilba;
    541        
     541
    542542        sector    = GET_CL() & 0x003f;
    543543        cylinder  = (GET_CL() & 0x00c0) << 2 | GET_CH();
     
    553553        if(nbsectors==0)
    554554            goto int13_success;
    555        
     555
    556556        // sanity checks sco openserver needs this!
    557557        if ((sector   >  vspt)
     
    560560            goto int13_fail;
    561561        }
    562        
     562
    563563        // After validating the input, verify does nothing
    564564        if (GET_AH() == 0x04)
    565565            goto int13_success;
    566        
     566
    567567        segment = ES+(BX / 16);
    568568        offset  = BX % 16;
    569        
     569
    570570        // calculate the virtual lba inside the image
    571571        vlba=((((uint32_t)cylinder*(uint32_t)vheads)+(uint32_t)head)*(uint32_t)vspt)+((uint32_t)(sector-1));
    572        
     572
    573573        // In advance so we don't lose the count
    574574        SET_AL(nbsectors);
    575        
     575
    576576        // start lba on cd
    577577        slba   = (uint32_t)vlba / 4;
    578578        before = (uint32_t)vlba % 4;
    579        
     579
    580580        // end lba on cd
    581581        elba = (uint32_t)(vlba + nbsectors - 1) / 4;
     
    603603            goto int13_fail_noah;
    604604        }
    605        
     605
    606606        goto int13_success;
    607607        break;
     
    611611        vcylinders = cdemu->vdevice.cylinders - 1;
    612612        vheads     = cdemu->vdevice.heads - 1;
    613        
     613
    614614        SET_AL( 0x00 );
    615615        SET_BL( 0x00 );
     
    694694
    695695    bios_dsk = ebda_seg :> &EbdaData->bdisk;
    696    
     696
    697697    BX_DEBUG_INT13_CD("%s: AX=%04x BX=%04x CX=%04x DX=%04x ES=%04x\n", __func__, AX, BX, CX, DX, ES);
    698    
     698
    699699    SET_DISK_RET_STATUS(0x00);
    700    
     700
    701701    /* basic check : device should be 0xE0+ */
    702702    if( (GET_ELDL() < 0xE0) || (GET_ELDL() >= 0xE0 + BX_MAX_STORAGE_DEVICES) ) {
     
    704704        goto int13_fail;
    705705    }
    706    
     706
    707707    // Get the ata channel
    708708    device = bios_dsk->cdidmap[GET_ELDL()-0xE0];
    709    
     709
    710710    /* basic check : device has to be valid  */
    711711    if (device >= BX_MAX_STORAGE_DEVICES) {
  • trunk/src/VBox/Devices/PC/BIOS/floppy.c

    r48069 r48947  
    125125{
    126126    uint8_t     val8;
    127    
     127
    128128    // Reset controller
    129129    val8 = inb(0x03f2);
    130130    outb(0x03f2, val8 & ~0x04);
    131131    outb(0x03f2, val8 | 0x04);
    132    
     132
    133133    // Wait for controller to come out of reset
    134134    do {
     
    140140{
    141141    uint8_t     val8, dor, prev_reset;
    142    
     142
    143143    // set 40:3e bit 7 to 0
    144144    val8 = read_byte(0x0040, 0x003e);
    145145    val8 &= 0x7f;
    146146    write_byte(0x0040, 0x003e, val8);
    147    
     147
    148148    // turn on motor of selected drive, DMA & int enabled, normal operation
    149149    prev_reset = inb(0x03f2) & 0x04;
     
    155155        dor |= drive;
    156156        outb(0x03f2, dor);
    157    
     157
    158158    // reset the disk motor timeout value of INT 08
    159159    write_byte(0x0040,0x0040, BX_FLOPPY_ON_CNT);
    160    
     160
    161161    // program data rate
    162162    val8 = read_byte(0x0040, 0x008b);
    163163    val8 >>= 6;
    164164    outb(0x03f7, val8);
    165    
     165
    166166    // wait for drive readiness
    167167    do {
    168168        val8 = inb(0x3f4);
    169169    } while ( (val8 & 0xc0) != 0x80 );
    170    
     170
    171171    if (prev_reset == 0) {
    172172#ifdef VBOX_WITH_FLOPPY_IRQ_POLLING
     
    190190    uint8_t     val8;
    191191    uint16_t    media_state_offset;
    192    
     192
    193193    val8 = read_byte(0x0040, 0x003e); // diskette recal status
    194194    if (drive)
     
    197197    if (val8 == 0)
    198198        return 0;
    199    
     199
    200200    media_state_offset = 0x0090;
    201201    if (drive)
    202202        media_state_offset += 1;
    203    
     203
    204204    val8 = read_byte(0x0040, media_state_offset);
    205205    val8 = (val8 >> 4) & 0x01;
    206206    if (val8 == 0)
    207207        return 0;
    208    
     208
    209209    // checks passed, return KNOWN
    210210    return 1;
     
    218218    uint8_t     return_status[7];
    219219    int         i;
    220    
     220
    221221    floppy_prepare_controller(drive);
    222    
     222
    223223    // send Read ID command (2 bytes) to controller
    224224    outb(0x03f5, 0x4a);  // 4a: Read ID (MFM)
    225225    outb(0x03f5, drive); // 0=drive0, 1=drive1, head always 0
    226    
     226
    227227#ifdef VBOX_WITH_FLOPPY_IRQ_POLLING
    228228    // turn on interrupts
    229229    int_enable();
    230    
     230
    231231    // wait on 40:3e bit 7 to become 1
    232232    do {
    233233        val8 = (read_byte(0x0040, 0x003e) & 0x80);
    234234    } while ( val8 == 0 );
    235    
     235
    236236    val8 = 0; // separate asm from while() loop
    237237    // turn off interrupts
     
    240240    floppy_wait_for_interrupt();
    241241#endif
    242    
     242
    243243    // read 7 return status bytes from controller
    244244    for (i = 0; i < 7; ++i) {
    245245        return_status[i] = inb(0x3f5);
    246246    }
    247    
     247
    248248    if ( (return_status[0] & 0xc0) != 0 )
    249249        return 0;
     
    256256    uint8_t     val8;
    257257    uint16_t    curr_cyl_offset;
    258    
     258
    259259    floppy_prepare_controller(drive);
    260    
     260
    261261    // send Recalibrate command (2 bytes) to controller
    262262    outb(0x03f5, 0x07);  // 07: Recalibrate
    263263    outb(0x03f5, drive); // 0=drive0, 1=drive1
    264    
     264
    265265#ifdef VBOX_WITH_FLOPPY_IRQ_POLLING
    266266    // turn on interrupts
    267267    int_enable();
    268    
     268
    269269    // wait on 40:3e bit 7 to become 1
    270270    do {
    271271        val8 = (read_byte(0x0040, 0x003e) & 0x80);
    272272    } while ( val8 == 0 );
    273    
     273
    274274    val8 = 0; // separate asm from while() loop
    275275    // turn off interrupts
     
    293293    write_byte(0x0040, 0x003e, val8);
    294294    write_byte(0x0040, curr_cyl_offset, 0); // current cylinder is 0
    295    
     295
    296296    return 1;
    297297}
     
    303303    uint16_t    media_state_offset;
    304304    uint8_t     drive_type, config_data, media_state;
    305    
     305
    306306    if (floppy_drive_recal(drive) == 0)
    307307        return 0;
    308    
     308
    309309    // Try the diskette data rates in the following order:
    310310    // 1 Mbps -> 500 Kbps -> 300 Kbps -> 250 Kbps
    311311    // The 1 Mbps rate is only tried for 2.88M drives.
    312    
     312
    313313    // ** config_data **
    314314    // Bitfields for diskette media control:
     
    320320    //  3-2  {data rate at start of operation}
    321321    //  1-0  reserved
    322    
     322
    323323    // ** media_state **
    324324    // Bitfields for diskette drive media state:
     
    388388        retval = 0;
    389389    }
    390    
     390
    391391    write_byte(0x0040, 0x008B, config_data);
    392392    while (!floppy_read_id(drive)) {
     
    408408        write_byte(0x0040, 0x008B, config_data);
    409409    }
    410    
     410
    411411    if (drive == 0)
    412412        media_state_offset = 0x0090;
     
    415415    write_byte(0x0040, 0x008B, config_data);
    416416    write_byte(0x0040, media_state_offset, media_state);
    417    
     417
    418418    return retval;
    419419}
     
    423423{
    424424    uint8_t     drive_type;
    425    
     425
    426426    // check CMOS to see if drive exists
    427427    // @todo: break out drive type determination
     
    456456    uint16_t    last_addr;
    457457    int         i;
    458    
     458
    459459    BX_DEBUG_INT13_FL("%s: AX=%04x BX=%04x CX=%04x DX=%04x ES=%04x\n", __func__, AX, BX, CX, DX, ES);
    460    
     460
    461461    ah = GET_AH();
    462    
     462
    463463    switch ( ah ) {
    464464    case 0x00: // diskette controller reset
     
    483483            return;
    484484        }
    485        
     485
    486486        // force re-calibration etc.
    487487        write_byte(0x0040, 0x003e, 0);
    488        
     488
    489489        SET_AH(0);
    490490        set_diskette_ret_status(0);
     
    492492        set_diskette_current_cyl(drive, 0); // current cylinder
    493493        return;
    494    
     494
    495495    case 0x01: // Read Diskette Status
    496496        CLEAR_CF();
     
    501501        }
    502502        return;
    503    
     503
    504504    case 0x02: // Read Diskette Sectors
    505505    case 0x03: // Write Diskette Sectors
     
    510510        head        = GET_DH();
    511511        drive       = GET_ELDL();
    512        
     512
    513513        if ( (drive > 1) || (head > 1) ||
    514514         (num_sectors == 0) || (num_sectors > 72) ) {
     
    520520            return;
    521521        }
    522        
     522
    523523        // see if drive exists
    524524        if (floppy_drive_exists(drive) == 0) {
     
    529529            return;
    530530        }
    531        
     531
    532532        // see if media in drive, and type is known
    533533        if (floppy_media_known(drive) == 0) {
     
    540540            }
    541541        }
    542        
     542
    543543        if (ah == 0x02) {
    544544            // Read Diskette Sectors
    545            
     545
    546546            //-----------------------------------
    547547            // set up DMA controller for transfer
    548548            //-----------------------------------
    549            
     549
    550550            // es:bx = pointer to where to place information from diskette
    551551            // port 04: DMA-1 base and current address, channel 2
     
    561561            }
    562562            base_count = (num_sectors * 512) - 1;
    563            
     563
    564564            // check for 64K boundary overrun
    565565            last_addr = base_address + base_count;
     
    571571                return;
    572572            }
    573            
     573
    574574            BX_DEBUG_INT13_FL("masking DMA-1 c2\n");
    575575            outb(0x000a, 0x06);
    576            
     576
    577577            BX_DEBUG_INT13_FL("clear flip-flop\n");
    578578            outb(0x000c, 0x00); // clear flip-flop
     
    584584            outb(0x0005, base_count>>8);
    585585            BX_DEBUG_INT13_FL("xfer buf at %x:%x\n", page, base_address);
    586            
     586
    587587            // port 0b: DMA-1 Mode Register
    588588            mode_register = 0x46; // single mode, increment, autoinit disable,
     
    590590            BX_DEBUG_INT13_FL("setting mode register\n");
    591591            outb(0x000b, mode_register);
    592            
     592
    593593            BX_DEBUG_INT13_FL("setting page register\n");
    594594            // port 81: DMA-1 Page Register, channel 2
    595595            outb(0x0081, page);
    596            
     596
    597597            BX_DEBUG_INT13_FL("unmask chan 2\n");
    598598            outb(0x000a, 0x02); // unmask channel 2
    599            
     599
    600600            BX_DEBUG_INT13_FL("unmasking DMA-1 c2\n");
    601601            outb(0x000a, 0x02);
    602            
     602
    603603            //--------------------------------------
    604604            // set up floppy controller for transfer
    605605            //--------------------------------------
    606606            floppy_prepare_controller(drive);
    607            
     607
    608608            // send read-normal-data command (9 bytes) to controller
    609609            outb(0x03f5, 0xe6); // e6: read normal data
     
    616616            outb(0x03f5, 0); // Gap length
    617617            outb(0x03f5, 0xff); // Gap length
    618            
     618
    619619#ifdef VBOX_WITH_FLOPPY_IRQ_POLLING
    620620            // turn on interrupts
    621621            int_enable();
    622            
     622
    623623            // wait on 40:3e bit 7 to become 1 or timeout (latter isn't armed so it won't happen)
    624624            do {
     
    634634                val8 = (read_byte(0x0040, 0x003e) & 0x80);
    635635            } while ( val8 == 0 );
    636            
     636
    637637            val8 = 0; // separate asm from while() loop
    638638            // turn off interrupts
     
    655655            }
    656656#endif
    657            
     657
    658658            // check port 3f4 for accessibility to status bytes
    659659            val8 = inb(0x3f4);
     
    666666                write_byte(0x0040, 0x0042 + i, return_status[i]);
    667667            }
    668            
     668
    669669            if ( (return_status[0] & 0xc0) != 0 ) {
    670670                SET_AH(0x20);
     
    686686        } else if (ah == 0x03) {
    687687            // Write Diskette Sectors
    688            
     688
    689689            //-----------------------------------
    690690            // set up DMA controller for transfer
    691691            //-----------------------------------
    692            
     692
    693693            // es:bx = pointer to where to place information from diskette
    694694            // port 04: DMA-1 base and current address, channel 2
     
    704704            }
    705705            base_count = (num_sectors * 512) - 1;
    706            
     706
    707707            // check for 64K boundary overrun
    708708            last_addr = base_address + base_count;
     
    714714                return;
    715715            }
    716            
     716
    717717            BX_DEBUG_INT13_FL("masking DMA-1 c2\n");
    718718            outb(0x000a, 0x06);
    719            
     719
    720720            outb(0x000c, 0x00); // clear flip-flop
    721721            outb(0x0004, base_address);
     
    725725            outb(0x0005, base_count>>8);
    726726            BX_DEBUG_INT13_FL("xfer buf at %x:%x\n", page, base_address);
    727            
     727
    728728            // port 0b: DMA-1 Mode Register
    729729            mode_register = 0x4a; // single mode, increment, autoinit disable,
    730730              // transfer type=read, channel 2
    731731            outb(0x000b, mode_register);
    732            
     732
    733733            // port 81: DMA-1 Page Register, channel 2
    734734            outb(0x0081, page);
    735            
     735
    736736            BX_DEBUG_INT13_FL("unmasking DMA-1 c2\n");
    737737            outb(0x000a, 0x02);
    738            
     738
    739739            //--------------------------------------
    740740            // set up floppy controller for transfer
    741741            //--------------------------------------
    742742            floppy_prepare_controller(drive);
    743            
     743
    744744            // send write-normal-data command (9 bytes) to controller
    745745            outb(0x03f5, 0xc5); // c5: write normal data
     
    752752            outb(0x03f5, 0); // Gap length
    753753            outb(0x03f5, 0xff); // Gap length
    754            
     754
    755755#ifdef VBOX_WITH_FLOPPY_IRQ_POLLING
    756756            // turn on interrupts
    757757            int_enable();
    758            
     758
    759759            // wait on 40:3e bit 7 to become 1
    760760            do {
     
    770770                val8 = (read_byte(0x0040, 0x003e) & 0x80);
    771771            } while ( val8 == 0 );
    772            
     772
    773773            val8 = 0; // separate asm from while() loop @todo: why??
    774774            // turn off interrupts
     
    790790            }
    791791#endif
    792            
     792
    793793            // check port 3f4 for accessibility to status bytes
    794794            val8 = inb(0x3f4);
    795795            if ( (val8 & 0xc0) != 0xc0 )
    796796                BX_PANIC("%s: ctrl not ready\n", __func__);
    797            
     797
    798798            // read 7 return status bytes from controller and store in BDA
    799799            for (i = 0; i < 7; ++i) {
     
    801801                write_byte(0x0040, 0x0042 + i, return_status[i]);
    802802            }
    803            
     803
    804804            if ( (return_status[0] & 0xc0) != 0 ) {
    805805                if ( (return_status[1] & 0x02) != 0 ) {
     
    815815                return;
    816816            }
    817            
     817
    818818            // ??? should track be new val from return_status[3] ?
    819819            set_diskette_current_cyl(drive, track);
     
    824824        } else {  // if (ah == 0x04)
    825825            // Verify Diskette Sectors
    826            
     826
    827827            // ??? should track be new val from return_status[3] ?
    828828            set_diskette_current_cyl(drive, track);
     
    833833        }
    834834        break;
    835    
     835
    836836    case 0x05: // format diskette track
    837837        BX_DEBUG_INT13_FL("floppy f05\n");
    838        
     838
    839839        num_sectors = GET_AL();
    840840        track       = GET_CH();
    841841        head        = GET_DH();
    842842        drive       = GET_ELDL();
    843        
     843
    844844        if ((drive > 1) || (head > 1) || (track > 79) ||
    845845         (num_sectors == 0) || (num_sectors > 18)) {
     
    848848            SET_CF(); // error occurred
    849849        }
    850        
     850
    851851        // see if drive exists
    852852        if (floppy_drive_exists(drive) == 0) {
     
    856856            return;
    857857        }
    858        
     858
    859859        // see if media in drive, and type is known
    860860        if (floppy_media_known(drive) == 0) {
     
    867867            }
    868868        }
    869        
     869
    870870        // set up DMA controller for transfer
    871871        // @todo: merge/factor out pointer normalization
     
    879879        }
    880880        base_count = (num_sectors * 4) - 1;
    881        
     881
    882882        // check for 64K boundary overrun
    883883        last_addr = base_address + base_count;
     
    889889            return;
    890890        }
    891        
     891
    892892        outb(0x000a, 0x06);
    893893        outb(0x000c, 0x00); // clear flip-flop
     
    903903        outb(0x0081, page);
    904904        outb(0x000a, 0x02);
    905        
     905
    906906        // set up floppy controller for transfer
    907907        floppy_prepare_controller(drive);
    908        
     908
    909909        // send format-track command (6 bytes) to controller
    910910        outb(0x03f5, 0x4d); // 4d: format track
     
    918918        // turn on interrupts
    919919        int_enable();
    920        
     920
    921921        // wait on 40:3e bit 7 to become 1
    922922        do {
     
    931931            val8 = (read_byte(0x0040, 0x003e) & 0x80);
    932932        } while ( val8 == 0 );
    933        
     933
    934934        val8 = 0; // separate asm from while() loop
    935935        // turn off interrupts
     
    955955        if ( (val8 & 0xc0) != 0xc0 )
    956956            BX_PANIC("%s: ctrl not ready\n", __func__);
    957        
     957
    958958        // read 7 return status bytes from controller and store in BDA
    959959        for (i = 0; i < 7; ++i) {
     
    961961            write_byte(0x0040, 0x0042 + i, return_status[i]);
    962962        }
    963        
     963
    964964        if ( (return_status[0] & 0xc0) != 0 ) {
    965965            if ( (return_status[1] & 0x02) != 0 ) {
     
    974974            }
    975975        }
    976        
     976
    977977        SET_AH(0);
    978978        set_diskette_ret_status(0);
     
    980980        CLEAR_CF(); // successful
    981981        return;
    982    
    983    
     982
     983
    984984    case 0x08: // read diskette drive parameters
    985985        BX_DEBUG_INT13_FL("floppy f08\n");
    986986        drive = GET_ELDL();
    987        
     987
    988988        if (drive > 1) {
    989989            AX = 0;
     
    997997            return;
    998998        }
    999        
     999
    10001000        // @todo: break out drive type determination
    10011001        drive_type = inb_cmos(0x10);
     
    10051005        if (drive_type & 0x0f)
    10061006            num_floppies++;
    1007        
     1007
    10081008        if (drive == 0)
    10091009            drive_type >>= 4;
    10101010        else
    10111011            drive_type &= 0x0f;
    1012        
     1012
    10131013        SET_BH(0);
    10141014        SET_BL(drive_type);
     
    10171017        SET_DL(num_floppies);
    10181018        SET_DH(1);      // max head #
    1019        
     1019
    10201020        switch (drive_type) {
    10211021        case 0: // none
     
    10231023            SET_DH(0);      // max head #
    10241024            break;
    1025        
     1025
    10261026        case 1: // 360KB, 5.25"
    10271027            CX = 0x2709;    // 40 tracks, 9 sectors
    10281028            break;
    1029        
     1029
    10301030        case 2: // 1.2MB, 5.25"
    10311031            CX = 0x4f0f;    // 80 tracks, 15 sectors
    10321032            break;
    1033        
     1033
    10341034        case 3: // 720KB, 3.5"
    10351035            CX = 0x4f09;    // 80 tracks, 9 sectors
    10361036            break;
    1037        
     1037
    10381038        case 4: // 1.44MB, 3.5"
    10391039            CX = 0x4f12;    // 80 tracks, 18 sectors
    10401040            break;
    1041        
     1041
    10421042        case 5: // 2.88MB, 3.5"
    10431043            CX = 0x4f24;    // 80 tracks, 36 sectors
    10441044            break;
    1045        
     1045
    10461046        case 14: // 15.6 MB 3.5" (fake)
    10471047            CX = 0xfe3f;    // 255 tracks, 63 sectors
     
    10561056            BX_PANIC("%s: bad floppy type\n", __func__);
    10571057        }
    1058        
     1058
    10591059        /* set es & di to point to 11 byte diskette param table in ROM */
    10601060        ES = 0xF000;    // @todo: any way to make this relocatable?
     
    10631063        /* disk status not changed upon success */
    10641064        return;
    1065        
     1065
    10661066    case 0x15: // read diskette drive type
    10671067        BX_DEBUG_INT13_FL("floppy f15\n");
     
    10871087            SET_AH(1); // drive present, does not support change line
    10881088        }
    1089        
     1089
    10901090        return;
    1091    
     1091
    10921092    case 0x16: // get diskette change line status
    10931093        BX_DEBUG_INT13_FL("floppy f16\n");
     
    10991099        return;
    11001100        }
    1101        
     1101
    11021102        SET_AH(0x06); // change line not supported
    11031103        set_diskette_ret_status(0x06);
    11041104        SET_CF();
    11051105        return;
    1106        
     1106
    11071107    case 0x17: // set diskette type for format(old)
    11081108        BX_DEBUG_INT13_FL("floppy f17\n");
     
    11121112        SET_CF();
    11131113        return;
    1114    
     1114
    11151115    case 0x18: // set diskette type for format(new)
    11161116        BX_DEBUG_INT13_FL("floppy f18\n");
     
    11191119        SET_CF();
    11201120        return;
    1121    
     1121
    11221122    default:
    11231123        BX_INFO("%s: unsupported AH=%02x\n", __func__, GET_AH());
    1124    
     1124
    11251125        // if ( (ah==0x20) || ((ah>=0x41) && (ah<=0x49)) || (ah==0x4e) ) {
    11261126        SET_AH(0x01); // ???
     
    11371137{
    11381138    uint8_t  val8;
    1139    
     1139
    11401140    switch ( GET_AH() ) {
    1141    
     1141
    11421142    case 0x01: // Read Diskette Status
    11431143        CLEAR_CF();
     
    11481148        }
    11491149        return;
    1150    
     1150
    11511151    default:
    11521152        SET_CF();
     
    11621162{
    11631163    uint8_t     val8, DOR, ctrl_info;
    1164    
     1164
    11651165    ctrl_info = read_byte(0x0040, 0x008F);
    11661166    if (drive==1)
     
    11881188    if (val8 != 0x80)
    11891189    BX_PANIC("d_f_m: MRQ bit not set\n");
    1190    
     1190
    11911191    // change line
    1192    
     1192
    11931193    // existing BDA values
    1194    
     1194
    11951195    // turn on drive motor
    11961196    outb(0x03f2, DOR); // Digital Output Register
  • trunk/src/VBox/Devices/PC/BIOS/pcibios.c

    r45710 r48947  
    8080 * enabled during execution, and that the routines are re-entrant.
    8181 *
    82  * Implementation notes: 
     82 * Implementation notes:
    8383 * - The PCI BIOS interface already uses certain 32-bit registers even in
    8484 * 16-bit mode. To simplify matters, all 32-bit GPRs are saved/restored and
     
    232232        BX_DEBUG_PCI("PCI: Find class %08lX index %u\n",
    233233                     search_item, index);
    234     } else 
    235         BX_DEBUG_PCI("PCI: Find device %04X:%04X index %u\n", 
     234    } else
     235        BX_DEBUG_PCI("PCI: Find device %04X:%04X index %u\n",
    236236                     (uint16_t)search_item, (uint16_t)(search_item >> 16), index);
    237237
     
    261261
    262262        /* If the header type indicates a bus, we're interested. The secondary
    263          * and subordinate bus numbers will indicate which buses are present; 
    264          * thus we can determine the highest bus number. In the common case, 
     263         * and subordinate bus numbers will indicate which buses are present;
     264         * thus we can determine the highest bus number. In the common case,
    265265         * there will be only the primary bus (i.e. bus 0) and we can avoid
    266266         * looking at the remaining 255 theoretically present buses. This check
     
    317317
    318318    SET_AH(SUCCESSFUL);     /* Assume success. */
    319     CLEAR_CF();             
     319    CLEAR_CF();
    320320
    321321    switch (GET_AL()) {
  • trunk/src/VBox/Devices/PC/BIOS/vds.h

    r42202 r48947  
    3838    } u;
    3939} vds_edds;
    40    
     40
    4141
    4242/* VDS services */
  • trunk/src/VBox/Devices/PC/DevACPI.cpp

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/Devices/PC/DevAPIC.cpp

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/Devices/PC/DevDMA.cpp

    • Property svn:keywords changed from Id to Id Revision
    r48046 r48947  
    454454              *pu32, port, DMAPG2CX(reg)));
    455455        return VINF_SUCCESS;
    456     } 
     456    }
    457457
    458458    if (cb == 2)
     
    482482              u32, port, DMAPG2CX(reg)));
    483483    }
    484     else if (cb == 2) 
     484    else if (cb == 2)
    485485    {
    486486        Assert(!(u32 & ~0xffff)); /* Check for garbage in high bits. */
     
    567567    /* Set the TC (Terminal Count) bit if transfer was completed. */
    568568    if (ch->u16CurCount == ch->u16BaseCount + 1)
    569         switch (opmode) 
     569        switch (opmode)
    570570        {
    571571        case DMODE_DEMAND:
  • trunk/src/VBox/Devices/PC/DevFwCommon.cpp

    r48755 r48947  
    811811        pProcessorInf->u8CoreEnabled       = cCpus;
    812812        pProcessorInf->u8ThreadCount       = 1;
    813         pProcessorInf->u16ProcessorCharacteristics 
     813        pProcessorInf->u16ProcessorCharacteristics
    814814                                           = RT_BIT(2); /* 64-bit capable */
    815815        pProcessorInf->u16ProcessorFamily2 = 0;
  • trunk/src/VBox/Devices/PC/DevHPET.cpp

    r45839 r48947  
    10591059        if (u64Period) {
    10601060            hpetAdjustComparator(pHpetTimer, u64CurTick);
    1061    
     1061
    10621062            u64Diff = hpetComputeDiff(pHpetTimer, u64CurTick);
    1063    
     1063
    10641064            Log4(("HPET: periodic: next in %llu\n", hpetTicksToNs(pThis, u64Diff)));
    10651065            TMTimerSetNano(pTimer, hpetTicksToNs(pThis, u64Diff));
  • trunk/src/VBox/Devices/PC/DevIoApic.cpp

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/Devices/PC/DevPIC.cpp

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/Devices/PC/DevPcArch.cpp

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/Devices/PC/DevPcBios.cpp

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/Devices/PC/DevPit-i8254.cpp

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/Devices/PC/DevRTC.cpp

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/Devices/PC/DrvACPI.cpp

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/Devices/Parallel/DevParallel.cpp

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/Devices/Parallel/DrvHostParallel.cpp

    • Property svn:keywords changed from Id to Id Revision
    r48028 r48947  
    10981098#endif /*IN_RING3*/
    10991099
    1100 
  • trunk/src/VBox/Devices/Storage/DevBusLogic.cpp

    r48192 r48947  
    378378    bool                            fIRQEnabled;
    379379    /** Flag whether the ISA I/O port range is disabled
    380      * to prevent the BIOS to access the device. */ 
     380     * to prevent the BIOS to access the device. */
    381381    bool                            fISAEnabled;    /**< @todo unused, to be removed */
    382382    /** Flag whether 24-bit mailboxes are in use (default is 32-bit). */
     
    10211021static void buslogicClearInterrupt(PBUSLOGIC pBusLogic)
    10221022{
    1023     LogFlowFunc(("pBusLogic=%#p, clearing %#02x (pending %#02x)\n", 
     1023    LogFlowFunc(("pBusLogic=%#p, clearing %#02x (pending %#02x)\n",
    10241024                 pBusLogic, pBusLogic->regInterrupt, pBusLogic->uPendingIntr));
    10251025    pBusLogic->regInterrupt = 0;
     
    11931193    {
    11941194        RTGCPHYS GCPhysAddrCCB = pTaskState->MailboxGuest.u32PhysAddrCCB;
    1195         LogFlowFunc(("Completing CCB %RGp hstat=%u, dstat=%u, outgoing mailbox at %RGp\n", GCPhysAddrCCB, 
     1195        LogFlowFunc(("Completing CCB %RGp hstat=%u, dstat=%u, outgoing mailbox at %RGp\n", GCPhysAddrCCB,
    11961196                     uHostAdapterStatus, uDeviceStatus, GCPhysAddrMailboxIncoming));
    11971197
     
    13491349    PPDMDEVINS pDevIns = pTaskState->CTX_SUFF(pTargetDevice)->CTX_SUFF(pBusLogic)->CTX_SUFF(pDevIns);
    13501350    uint32_t   cbDataCCB;
    1351     uint32_t   u32PhysAddrCCB; 
    1352    
     1351    uint32_t   u32PhysAddrCCB;
     1352
    13531353    /* Extract the data length and physical address from the CCB. */
    13541354    if (pTaskState->fIs24Bit)
     
    15151515#endif
    15161516
    1517     LogFlowFunc(("pTaskState=%#p cbDataCCB=%u direction=%u cbSeg=%u\n", pTaskState, cbDataCCB, 
     1517    LogFlowFunc(("pTaskState=%#p cbDataCCB=%u direction=%u cbSeg=%u\n", pTaskState, cbDataCCB,
    15181518                 pTaskState->CommandControlBlockGuest.c.uDataDirection, pTaskState->DataSeg.cbSeg));
    15191519
     
    16331633
    16341634        /* With 32-bit CCBs, the (optional) sense buffer physical address is provided separately.
    1635          * On the other hand, with 24-bit CCBs, the sense buffer is simply located at the end of 
    1636          * the CCB, right after the variable-length CDB. 
     1635         * On the other hand, with 24-bit CCBs, the sense buffer is simply located at the end of
     1636         * the CCB, right after the variable-length CDB.
    16371637         */
    16381638        if (pTaskState->fIs24Bit)
    1639         {           
     1639        {
    16401640            GCPhysAddrSenseBuffer  = pTaskState->MailboxGuest.u32PhysAddrCCB;
    16411641            GCPhysAddrSenseBuffer += pTaskState->CommandControlBlockGuest.c.cbCDB + RT_OFFSETOF(CCB24, abCDB);
     
    18441844        {
    18451845            /* Some Adaptec AHA-154x drivers (e.g. OS/2) execute this command and expect
    1846              * it to fail. If it succeeds, the drivers refuse to load. However, some newer 
    1847              * Adaptec 154x models supposedly support it too?? 
     1846             * it to fail. If it succeeds, the drivers refuse to load. However, some newer
     1847             * Adaptec 154x models supposedly support it too??
    18481848             */
    18491849
     
    19051905            /* The area for incoming mailboxes is right after the last entry of outgoing mailboxes. */
    19061906            pBusLogic->GCPhysAddrMailboxIncomingBase = pBusLogic->GCPhysAddrMailboxOutgoingBase + (pBusLogic->cMailbox * sizeof(Mailbox24));
    1907    
     1907
    19081908            Log(("GCPhysAddrMailboxOutgoingBase=%RGp\n", pBusLogic->GCPhysAddrMailboxOutgoingBase));
    19091909            Log(("GCPhysAddrMailboxIncomingBase=%RGp\n", pBusLogic->GCPhysAddrMailboxIncomingBase));
    19101910            Log(("cMailboxes=%u (24-bit mode)\n", pBusLogic->cMailbox));
    19111911            LogRel(("Initialized 24-bit mailbox, %d entries at %08x\n", pRequest->cMailbox, ADDR_TO_U32(pRequest->aMailboxBaseAddr)));
    1912    
     1912
    19131913            pBusLogic->regStatus &= ~BUSLOGIC_REGISTER_STATUS_INITIALIZATION_REQUIRED;
    19141914            pBusLogic->cbReplyParametersLeft = 0;
     
    22972297                    case BUSLOGICCOMMAND_WRITE_BUSMASTER_CHIP_FIFO:
    22982298                        pBusLogic->cbCommandParametersLeft = 3;
    2299                         break; 
     2299                        break;
    23002300                    case BUSLOGICCOMMAND_INITIALIZE_MAILBOX:
    23012301                        pBusLogic->cbCommandParametersLeft = sizeof(RequestInitMbx);
     
    23262326#ifndef IN_RING3
    23272327                /* This command must be executed in R3 as it rehooks the ISA I/O port. */
    2328                 if (pBusLogic->uOperationCode == BUSLOGICCOMMAND_MODIFY_IO_ADDRESS) 
     2328                if (pBusLogic->uOperationCode == BUSLOGICCOMMAND_MODIFY_IO_ADDRESS)
    23292329                {
    23302330                    rc = VINF_IOM_R3_IOPORT_WRITE;
     
    26302630    {
    26312631        /* Unregister the old range, if any. */
    2632         if (pBusLogic->IOISABase) 
     2632        if (pBusLogic->IOISABase)
    26332633            rc = PDMDevHlpIOPortDeregister(pBusLogic->CTX_SUFF(pDevIns), pBusLogic->IOISABase, 4);
    26342634
    2635         if (RT_SUCCESS(rc)) 
     2635        if (RT_SUCCESS(rc))
    26362636        {
    26372637            pBusLogic->IOISABase = 0;   /* First mark as unregistered. */
     
    29932993/**
    29942994 * Read a mailbox from guest memory. Convert 24-bit mailboxes to
    2995  * 32-bit format. 
     2995 * 32-bit format.
    29962996 *
    29972997 * @returns Mailbox guest physical address.
     
    34853485    if (pszArgs)
    34863486        fVerbose = strstr(pszArgs, "verbose") != NULL;
    3487    
     3487
    34883488    /* Show basic information. */
    34893489    pHlp->pfnPrintf(pHlp,
     
    35113511        pHlp->pfnPrintf(pHlp, "Current command: %02X\n", pThis->uOperationCode);
    35123512
    3513     if (fVerbose && (pThis->regStatus & BUSLOGIC_REGISTER_STATUS_INITIALIZATION_REQUIRED) == 0) 
     3513    if (fVerbose && (pThis->regStatus & BUSLOGIC_REGISTER_STATUS_INITIALIZATION_REQUIRED) == 0)
    35143514    {
    35153515        RTGCPHYS    GCMailbox;
     
    35643564            {
    35653565                PDMDevHlpPhysRead(pThis->CTX_SUFF(pDevIns), GCMailbox, &Mbx32, sizeof(Mailbox32));
    3566                 pHlp->pfnPrintf(pHlp, "  slot %03d: CCB at %08X completion code %02X BTSTAT %02X SDSTAT %02X", i, 
     3566                pHlp->pfnPrintf(pHlp, "  slot %03d: CCB at %08X completion code %02X BTSTAT %02X SDSTAT %02X", i,
    35673567                                Mbx32.u32PhysAddrCCB, Mbx32.u.in.uCompletionCode, Mbx32.u.in.uHostAdapterStatus, Mbx32.u.in.uTargetDeviceStatus);
    35683568                pHlp->pfnPrintf(pHlp, "%s\n", pThis->uMailboxOutgoingPositionCurrent == i ? " *" : "");
  • trunk/src/VBox/Devices/Storage/DrvHostFloppy.cpp

    r45062 r48947  
    9292        dwLastError = GetLastError();
    9393        rc = RTErrConvertFromWin32(dwLastError);
    94         Log(("DrvHostFloppy: IOCTL_DISK_GET_DRIVE_GEOMETRY(%s) failed, LastError=%d rc=%Rrc\n", 
     94        Log(("DrvHostFloppy: IOCTL_DISK_GET_DRIVE_GEOMETRY(%s) failed, LastError=%d rc=%Rrc\n",
    9595             pThis->pszDevice, dwLastError, rc));
    9696        return rc;
  • trunk/src/VBox/Devices/Storage/DrvSCSI.cpp

    r47829 r48947  
    694694
    695695/**
    696  * Called when media is unmounted 
    697  * 
     696 * Called when media is unmounted
     697 *
    698698 * @param   pInterface      Pointer to the interface structure containing the called function pointer.
    699699 */
     
    961961    PDMBLOCKTYPE enmType = pThis->pDrvBlock->pfnGetType(pThis->pDrvBlock);
    962962    VSCSILUNTYPE enmLunType;
    963     switch (enmType) 
     963    switch (enmType)
    964964    {
    965965    case PDMBLOCKTYPE_HARD_DISK:
  • trunk/src/VBox/Devices/Storage/DrvVD.cpp

    r48872 r48947  
    623623
    624624/**
    625  * vvl: this structure duplicate meaning of sockaddr, 
     625 * vvl: this structure duplicate meaning of sockaddr,
    626626 * perhaps it'd be better to get rid of it.
    627627 */
     
    681681    int iInetFamily = PF_INET;
    682682    struct in_addr ip;
    683 #ifdef VBOX_WITH_NEW_LWIP 
     683#ifdef VBOX_WITH_NEW_LWIP
    684684    ip6_addr_t ip6;
    685685#endif
    686    
     686
    687687    /* Check whether lwIP is set up in this VM instance. */
    688688    if (!DevINIPConfigured())
     
    696696    if (inet6_aton(pszAddress, &ip6))
    697697        iInetFamily = PF_INET6;
    698     else /* concatination with if */ 
    699 #endif   
     698    else /* concatination with if */
     699#endif
    700700      if (!lwip_inet_aton(pszAddress, &ip))
    701701    {
  • trunk/src/VBox/Devices/Storage/UsbMsd.cpp

    r44528 r48947  
    5555
    5656/**
    57  * USB MSD Command Block Wrapper or CBW. The command block 
     57 * USB MSD Command Block Wrapper or CBW. The command block
    5858 * itself (CBWCB) contains protocol-specific data (here SCSI).
    5959 */
  • trunk/src/VBox/Devices/Storage/VSCSI/VSCSILun.cpp

    r44528 r48947  
    120120 *
    121121 * @returns VBox status code.
    122  * @param   hVScsiLun               The virtual SCSI LUN 
     122 * @param   hVScsiLun               The virtual SCSI LUN
    123123 *                                  mounting the medium.
    124124 */
     
    142142 *
    143143 * @returns VBox status code.
    144  * @param   hVScsiLun               The virtual SCSI LUN 
     144 * @param   hVScsiLun               The virtual SCSI LUN
    145145 *                                  mounting the medium.
    146146 */
  • trunk/src/VBox/Devices/Storage/VSCSI/VSCSILunMmc.cpp

    r46597 r48947  
    186186    unsigned        uCmd = pVScsiReq->pbCDB[0];
    187187
    188     /* 
     188    /*
    189189     * GET CONFIGURATION, GET EVENT/STATUS NOTIFICATION, INQUIRY, and REQUEST SENSE commands
    190190     * operate even when a unit attention condition exists for initiator; every other command
     
    194194    {
    195195        /*
    196          * A note on media changes: As long as a medium is not present, the unit remains in 
    197          * the 'not ready' state. Technically the unit becomes 'ready' soon after a medium 
    198          * is inserted; however, we internally keep the 'not ready' state until we've had 
     196         * A note on media changes: As long as a medium is not present, the unit remains in
     197         * the 'not ready' state. Technically the unit becomes 'ready' soon after a medium
     198         * is inserted; however, we internally keep the 'not ready' state until we've had
    199199         * a chance to report the UNIT ATTENTION status indicating a media change.
    200200         */
     
    205205            pVScsiLunMmc->Core.fReady = true;
    206206        }
    207         else 
     207        else
    208208            rcReq = vscsiLunReqSenseErrorSet(pVScsiLun, pVScsiReq, SCSI_SENSE_NOT_READY,
    209209                                             SCSI_ASC_MEDIUM_NOT_PRESENT, 0x00);
     
    431431            cbMax  = vscsiBE2HU16(&pVScsiReq->pbCDB[7]);
    432432            fMSF   = (pVScsiReq->pbCDB[1] >> 1) & 1;
    433             switch (format) 
     433            switch (format)
    434434            {
    435435                case 0x00:
     
    461461            vscsiDeviceReqComplete(pVScsiLun->pVScsiDevice, pVScsiReq, rcReq, false, VINF_SUCCESS);
    462462        }
    463         else if (!cSectorTransfer) 
     463        else if (!cSectorTransfer)
    464464        {
    465465            /* A 0 transfer length is not an error. */
  • trunk/src/VBox/Devices/USB/DevOHCI.cpp

    r45671 r48947  
    35963596            unsigned k = 0;
    35973597            if (  !(Ed.hwinfo & ED_HWINFO_SKIP)
    3598                 && (TdAddr != TailP)) 
     3598                && (TdAddr != TailP))
    35993599            {
    36003600                do
  • trunk/src/VBox/Devices/USB/VUSBDevice.cpp

    r46806 r48947  
    11041104                                 pUrb->pszDesc, pUrb->enmState, pDev, pDev->pUsbIns->pszName));
    11051105                vusbUrbUnlink(pUrb);
    1106                 /* Unlink isn't enough, because boundary timer and detaching will try to reap it. 
    1107                  * It was tested with MSD & iphone attachment to vSMP guest, if 
     1106                /* Unlink isn't enough, because boundary timer and detaching will try to reap it.
     1107                 * It was tested with MSD & iphone attachment to vSMP guest, if
    11081108                 * it breaks anything, please add comment here, why we should unlink only.
    11091109                 */
  • trunk/src/VBox/Devices/USB/darwin/USBProxyDevice-darwin.cpp

    r46046 r48947  
    218218     * (i.e. the default control pipe stuff). */
    219219    CFRunLoopSourceRef      RunLoopSrcRef;
    220     /** we want to add and remove RunLoopSourceRefs to run loop's of 
     220    /** we want to add and remove RunLoopSourceRefs to run loop's of
    221221     * every EMT thread participated in USB processing. */
    222222    RTLISTANCHOR        HeadOfRunLoopLst;
     
    284284 * Adds Source ref to current run loop and adds it the list of runloops.
    285285 */
    286 static int usbProxyDarwinAddRunLoopRef(PRTLISTANCHOR pListHead, 
     286static int usbProxyDarwinAddRunLoopRef(PRTLISTANCHOR pListHead,
    287287                                       CFRunLoopSourceRef SourceRef)
    288288{
     
    308308
    309309    RTListAppend((PRTLISTNODE)pListHead, &pListNode->List);
    310      
     310
    311311    return VINF_SUCCESS;
    312312}
     
    315315/*
    316316 * Removes all source reference from mode of run loop's we've registered them.
    317  * 
    318  */
    319 static int usbProxyDarwinRemoveSourceRefFromAllRunLoops(PRTLISTANCHOR pHead, 
     317 *
     318 */
     319static int usbProxyDarwinRemoveSourceRefFromAllRunLoops(PRTLISTANCHOR pHead,
    320320                                                        CFRunLoopSourceRef SourceRef)
    321321{
    322322    AssertPtrReturn(pHead, VERR_INVALID_PARAMETER);
    323    
    324     while (!RTListIsEmpty(pHead)) 
     323
     324    while (!RTListIsEmpty(pHead))
    325325    {
    326326        PRUNLOOPREFLIST pNode = RTListGetFirst(pHead, RUNLOOPREFLIST, List);
    327327        /* XXX: Should Release Reference? */
    328328        Assert(CFGetRetainCount(pNode->RunLoopRef));
    329        
     329
    330330        CFRunLoopRemoveSource(pNode->RunLoopRef, SourceRef, g_pRunLoopMode);
    331331        CFRelease(SourceRef);
     
    335335
    336336        RTMemFree(pNode);
    337     } 
     337    }
    338338
    339339    return VINF_SUCCESS;
     
    896896                                    {
    897897                                        RTListInit((PRTLISTNODE)&pIf->HeadOfRunLoopLst);
    898                                         usbProxyDarwinAddRunLoopRef(&pIf->HeadOfRunLoopLst, 
     898                                        usbProxyDarwinAddRunLoopRef(&pIf->HeadOfRunLoopLst,
    899899                                                                    pIf->RunLoopSrcRef);
    900900
  • trunk/src/VBox/Devices/build/VBoxDD.cpp

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/Devices/build/VBoxDD2.cpp

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/Devices/testcase/tstDeviceStructSize.cpp

    • Property svn:keywords changed from Id to Id Revision
  • trunk/src/VBox/Devices/testcase/tstDeviceStructSizeRC.cpp

    • Property svn:keywords changed from Id to Id Revision
Note: See TracChangeset for help on using the changeset viewer.

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