VirtualBox

儲存庫 vbox 的更動 62904


忽略:
時間撮記:
2016-8-3 上午11:08:14 (8 年 以前)
作者:
vboxsync
訊息:

Devices: warnings

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/Storage/DevFdc.cpp

    r62506 r62904  
    7171    #endif
    7272#else /* !VBOX */
    73     # ifdef LOG_ENABLED
    74         static void FLOPPY_DPRINTF (const char *fmt, ...)
    75         {
    76             if (LogIsEnabled ()) {
    77                 va_list args;
    78                 va_start (args, fmt);
    79                 RTLogLogger (NULL, NULL, "floppy: %N", fmt, &args); /* %N - nested va_list * type formatting call. */
    80                 va_end (args);
    81             }
     73# ifdef LOG_ENABLED
     74    static void FLOPPY_DPRINTF(const char *fmt, ...)
     75    {
     76        if (LogIsEnabled()) {
     77            va_list args;
     78            va_start(args, fmt);
     79            RTLogLogger(NULL, NULL, "floppy: %N", fmt, &args); /* %N - nested va_list * type formatting call. */
     80            va_end(args);
    8281        }
    83     # else
    84       DECLINLINE(void) FLOPPY_DPRINTF(const char *pszFmt, ...) {}
    85     # endif
     82    }
     83# else
     84#  define FLOPPY_DPRINTF(...) do { } while (0)
     85# endif
    8686#endif /* !VBOX */
    8787
     
    286286            return 4;
    287287        }
     288#else
     289        RT_NOREF(enable_seek);
    288290#endif
    289291        drv->head = head;
     
    11601162static void fdctrl_unimplemented(fdctrl_t *fdctrl, int direction)
    11611163{
     1164    RT_NOREF(direction);
    11621165    FLOPPY_ERROR("unimplemented command 0x%02x\n", fdctrl->fifo[0]);
    11631166    fdctrl->fifo[0] = FD_SR0_INVCMD;
     
    14831486static void fdctrl_start_transfer_del(fdctrl_t *fdctrl, int direction)
    14841487{
     1488    RT_NOREF(direction);
    14851489    FLOPPY_ERROR("fdctrl_start_transfer_del() unimplemented\n");
    14861490
     
    15411545#endif
    15421546{
     1547    RT_NOREF(pDevIns, dma_pos);
    15431548    fdctrl_t *fdctrl;
    15441549    fdrive_t *cur_drv;
     
    17081713                int rc2 = PDMDevHlpDMAReadMemory (fdctrl->pDevIns, nchan, tmpbuf,
    17091714                                                  fdctrl->data_pos, len, &read);
    1710                 AssertMsg (RT_SUCCESS (rc2), ("DMAReadMemory -> %Rrc2\n", rc2));
     1715                AssertMsg(RT_SUCCESS(rc2), ("DMAReadMemory -> %Rrc2\n", rc2)); NOREF(rc2);
    17111716#else
    17121717                DMA_read_memory (nchan, tmpbuf, fdctrl->data_pos, len);
     
    18941899static void fdctrl_handle_lock(fdctrl_t *fdctrl, int direction)
    18951900{
     1901    RT_NOREF(direction);
    18961902    fdctrl->lock = (fdctrl->fifo[0] & 0x80) ? 1 : 0;
    18971903    fdctrl->fifo[0] = fdctrl->lock << 4;
     
    19011907static void fdctrl_handle_dumpreg(fdctrl_t *fdctrl, int direction)
    19021908{
     1909    RT_NOREF(direction);
    19031910    fdrive_t *cur_drv = get_cur_drv(fdctrl);
    19041911
     
    19261933static void fdctrl_handle_version(fdctrl_t *fdctrl, int direction)
    19271934{
     1935    RT_NOREF(direction);
    19281936    /* Controller's version */
    19291937    fdctrl->fifo[0] = fdctrl->version;
     
    19331941static void fdctrl_handle_partid(fdctrl_t *fdctrl, int direction)
    19341942{
     1943    RT_NOREF(direction);
    19351944    fdctrl->fifo[0] = 0x01; /* Stepping 1 */
    19361945    fdctrl_set_fifo(fdctrl, 1, 0);
     
    19391948static void fdctrl_handle_restore(fdctrl_t *fdctrl, int direction)
    19401949{
     1950    RT_NOREF(direction);
    19411951    fdrive_t *cur_drv = get_cur_drv(fdctrl);
    19421952
     
    19621972static void fdctrl_handle_save(fdctrl_t *fdctrl, int direction)
    19631973{
     1974    RT_NOREF(direction);
    19641975    fdrive_t *cur_drv = get_cur_drv(fdctrl);
    19651976
     
    19922003static void fdctrl_handle_readid(fdctrl_t *fdctrl, int direction)
    19932004{
     2005    RT_NOREF(direction);
    19942006    fdrive_t *cur_drv = get_cur_drv(fdctrl);
    19952007
     
    20082020static void fdctrl_handle_format_track(fdctrl_t *fdctrl, int direction)
    20092021{
     2022    RT_NOREF(direction);
    20102023    fdrive_t *cur_drv;
    20112024    uint8_t ns, dp;
     
    20402053static void fdctrl_handle_specify(fdctrl_t *fdctrl, int direction)
    20412054{
     2055    RT_NOREF(direction);
    20422056    fdctrl->timer0 = (fdctrl->fifo[1] >> 4) & 0xF;
    20432057    fdctrl->timer1 = fdctrl->fifo[2] >> 1;
     
    20522066static void fdctrl_handle_sense_drive_status(fdctrl_t *fdctrl, int direction)
    20532067{
     2068    RT_NOREF(direction);
    20542069    fdrive_t *cur_drv;
    20552070
     
    20682083static void fdctrl_handle_recalibrate(fdctrl_t *fdctrl, int direction)
    20692084{
     2085    RT_NOREF(direction);
    20702086    fdrive_t *cur_drv;
    20712087    uint8_t  st0;
     
    20852101static void fdctrl_handle_sense_interrupt_status(fdctrl_t *fdctrl, int direction)
    20862102{
     2103    RT_NOREF(direction);
    20872104    fdrive_t *cur_drv = get_cur_drv(fdctrl);
    20882105
     
    21112128static void fdctrl_handle_seek(fdctrl_t *fdctrl, int direction)
    21122129{
     2130    RT_NOREF(direction);
    21132131    fdrive_t *cur_drv;
    21142132
     
    21412159static void fdctrl_handle_perpendicular_mode(fdctrl_t *fdctrl, int direction)
    21422160{
     2161    RT_NOREF(direction);
    21432162    fdrive_t *cur_drv = get_cur_drv(fdctrl);
    21442163
     
    21512170static void fdctrl_handle_configure(fdctrl_t *fdctrl, int direction)
    21522171{
     2172    RT_NOREF(direction);
    21532173    fdctrl->config = fdctrl->fifo[2];
    21542174    fdctrl->precomp_trk =  fdctrl->fifo[3];
     
    21592179static void fdctrl_handle_powerdown_mode(fdctrl_t *fdctrl, int direction)
    21602180{
     2181    RT_NOREF(direction);
    21612182    fdctrl->pwrd = fdctrl->fifo[1];
    21622183    fdctrl->fifo[0] = fdctrl->fifo[1];
     
    21662187static void fdctrl_handle_option(fdctrl_t *fdctrl, int direction)
    21672188{
     2189    RT_NOREF(direction);
    21682190    /* No result back */
    21692191    fdctrl_reset_fifo(fdctrl);
     
    21722194static void fdctrl_handle_drive_specification_command(fdctrl_t *fdctrl, int direction)
    21732195{
    2174     fdrive_t *cur_drv = get_cur_drv(fdctrl);
     2196    RT_NOREF(direction);
     2197    /* fdrive_t *cur_drv = get_cur_drv(fdctrl); - unused */
    21752198
    21762199    /* This command takes a variable number of parameters. It can be terminated
     
    21972220static void fdctrl_handle_relative_seek_out(fdctrl_t *fdctrl, int direction)
    21982221{
     2222    RT_NOREF(direction);
    21992223    fdrive_t *cur_drv;
    22002224
     
    22132237static void fdctrl_handle_relative_seek_in(fdctrl_t *fdctrl, int direction)
    22142238{
     2239    RT_NOREF(direction);
    22152240    fdrive_t *cur_drv;
    22162241
     
    23782403static DECLCALLBACK(void) fdcTimerCallback(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser)
    23792404{
     2405    RT_NOREF(pDevIns, pTimer);
    23802406    fdctrl_t *fdctrl = (fdctrl_t *)pvUser;
    23812407    fdctrl_result_timer(fdctrl);
     
    23902416static DECLCALLBACK(int) fdcIoPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
    23912417{
     2418    RT_NOREF(pDevIns);
    23922419    if (cb == 1)
    23932420        fdctrl_write (pvUser, Port & 7, u32);
     
    24032430static DECLCALLBACK(int) fdcIoPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
    24042431{
     2432    RT_NOREF(pDevIns);
    24052433    if (cb == 1)
    24062434    {
     
    28002828static DECLCALLBACK(void) fdcDetach(PPDMDEVINS pDevIns, unsigned iLUN, uint32_t fFlags)
    28012829{
     2830    RT_NOREF(fFlags);
    28022831    fdctrl_t *pThis = PDMINS_2_DATA(pDevIns, fdctrl_t *);
    28032832    LogFlow (("ideDetach: iLUN=%u\n", iLUN));
     
    28472876static DECLCALLBACK(int) fdcConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg)
    28482877{
     2878    RT_NOREF(iInstance);
    28492879    fdctrl_t      *pThis = PDMINS_2_DATA(pDevIns, fdctrl_t *);
    28502880    int            rc;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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