VirtualBox

Changeset 32658 in vbox


Ignore:
Timestamp:
Sep 21, 2010 10:14:58 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66070
Message:

Main: some defaults for the COM ports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/SerialPortImpl.cpp

    r28800 r32658  
    661661    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    662662
     663    /* Set some more defaults */
     664    switch (m->bd->ulSlot)
     665    {
     666        case 1:
     667        {
     668            m->bd->ulIOBase = 0x2F8;
     669            m->bd->ulIRQ = 3;
     670            break;
     671        }
     672        case 2:
     673        {
     674            m->bd->ulIOBase = 0x3e8;
     675            m->bd->ulIRQ = 4;
     676            break;
     677        }
     678        case 3:
     679        {
     680            m->bd->ulIOBase = 0x2e8;
     681            m->bd->ulIRQ = 3;
     682            break;
     683        }
     684        default: break;
     685    }
     686
    663687    uint32_t numSerialEnabled = aOsType->numSerialEnabled();
    664688
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