Changeset 12477 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Sep 15, 2008 7:30:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/rombios.c
r12468 r12477 219 219 #endif 220 220 221 #if defined(VBOX) && (defined(VBOX_WITH_BUSLOGIC) || defined(VBOX_WITH_LSILOGIC)) 222 # define BX_MAX_SCSI_DEVICES 16 223 #endif 224 221 225 #ifndef VBOX 222 226 #define PANIC_PORT 0x400 … … 694 698 695 699 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) 697 701 Bit8u device; // Detected type of attached devices (hd/cd/none) 698 702 Bit8u removable; // Removable device flag … … 749 753 #endif // BX_ELTORITO_BOOT 750 754 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 751 775 // for access to EBDA area 752 776 // The EBDA structure should conform to … … 770 794 #endif // BX_ELTORITO_BOOT 771 795 #ifdef VBOX 796 # if defined(VBOX_WITH_BUSLOGIC) || defined(VBOX_WITH_LSILOGIC) 797 // SCSI Driver data 798 //scsi_t scsi; 799 # endif 800 772 801 unsigned char uForceBootDrive; 773 802 unsigned char uForceBootDevice; … … 2110 2139 } 2111 2140 2141 #if VBOX 2142 # if VBOX_WITH_BUSLOGIC || VBOX_WITH_LSILOGIC 2143 # include "scsi.c" 2144 # endif 2145 #endif 2146 2112 2147 #if BX_USE_ATADRV 2113 2148 … … 2236 2271 #define ATA_TYPE_ATA 0x02 2237 2272 #define ATA_TYPE_ATAPI 0x03 2273 #define ATA_TYPE_SCSI 0x04 // SCSI disk 2238 2274 2239 2275 #define ATA_DEVICE_NONE 0x00 … … 11007 11043 #endif 11008 11044 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 11009 11053 call _print_bios_banner 11010 11054
Note:
See TracChangeset
for help on using the changeset viewer.