VirtualBox

Changeset 26495 in vbox for trunk/src/VBox/Devices/Graphics


Ignore:
Timestamp:
Feb 14, 2010 7:59:48 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57665
Message:

Devices: whitespace cleanup

Location:
trunk/src/VBox/Devices/Graphics/BIOS
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/BIOS/clext.c

    r11982 r26495  
    1717//  License along with this library; if not, write to the Free Software
    1818//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
    19 // 
     19//
    2020
    2121
  • trunk/src/VBox/Devices/Graphics/BIOS/tests/testbios.c

    r1 r26495  
    1 /* 
     1/*
    22   This is a little turbo C program that executes
    33   several int10, and let you inspect the content
     
    169169 printf("Writing from %04x:%04x\n",regs->r_es,regs->r_bp);
    170170 intr(0x10,regs);
    171  
     171
    172172}
    173173
     
    203203 printf("r. switch to 50 lines\n");
    204204 c=getche();
    205  
     205
    206206 switch(c)
    207207  {case 'a':
     
    253253 while(kbhit()==0);
    254254 c=getch();
    255  
     255
    256256 return 0;
    257257}
     
    340340
    341341 directvideo=0;
    342  
     342
    343343 while(1)
    344344  {
  • trunk/src/VBox/Devices/Graphics/BIOS/vbe.h

    r7759 r26495  
    2020// The official VBE Information Block
    2121typedef struct VbeInfoBlock
    22 { 
     22{
    2323   Bit8u  VbeSignature[4];
    2424   Bit16u VbeVersion;
     
    9494   Bit8u  LinRsvdFieldPosition;
    9595   Bit32u MaxPixelClock;
    96 //   Bit8u  Reserved[189]; // DO NOT PUT THIS IN HERE because of Compact Mode Info storage in bios 
     96//   Bit8u  Reserved[189]; // DO NOT PUT THIS IN HERE because of Compact Mode Info storage in bios
    9797} ModeInfoBlockCompact;
    9898
     
    277277  #define VBE_DISPI_BANK_ADDRESS          0xA0000
    278278  #define VBE_DISPI_BANK_SIZE_KB          64
    279  
     279
    280280  #define VBE_DISPI_MAX_XRES              1024
    281281  #define VBE_DISPI_MAX_YRES              768
    282  
     282
    283283  #define VBE_DISPI_IOPORT_INDEX          0x01CE
    284284  #define VBE_DISPI_IOPORT_DATA           0x01CF
    285  
     285
    286286  #define VBE_DISPI_INDEX_ID              0x0
    287287  #define VBE_DISPI_INDEX_XRES            0x1
     
    294294  #define VBE_DISPI_INDEX_X_OFFSET        0x8
    295295  #define VBE_DISPI_INDEX_Y_OFFSET        0x9
    296      
     296
    297297  #define VBE_DISPI_ID0                   0xB0C0
    298298  #define VBE_DISPI_ID1                   0xB0C1
     
    307307  #define VBE_DISPI_LFB_ENABLED           0x40
    308308  #define VBE_DISPI_NOCLEARMEM            0x80
    309  
     309
    310310  #define VBE_DISPI_LFB_PHYSICAL_ADDRESS  0xE0000000
    311311
     
    325325   * @remark duplicated in DevVGA.h. */
    326326  #define VBEHEADER_MAGIC      0x77CC
    327  
     327
    328328  /** The extra port which is used to read the mode list.
    329329   * @remark duplicated in DevVGA.h. */
  • trunk/src/VBox/Devices/Graphics/BIOS/vbetables-gen.c

    r6061 r26495  
    8080    pages = vram_size / (pm->height * pitch);
    8181    if (pages > 0) {
    82       printf("{ 0x%04x, /* %dx%dx%d */\n", 
     82      printf("{ 0x%04x, /* %dx%dx%d */\n",
    8383             pm->mode, pm->width, pm->height, pm->depth);
    8484      if (pm->depth == 4)
    85         printf("{ /*Bit16u ModeAttributes*/ %s,\n", 
     85        printf("{ /*Bit16u ModeAttributes*/ %s,\n",
    8686               "VBE_MODE_ATTRIBUTE_SUPPORTED | "
    8787               "VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE | "
     
    9090               "VBE_MODE_ATTRIBUTE_GRAPHICS_MODE");
    9191      else
    92         printf("{ /*Bit16u ModeAttributes*/ %s,\n", 
     92        printf("{ /*Bit16u ModeAttributes*/ %s,\n",
    9393               "VBE_MODE_ATTRIBUTE_SUPPORTED | "
    9494               "VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE | "
     
    196196      }
    197197
    198       printf("/*Bit8u  RedMaskSize*/ %d,\n", r_size);               
    199       printf("/*Bit8u  RedFieldPosition*/ %d,\n", r_pos);         
    200       printf("/*Bit8u  GreenMaskSize*/ %d,\n", g_size);             
    201       printf("/*Bit8u  GreenFieldPosition*/ %d,\n", g_pos);       
    202       printf("/*Bit8u  BlueMaskSize*/ %d,\n", b_size);             
    203       printf("/*Bit8u  BlueFieldPosition*/ %d,\n", b_pos);         
    204       printf("/*Bit8u  RsvdMaskSize*/ %d,\n", a_size);             
    205       printf("/*Bit8u  RsvdFieldPosition*/ %d,\n", a_pos);         
     198      printf("/*Bit8u  RedMaskSize*/ %d,\n", r_size);
     199      printf("/*Bit8u  RedFieldPosition*/ %d,\n", r_pos);
     200      printf("/*Bit8u  GreenMaskSize*/ %d,\n", g_size);
     201      printf("/*Bit8u  GreenFieldPosition*/ %d,\n", g_pos);
     202      printf("/*Bit8u  BlueMaskSize*/ %d,\n", b_size);
     203      printf("/*Bit8u  BlueFieldPosition*/ %d,\n", b_pos);
     204      printf("/*Bit8u  RsvdMaskSize*/ %d,\n", a_size);
     205      printf("/*Bit8u  RsvdFieldPosition*/ %d,\n", a_pos);
    206206      if (pm->depth == 32)
    207207        printf("/*Bit8u  DirectColorModeInfo*/ %s,\n",
  • trunk/src/VBox/Devices/Graphics/BIOS/vgafonts.h

    r21131 r26495  
    33 * The package is (c) by Joseph Gil
    44 * The individual fonts are public domain
    5  */ 
     5 */
    66static Bit8u vgafont8[256*8]=
    77{
  • trunk/src/VBox/Devices/Graphics/BIOS/vgatables.h

    r5450 r26495  
    11/*
    22 *
    3  * BIOS Memory 
     3 * BIOS Memory
    44 *
    55 */
     
    127127/* convert index in vga_modes[] to index in video_param_table[] */
    128128static Bit8u line_to_vpti[MODE_MAX+1]={
    129     0x17, 0x17, 0x18, 0x18, 0x04, 0x05, 0x06, 0x07, 
     129    0x17, 0x17, 0x18, 0x18, 0x04, 0x05, 0x06, 0x07,
    130130    0x0d, 0x0e, 0x11, 0x12, 0x1a, 0x1b, 0x1c, 0x1d,
    131131};
     
    539539  0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a,
    540540  0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a,
    541   0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f 
     541  0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f
    542542};
    543543
     
    551551  0x00,0x00,0x00, 0x00,0x00,0x2a, 0x00,0x2a,0x00, 0x00,0x2a,0x2a, 0x2a,0x00,0x00, 0x2a,0x00,0x2a, 0x2a,0x15,0x00, 0x2a,0x2a,0x2a,
    552552  0x15,0x15,0x15, 0x15,0x15,0x3f, 0x15,0x3f,0x15, 0x15,0x3f,0x3f, 0x3f,0x15,0x15, 0x3f,0x15,0x3f, 0x3f,0x3f,0x15, 0x3f,0x3f,0x3f,
    553   0x15,0x15,0x15, 0x15,0x15,0x3f, 0x15,0x3f,0x15, 0x15,0x3f,0x3f, 0x3f,0x15,0x15, 0x3f,0x15,0x3f, 0x3f,0x3f,0x15, 0x3f,0x3f,0x3f 
     553  0x15,0x15,0x15, 0x15,0x15,0x3f, 0x15,0x3f,0x15, 0x15,0x3f,0x3f, 0x3f,0x15,0x15, 0x3f,0x15,0x3f, 0x3f,0x3f,0x15, 0x3f,0x3f,0x3f
    554554};
    555555
     
    563563  0x15,0x00,0x15, 0x15,0x00,0x3f, 0x15,0x2a,0x15, 0x15,0x2a,0x3f, 0x3f,0x00,0x15, 0x3f,0x00,0x3f, 0x3f,0x2a,0x15, 0x3f,0x2a,0x3f,
    564564  0x15,0x15,0x00, 0x15,0x15,0x2a, 0x15,0x3f,0x00, 0x15,0x3f,0x2a, 0x3f,0x15,0x00, 0x3f,0x15,0x2a, 0x3f,0x3f,0x00, 0x3f,0x3f,0x2a,
    565   0x15,0x15,0x15, 0x15,0x15,0x3f, 0x15,0x3f,0x15, 0x15,0x3f,0x3f, 0x3f,0x15,0x15, 0x3f,0x15,0x3f, 0x3f,0x3f,0x15, 0x3f,0x3f,0x3f 
     565  0x15,0x15,0x15, 0x15,0x15,0x3f, 0x15,0x3f,0x15, 0x15,0x3f,0x3f, 0x3f,0x15,0x15, 0x3f,0x15,0x3f, 0x3f,0x3f,0x15, 0x3f,0x3f,0x3f
    566566};
    567567
Note: See TracChangeset for help on using the changeset viewer.

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