Darn git.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# Authors: David Hrdlička, <hrdlickadavid@outlook.com>
|
||||
#
|
||||
# Copyright 2020,2021 David Hrdlička.
|
||||
# Copyright 2020-2021 David Hrdlička.
|
||||
#
|
||||
|
||||
add_library(scsi OBJECT scsi.c scsi_device.c scsi_cdrom.c scsi_disk.c
|
||||
|
||||
@@ -641,8 +641,8 @@ aha_pnp_config_changed(uint8_t ld, isapnp_device_config_t *config, void *priv)
|
||||
* their way of handling issues like these at the time..
|
||||
*
|
||||
* Patch 1: emulate the I/O ADDR SW setting by patching a
|
||||
* byte in the BIOS that indicates the I/O ADDR
|
||||
* switch setting on the board.
|
||||
* byte in the BIOS that indicates the I/O ADDR
|
||||
* switch setting on the board.
|
||||
*/
|
||||
if (dev->rom_ioaddr != 0x0000) {
|
||||
/* Look up the I/O address in the table. */
|
||||
@@ -789,8 +789,8 @@ aha_setbios(x54x_t *dev)
|
||||
* their way of handling issues like these at the time..
|
||||
*
|
||||
* Patch 1: emulate the I/O ADDR SW setting by patching a
|
||||
* byte in the BIOS that indicates the I/O ADDR
|
||||
* switch setting on the board.
|
||||
* byte in the BIOS that indicates the I/O ADDR
|
||||
* switch setting on the board.
|
||||
*/
|
||||
if (dev->rom_ioaddr != 0x0000) {
|
||||
/* Look up the I/O address in the table. */
|
||||
@@ -880,11 +880,11 @@ aha_initnvr(x54x_t *dev)
|
||||
dev->nvr[0] |= EE0_ALTFLOP;
|
||||
dev->nvr[1] = dev->Irq - 9; /* IRQ15 */
|
||||
dev->nvr[1] |= (dev->DmaChannel << 4); /* DMA6 */
|
||||
dev->nvr[2] = (EE2_HABIOS | /* BIOS enabled */
|
||||
EE2_DYNSCAN | /* scan bus */
|
||||
EE2_EXT1G | EE2_RMVOK); /* Imm return on seek */
|
||||
dev->nvr[3] = SPEED_50; /* speed 5.0 MB/s */
|
||||
dev->nvr[6] = (EE6_TERM | /* host term enable */
|
||||
dev->nvr[2] = (EE2_HABIOS | /* BIOS enabled */
|
||||
EE2_DYNSCAN | /* scan bus */
|
||||
EE2_EXT1G | EE2_RMVOK); /* Imm return on seek */
|
||||
dev->nvr[3] = SPEED_50; /* speed 5.0 MB/s */
|
||||
dev->nvr[6] = (EE6_TERM | /* host term enable */
|
||||
EE6_RSTBUS); /* reset SCSI bus on boot*/
|
||||
}
|
||||
|
||||
|
||||
@@ -1152,7 +1152,7 @@ BuslogicPCIRead(int func, int addr, void *p)
|
||||
case 0x13:
|
||||
return buslogic_pci_bar[0].addr_regs[3];
|
||||
case 0x14:
|
||||
// return (buslogic_pci_bar[1].addr_regs[0] & 0xe0); /*Memory space*/
|
||||
// return (buslogic_pci_bar[1].addr_regs[0] & 0xe0); /*Memory space*/
|
||||
return 0x00;
|
||||
case 0x15:
|
||||
return buslogic_pci_bar[1].addr_regs[1] & 0xc0;
|
||||
|
||||
@@ -1297,10 +1297,10 @@ scsi_cdrom_read_data(scsi_cdrom_t *dev, int msf, int type, int flags, int32_t *l
|
||||
data than that. */
|
||||
#if 0
|
||||
if ((dev->sector_pos + dev->sector_len - 1) >= cdsize) {
|
||||
scsi_cdrom_log("CD-ROM %i: Trying to read to beyond the end of disc (%i >= %i)\n", dev->id,
|
||||
(dev->sector_pos + dev->sector_len - 1), cdsize);
|
||||
scsi_cdrom_lba_out_of_range(dev);
|
||||
return -1;
|
||||
scsi_cdrom_log("CD-ROM %i: Trying to read to beyond the end of disc (%i >= %i)\n", dev->id,
|
||||
(dev->sector_pos + dev->sector_len - 1), cdsize);
|
||||
scsi_cdrom_lba_out_of_range(dev);
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1162,12 +1162,12 @@ static const device_config_t spock_rom_config[] = {
|
||||
// clang-format off
|
||||
{
|
||||
.name = "bios_ver",
|
||||
.description = "BIOS Version",
|
||||
.type = CONFIG_SELECTION,
|
||||
.default_string = "",
|
||||
.default_int = 1,
|
||||
.file_filter = "",
|
||||
.spinner = { 0 },
|
||||
.description = "BIOS Version",
|
||||
.type = CONFIG_SELECTION,
|
||||
.default_string = "",
|
||||
.default_int = 1,
|
||||
.file_filter = "",
|
||||
.spinner = { 0 },
|
||||
.selection = {
|
||||
{ .description = "1991 BIOS (>1GB)", .value = 1 },
|
||||
{ .description = "1990 BIOS", .value = 0 },
|
||||
|
||||
@@ -1312,14 +1312,14 @@ x54x_in(uint16_t port, void *priv)
|
||||
|
||||
case 3:
|
||||
/* Bits according to ASPI4DOS.SYS v3.36:
|
||||
0 Not checked
|
||||
1 Must be 0
|
||||
2 Must be 0-0-0-1
|
||||
3 Must be 0
|
||||
4 Must be 0-1-0-0
|
||||
5 Must be 0
|
||||
6 Not checked
|
||||
7 Not checked
|
||||
0 Not checked
|
||||
1 Must be 0
|
||||
2 Must be 0-0-0-1
|
||||
3 Must be 0
|
||||
4 Must be 0-1-0-0
|
||||
5 Must be 0
|
||||
6 Not checked
|
||||
7 Not checked
|
||||
*/
|
||||
if (dev->flags & X54X_INT_GEOM_WRITABLE)
|
||||
ret = dev->Geometry;
|
||||
|
||||
Reference in New Issue
Block a user