Even more tabs to spaces
This commit is contained in:
@@ -537,7 +537,7 @@ ide_hd_identify(ide_t *ide)
|
||||
/*
|
||||
Bit 0 = The fields reported in words 54-58 are valid;
|
||||
Bit 1 = The fields reported in words 64-70 are valid;
|
||||
Bit 2 = The fields reported in word 88 are valid. */
|
||||
Bit 2 = The fields reported in word 88 are valid. */
|
||||
ide->buffer[53] = 1;
|
||||
|
||||
if (ide->cfg_spt != 0) {
|
||||
@@ -1946,12 +1946,12 @@ ide_readb(uint16_t addr, void *priv)
|
||||
Direction:
|
||||
To device if set;
|
||||
From device if clear.
|
||||
IO DRQ CoD
|
||||
0 1 1 Ready to accept command packet
|
||||
1 1 1 Message - ready to send message to host
|
||||
1 1 0 Data to host
|
||||
0 1 0 Data from host
|
||||
1 0 1 Status. */
|
||||
IO DRQ CoD
|
||||
0 1 1 Ready to accept command packet
|
||||
1 1 1 Message - ready to send message to host
|
||||
1 1 0 Data to host
|
||||
0 1 0 Data from host
|
||||
1 0 1 Status. */
|
||||
case 0x2: /* Sector count */
|
||||
if (ide->type == IDE_ATAPI)
|
||||
temp = ide->sc->phase;
|
||||
|
||||
@@ -180,28 +180,28 @@
|
||||
#define ERR_CRC_FAIL 0x32 /* CRC circuit failed test */
|
||||
|
||||
/* Controller commands. */
|
||||
#define CMD_TEST_DRIVE_READY 0x00
|
||||
#define CMD_RECALIBRATE 0x01
|
||||
/* reserved 0x02 */
|
||||
#define CMD_STATUS 0x03
|
||||
#define CMD_FORMAT_DRIVE 0x04
|
||||
#define CMD_VERIFY 0x05
|
||||
#define CMD_FORMAT_TRACK 0x06
|
||||
#define CMD_FORMAT_BAD_TRACK 0x07
|
||||
#define CMD_READ 0x08
|
||||
#define CMD_REASSIGN 0x09
|
||||
#define CMD_WRITE 0x0a
|
||||
#define CMD_SEEK 0x0b
|
||||
#define CMD_SPECIFY 0x0c
|
||||
#define CMD_READ_ECC_BURST_LEN 0x0d
|
||||
#define CMD_READ_BUFFER 0x0e
|
||||
#define CMD_WRITE_BUFFER 0x0f
|
||||
#define CMD_ALT_TRACK 0x11
|
||||
#define CMD_INQUIRY_ST11 0x12 /* ST-11 BIOS */
|
||||
#define CMD_V86P_POWEROFF 0x1a /* Victor V86P */
|
||||
#define CMD_RAM_DIAGNOSTIC 0xe0
|
||||
/* reserved 0xe1 */
|
||||
/* reserved 0xe2 */
|
||||
#define CMD_TEST_DRIVE_READY 0x00
|
||||
#define CMD_RECALIBRATE 0x01
|
||||
/* reserved 0x02 */
|
||||
#define CMD_STATUS 0x03
|
||||
#define CMD_FORMAT_DRIVE 0x04
|
||||
#define CMD_VERIFY 0x05
|
||||
#define CMD_FORMAT_TRACK 0x06
|
||||
#define CMD_FORMAT_BAD_TRACK 0x07
|
||||
#define CMD_READ 0x08
|
||||
#define CMD_REASSIGN 0x09
|
||||
#define CMD_WRITE 0x0a
|
||||
#define CMD_SEEK 0x0b
|
||||
#define CMD_SPECIFY 0x0c
|
||||
#define CMD_READ_ECC_BURST_LEN 0x0d
|
||||
#define CMD_READ_BUFFER 0x0e
|
||||
#define CMD_WRITE_BUFFER 0x0f
|
||||
#define CMD_ALT_TRACK 0x11
|
||||
#define CMD_INQUIRY_ST11 0x12 /* ST-11 BIOS */
|
||||
#define CMD_V86P_POWEROFF 0x1a /* Victor V86P */
|
||||
#define CMD_RAM_DIAGNOSTIC 0xe0
|
||||
/* reserved 0xe1 */
|
||||
/* reserved 0xe2 */
|
||||
#define CMD_DRIVE_DIAGNOSTIC 0xe3
|
||||
#define CMD_CTRLR_DIAGNOSTIC 0xe4
|
||||
#define CMD_READ_LONG 0xe5
|
||||
@@ -295,19 +295,19 @@ typedef struct {
|
||||
|
||||
hd_type_t hd_types[4] = {
|
||||
// clang-format off
|
||||
{ 306, 4, MFM_SECTORS}, /* type 0 */
|
||||
{ 612, 4, MFM_SECTORS}, /* type 16 */
|
||||
{ 615, 4, MFM_SECTORS}, /* type 2 */
|
||||
{ 306, 8, MFM_SECTORS} /* type 13 */
|
||||
{ 306, 4, MFM_SECTORS}, /* type 0 */
|
||||
{ 612, 4, MFM_SECTORS}, /* type 16 */
|
||||
{ 615, 4, MFM_SECTORS}, /* type 2 */
|
||||
{ 306, 8, MFM_SECTORS} /* type 13 */
|
||||
// clang-format on
|
||||
};
|
||||
|
||||
hd_type_t hd_types_olivetti[16] = {
|
||||
// clang-format off
|
||||
{ 697, 5, MFM_SECTORS},
|
||||
{ 612, 4, MFM_SECTORS}, /* type 16 */
|
||||
{ 612, 4, MFM_SECTORS}, /* type 16 */
|
||||
{ 306, 4, MFM_SECTORS}, /* type 0 */
|
||||
{ 612, 4, MFM_SECTORS}, /* type 16 */
|
||||
{ 612, 4, MFM_SECTORS}, /* type 16 */
|
||||
{ 306, 4, MFM_SECTORS}, /* type 0 */
|
||||
{ 612, 8, MFM_SECTORS},
|
||||
{ 820, 6, MFM_SECTORS},
|
||||
{ 820, 6, MFM_SECTORS},
|
||||
@@ -317,8 +317,8 @@ hd_type_t hd_types_olivetti[16] = {
|
||||
{1024, 8, MFM_SECTORS},
|
||||
{1024, 9, MFM_SECTORS},
|
||||
{ 872, 5, MFM_SECTORS},
|
||||
{ 612, 4, MFM_SECTORS}, /* type 16 */
|
||||
{ 612, 4, MFM_SECTORS}, /* type 16 */
|
||||
{ 612, 4, MFM_SECTORS}, /* type 16 */
|
||||
{ 612, 4, MFM_SECTORS}, /* type 16 */
|
||||
{ 306, 4, MFM_SECTORS} /* "not present" with the second hard disk */
|
||||
// clang-format on
|
||||
};
|
||||
@@ -375,10 +375,10 @@ get_sector(hdc_t *dev, drive_t *drive, off64_t *addr)
|
||||
#if 0
|
||||
if (drive->cylinder != dev->cylinder) {
|
||||
# ifdef ENABLE_ST506_XT_LOG
|
||||
st506_xt_log("ST506: get_sector: wrong cylinder\n");
|
||||
st506_xt_log("ST506: get_sector: wrong cylinder\n");
|
||||
# endif
|
||||
dev->error = ERR_ILLEGAL_ADDR;
|
||||
return(0);
|
||||
dev->error = ERR_ILLEGAL_ADDR;
|
||||
return(0);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -653,7 +653,7 @@ st506_callback(void *priv)
|
||||
}
|
||||
case CMD_READ:
|
||||
#if 0
|
||||
case CMD_READ_LONG:
|
||||
case CMD_READ_LONG:
|
||||
#endif
|
||||
switch (dev->state) {
|
||||
case STATE_START_COMMAND:
|
||||
@@ -749,7 +749,7 @@ st506_callback(void *priv)
|
||||
}
|
||||
case CMD_WRITE:
|
||||
#if 0
|
||||
case CMD_WRITE_LONG:
|
||||
case CMD_WRITE_LONG:
|
||||
#endif
|
||||
switch (dev->state) {
|
||||
case STATE_START_COMMAND:
|
||||
|
||||
@@ -199,7 +199,8 @@ static const mode_sense_pages_t zip_250_mode_sense_pages_default =
|
||||
{ 0, 0 },
|
||||
{ 0, 0 },
|
||||
{ 0, 0 },
|
||||
{ 0, 0 }, { 0, 0 },
|
||||
{ 0, 0 },
|
||||
{ 0, 0 },
|
||||
{ 0, 0 },
|
||||
{ 0, 0 },
|
||||
{ 0, 0 },
|
||||
|
||||
Reference in New Issue
Block a user