VirtualBox

Changeset 48059 in vbox


Ignore:
Timestamp:
Aug 26, 2013 11:26:56 AM (11 years ago)
Author:
vboxsync
Message:

DevFdc: Improved logging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevFdc.cpp

    r47711 r48059  
    11991199    fdctrl->fifo[5] = cur_drv->sect;
    12001200    fdctrl->fifo[6] = FD_SECTOR_SC;
     1201    FLOPPY_DPRINTF("ST0:%02x ST1:%02x ST2:%02x C:%02x H:%02x R:%02x N:%02x\n",
     1202                   fdctrl->fifo[0], fdctrl->fifo[1], fdctrl->fifo[2], fdctrl->fifo[3],
     1203                   fdctrl->fifo[4], fdctrl->fifo[5], fdctrl->fifo[6]);
     1204
    12011205    fdctrl->data_dir = FD_DIR_READ;
    12021206    if (!(fdctrl->msr & FD_MSR_NONDMA)) {
     
    12271231                   GET_CUR_DRV(fdctrl), kh, kt, ks,
    12281232                   fd_sector_calc(kh, kt, ks, cur_drv->last_sect, NUM_SIDES(cur_drv)));
     1233    FLOPPY_DPRINTF("CMD:%02x SEL:%02x C:%02x H:%02x R:%02x N:%02x EOT:%02x GPL:%02x DTL:%02x\n",
     1234                   fdctrl->fifo[0], fdctrl->fifo[1], fdctrl->fifo[2],
     1235                   fdctrl->fifo[3], fdctrl->fifo[4], fdctrl->fifo[5],
     1236                   fdctrl->fifo[6], fdctrl->fifo[7], fdctrl->fifo[8]);
    12291237    switch (fd_seek(cur_drv, kh, kt, ks, fdctrl->config & FD_CONFIG_EIS)) {
    12301238    case 2:
     
    18021810    fdrive_t *cur_drv = get_cur_drv(fdctrl);
    18031811
     1812    FLOPPY_DPRINTF("CMD:%02x SEL:%02x\n", fdctrl->fifo[0], fdctrl->fifo[1]);
     1813
    18041814    /* XXX: should set main status register to busy */
    18051815    cur_drv->head = (fdctrl->fifo[1] >> 2) & 1;
     
    18151825{
    18161826    fdrive_t *cur_drv;
     1827    uint8_t ns, dp;
     1828    int did_seek = 0;
    18171829
    18181830    SET_CUR_DRV(fdctrl, fdctrl->fifo[1] & FD_DOR_SELMASK);
    18191831    cur_drv = get_cur_drv(fdctrl);
     1832    ns = fdctrl->fifo[3];
     1833    dp = fdctrl->fifo[5];
     1834
     1835    FLOPPY_DPRINTF("Format track %d at %d, %d sectors, filler %02x\n",
     1836                   cur_drv->track, GET_CUR_DRV(fdctrl), ns, dp);
     1837    FLOPPY_DPRINTF("CMD:%02x SEL:%02x N:%02x SC:%02x GPL:%02x D:%02x\n",
     1838                   fdctrl->fifo[0], fdctrl->fifo[1], fdctrl->fifo[2],
     1839                   fdctrl->fifo[3], fdctrl->fifo[4], fdctrl->fifo[5]);
     1840
    18201841    fdctrl->data_state |= FD_STATE_FORMAT;
    18211842    if (fdctrl->fifo[0] & 0x80)
     
    18901911    fdrive_t *cur_drv = get_cur_drv(fdctrl);
    18911912
     1913    FLOPPY_DPRINTF("CMD:%02x\n", fdctrl->fifo[0]);
    18921914    if(fdctrl->reset_sensei > 0) {
    18931915        fdctrl->fifo[0] =
     
    19071929    fdctrl->fifo[1] = cur_drv->track;
    19081930    fdctrl_set_fifo(fdctrl, 2, 0);
     1931    FLOPPY_DPRINTF("ST0:%02x PCN:%02x\n", fdctrl->fifo[0], fdctrl->fifo[1]);
    19091932    fdctrl->status0 = FD_SR0_RDYCHG;
    19101933}
     
    19131936{
    19141937    fdrive_t *cur_drv;
     1938
     1939    FLOPPY_DPRINTF("CMD:%02x SEL:%02x NCN:%02x\n", fdctrl->fifo[0],
     1940                   fdctrl->fifo[1], fdctrl->fifo[2]);
    19151941
    19161942    SET_CUR_DRV(fdctrl, fdctrl->fifo[1] & FD_DOR_SELMASK);
Note: See TracChangeset for help on using the changeset viewer.

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