VirtualBox

儲存庫 vbox 的更動 12477


忽略:
時間撮記:
2008-9-15 下午07:30:29 (16 年 以前)
作者:
vboxsync
訊息:

BIOS: add SCSI driver which is not finished yet and disabled

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/PC/BIOS/rombios.c

    r12468 r12477  
    219219#endif
    220220
     221#if defined(VBOX) && (defined(VBOX_WITH_BUSLOGIC) || defined(VBOX_WITH_LSILOGIC))
     222#    define BX_MAX_SCSI_DEVICES 16
     223#endif
     224
    221225#ifndef VBOX
    222226#define PANIC_PORT  0x400
     
    694698
    695699  typedef struct {
    696     Bit8u  type;         // Detected type of ata (ata/atapi/none/unknown)
     700    Bit8u  type;         // Detected type of ata (ata/atapi/none/unknown/scsi)
    697701    Bit8u  device;       // Detected type of attached devices (hd/cd/none)
    698702    Bit8u  removable;    // Removable device flag
     
    749753#endif // BX_ELTORITO_BOOT
    750754
     755#ifdef VBOX
     756# if defined(VBOX_WITH_BUSLOGIC) || defined(VBOX_WITH_LSILOGIC)
     757  typedef struct {
     758    // I/O port this device is attached to.
     759    Bit16u        io_base;
     760    // Target Id.
     761    Bit8u         target_id;
     762    // SCSI devices info
     763    ata_device_t  device_info;
     764    } scsi_device_t;
     765
     766  typedef struct {
     767    // SCSi device info
     768    scsi_device_t   devices[BX_MAX_SCSI_DEVICES];
     769    // map between (bios hd id - 0x80) and scsi devices
     770    Bit8u  hdcount, hdidmap[BX_MAX_SCSI_DEVICES];
     771    } scsi_t;
     772# endif
     773#endif
     774
    751775  // for access to EBDA area
    752776  //     The EBDA structure should conform to
     
    770794#endif // BX_ELTORITO_BOOT
    771795#ifdef VBOX
     796# if defined(VBOX_WITH_BUSLOGIC) || defined(VBOX_WITH_LSILOGIC)
     797    // SCSI Driver data
     798    //scsi_t scsi;
     799# endif
     800
    772801    unsigned char uForceBootDrive;
    773802    unsigned char uForceBootDevice;
     
    21102139}
    21112140
     2141#if VBOX
     2142# if VBOX_WITH_BUSLOGIC || VBOX_WITH_LSILOGIC
     2143#  include "scsi.c"
     2144# endif
     2145#endif
     2146
    21122147#if BX_USE_ATADRV
    21132148
     
    22362271#define ATA_TYPE_ATA      0x02
    22372272#define ATA_TYPE_ATAPI    0x03
     2273#define ATA_TYPE_SCSI     0x04 // SCSI disk
    22382274
    22392275#define ATA_DEVICE_NONE  0x00
     
    1100711043#endif
    1100811044
     11045#if defined(VBOX) && (defined(VBOX_WITH_BUSLOGIC) || defined(VBX_WITH_LSILOGIC))
     11046  ;;
     11047  ;; SCSI driver setup
     11048  ;;
     11049  call _scsi_init
     11050  ;;
     11051#endif
     11052
    1100911053  call _print_bios_banner
    1101011054
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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