- 時間撮記:
- 2014-2-25 下午04:14:37 (11 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r50556 r50585 10 10 11 11 /* 12 * Copyright (C) 2006-201 3Oracle Corporation12 * Copyright (C) 2006-2014 Oracle Corporation 13 13 * 14 14 * This file is part of VirtualBox Open Source Edition (OSE), as … … 1292 1292 PCFGMNODE pBiosCfg = NULL; /* /Devices/pcbios/0/Config/ */ 1293 1293 PCFGMNODE pNetBootCfg = NULL; /* /Devices/pcbios/0/Config/NetBoot/ */ 1294 bool fHaveBiosScsiConfig = false;1295 1294 1296 1295 InsertConfigNode(pRoot, "Devices", &pDevices); … … 1956 1955 InsertConfigInteger(pCfg, "Bootable", fBootable); 1957 1956 1958 /* BIOS configuration values, first controller only. */ 1959 if (!pBusMgr->hasPCIDevice("lsilogicscsi", 1) && pBiosCfg) 1957 /* BIOS configuration values, first SCSI controller only. */ 1958 if ( !pBusMgr->hasPCIDevice("lsilogic", 1) 1959 && !pBusMgr->hasPCIDevice("buslogic", 0) 1960 && !pBusMgr->hasPCIDevice("lsilogicsas", 0) 1961 && pBiosCfg) 1960 1962 { 1961 if (!fHaveBiosScsiConfig) 1962 { 1963 fHaveBiosScsiConfig = true; 1964 InsertConfigString(pBiosCfg, "ScsiHardDiskDevice", "lsilogicscsi"); 1965 1966 hrc = SetBiosDiskInfo(pMachine, pCfg, pBiosCfg, controllerName, apszBiosConfigScsi); H(); 1967 } 1963 InsertConfigString(pBiosCfg, "ScsiHardDiskDevice", "lsilogicscsi"); 1964 hrc = SetBiosDiskInfo(pMachine, pCfg, pBiosCfg, controllerName, apszBiosConfigScsi); H(); 1968 1965 } 1969 1966 … … 1982 1979 InsertConfigInteger(pCfg, "Bootable", fBootable); 1983 1980 1984 /* BIOS configuration values, first controller only. */ 1985 if (!pBusMgr->hasPCIDevice("buslogic", 1) && pBiosCfg) 1981 /* BIOS configuration values, first SCSI controller only. */ 1982 if ( !pBusMgr->hasPCIDevice("lsilogic", 0) 1983 && !pBusMgr->hasPCIDevice("buslogic", 1) 1984 && !pBusMgr->hasPCIDevice("lsilogicsas", 0) 1985 && pBiosCfg) 1986 1986 { 1987 if (!fHaveBiosScsiConfig) 1988 { 1989 fHaveBiosScsiConfig = true; 1990 InsertConfigString(pBiosCfg, "ScsiHardDiskDevice", "buslogic"); 1991 1992 hrc = SetBiosDiskInfo(pMachine, pCfg, pBiosCfg, controllerName, apszBiosConfigScsi); H(); 1993 } 1987 InsertConfigString(pBiosCfg, "ScsiHardDiskDevice", "buslogic"); 1988 hrc = SetBiosDiskInfo(pMachine, pCfg, pBiosCfg, controllerName, apszBiosConfigScsi); H(); 1994 1989 } 1995 1990 … … 2011 2006 InsertConfigInteger(pCfg, "Bootable", fBootable); 2012 2007 2013 /* Needed configuration values for the bios, only first controller. */ 2014 if (!pBusMgr->hasPCIDevice("ahci", 1)) 2008 /* BIOS configuration values, first AHCI controller only. */ 2009 if ( !pBusMgr->hasPCIDevice("ahci", 1) 2010 && pBiosCfg) 2015 2011 { 2016 if (pBiosCfg) 2017 { 2018 InsertConfigString(pBiosCfg, "SataHardDiskDevice", "ahci"); 2019 } 2020 2012 InsertConfigString(pBiosCfg, "SataHardDiskDevice", "ahci"); 2021 2013 hrc = SetBiosDiskInfo(pMachine, pCfg, pBiosCfg, controllerName, apszBiosConfigSata); H(); 2022 2014 } … … 2078 2070 InsertConfigInteger(pCfg, "Bootable", fBootable); 2079 2071 2080 /* BIOS configuration values, first controller only. */ 2081 if (!pBusMgr->hasPCIDevice("lsilogicsas", 1) && pBiosCfg) 2072 /* BIOS configuration values, first SCSI controller only. */ 2073 if ( !pBusMgr->hasPCIDevice("lsilogic", 0) 2074 && !pBusMgr->hasPCIDevice("buslogic", 0) 2075 && !pBusMgr->hasPCIDevice("lsilogicsas", 1) 2076 && pBiosCfg) 2082 2077 { 2083 if (!fHaveBiosScsiConfig) 2084 { 2085 fHaveBiosScsiConfig = true; 2086 InsertConfigString(pBiosCfg, "ScsiHardDiskDevice", "lsilogicsas"); 2087 2088 hrc = SetBiosDiskInfo(pMachine, pCfg, pBiosCfg, controllerName, apszBiosConfigScsi); H(); 2089 } 2078 InsertConfigString(pBiosCfg, "ScsiHardDiskDevice", "lsilogicsas"); 2079 hrc = SetBiosDiskInfo(pMachine, pCfg, pBiosCfg, controllerName, apszBiosConfigScsi); H(); 2090 2080 } 2091 2081
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器