儲存庫 vbox 的更動 62904
- 時間撮記:
- 2016-8-3 上午11:08:14 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/Storage/DevFdc.cpp
r62506 r62904 71 71 #endif 72 72 #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); 82 81 } 83 # else 84 DECLINLINE(void) FLOPPY_DPRINTF(const char *pszFmt, ...) {} 85 # endif 82 } 83 # else 84 # define FLOPPY_DPRINTF(...) do { } while (0) 85 # endif 86 86 #endif /* !VBOX */ 87 87 … … 286 286 return 4; 287 287 } 288 #else 289 RT_NOREF(enable_seek); 288 290 #endif 289 291 drv->head = head; … … 1160 1162 static void fdctrl_unimplemented(fdctrl_t *fdctrl, int direction) 1161 1163 { 1164 RT_NOREF(direction); 1162 1165 FLOPPY_ERROR("unimplemented command 0x%02x\n", fdctrl->fifo[0]); 1163 1166 fdctrl->fifo[0] = FD_SR0_INVCMD; … … 1483 1486 static void fdctrl_start_transfer_del(fdctrl_t *fdctrl, int direction) 1484 1487 { 1488 RT_NOREF(direction); 1485 1489 FLOPPY_ERROR("fdctrl_start_transfer_del() unimplemented\n"); 1486 1490 … … 1541 1545 #endif 1542 1546 { 1547 RT_NOREF(pDevIns, dma_pos); 1543 1548 fdctrl_t *fdctrl; 1544 1549 fdrive_t *cur_drv; … … 1708 1713 int rc2 = PDMDevHlpDMAReadMemory (fdctrl->pDevIns, nchan, tmpbuf, 1709 1714 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); 1711 1716 #else 1712 1717 DMA_read_memory (nchan, tmpbuf, fdctrl->data_pos, len); … … 1894 1899 static void fdctrl_handle_lock(fdctrl_t *fdctrl, int direction) 1895 1900 { 1901 RT_NOREF(direction); 1896 1902 fdctrl->lock = (fdctrl->fifo[0] & 0x80) ? 1 : 0; 1897 1903 fdctrl->fifo[0] = fdctrl->lock << 4; … … 1901 1907 static void fdctrl_handle_dumpreg(fdctrl_t *fdctrl, int direction) 1902 1908 { 1909 RT_NOREF(direction); 1903 1910 fdrive_t *cur_drv = get_cur_drv(fdctrl); 1904 1911 … … 1926 1933 static void fdctrl_handle_version(fdctrl_t *fdctrl, int direction) 1927 1934 { 1935 RT_NOREF(direction); 1928 1936 /* Controller's version */ 1929 1937 fdctrl->fifo[0] = fdctrl->version; … … 1933 1941 static void fdctrl_handle_partid(fdctrl_t *fdctrl, int direction) 1934 1942 { 1943 RT_NOREF(direction); 1935 1944 fdctrl->fifo[0] = 0x01; /* Stepping 1 */ 1936 1945 fdctrl_set_fifo(fdctrl, 1, 0); … … 1939 1948 static void fdctrl_handle_restore(fdctrl_t *fdctrl, int direction) 1940 1949 { 1950 RT_NOREF(direction); 1941 1951 fdrive_t *cur_drv = get_cur_drv(fdctrl); 1942 1952 … … 1962 1972 static void fdctrl_handle_save(fdctrl_t *fdctrl, int direction) 1963 1973 { 1974 RT_NOREF(direction); 1964 1975 fdrive_t *cur_drv = get_cur_drv(fdctrl); 1965 1976 … … 1992 2003 static void fdctrl_handle_readid(fdctrl_t *fdctrl, int direction) 1993 2004 { 2005 RT_NOREF(direction); 1994 2006 fdrive_t *cur_drv = get_cur_drv(fdctrl); 1995 2007 … … 2008 2020 static void fdctrl_handle_format_track(fdctrl_t *fdctrl, int direction) 2009 2021 { 2022 RT_NOREF(direction); 2010 2023 fdrive_t *cur_drv; 2011 2024 uint8_t ns, dp; … … 2040 2053 static void fdctrl_handle_specify(fdctrl_t *fdctrl, int direction) 2041 2054 { 2055 RT_NOREF(direction); 2042 2056 fdctrl->timer0 = (fdctrl->fifo[1] >> 4) & 0xF; 2043 2057 fdctrl->timer1 = fdctrl->fifo[2] >> 1; … … 2052 2066 static void fdctrl_handle_sense_drive_status(fdctrl_t *fdctrl, int direction) 2053 2067 { 2068 RT_NOREF(direction); 2054 2069 fdrive_t *cur_drv; 2055 2070 … … 2068 2083 static void fdctrl_handle_recalibrate(fdctrl_t *fdctrl, int direction) 2069 2084 { 2085 RT_NOREF(direction); 2070 2086 fdrive_t *cur_drv; 2071 2087 uint8_t st0; … … 2085 2101 static void fdctrl_handle_sense_interrupt_status(fdctrl_t *fdctrl, int direction) 2086 2102 { 2103 RT_NOREF(direction); 2087 2104 fdrive_t *cur_drv = get_cur_drv(fdctrl); 2088 2105 … … 2111 2128 static void fdctrl_handle_seek(fdctrl_t *fdctrl, int direction) 2112 2129 { 2130 RT_NOREF(direction); 2113 2131 fdrive_t *cur_drv; 2114 2132 … … 2141 2159 static void fdctrl_handle_perpendicular_mode(fdctrl_t *fdctrl, int direction) 2142 2160 { 2161 RT_NOREF(direction); 2143 2162 fdrive_t *cur_drv = get_cur_drv(fdctrl); 2144 2163 … … 2151 2170 static void fdctrl_handle_configure(fdctrl_t *fdctrl, int direction) 2152 2171 { 2172 RT_NOREF(direction); 2153 2173 fdctrl->config = fdctrl->fifo[2]; 2154 2174 fdctrl->precomp_trk = fdctrl->fifo[3]; … … 2159 2179 static void fdctrl_handle_powerdown_mode(fdctrl_t *fdctrl, int direction) 2160 2180 { 2181 RT_NOREF(direction); 2161 2182 fdctrl->pwrd = fdctrl->fifo[1]; 2162 2183 fdctrl->fifo[0] = fdctrl->fifo[1]; … … 2166 2187 static void fdctrl_handle_option(fdctrl_t *fdctrl, int direction) 2167 2188 { 2189 RT_NOREF(direction); 2168 2190 /* No result back */ 2169 2191 fdctrl_reset_fifo(fdctrl); … … 2172 2194 static void fdctrl_handle_drive_specification_command(fdctrl_t *fdctrl, int direction) 2173 2195 { 2174 fdrive_t *cur_drv = get_cur_drv(fdctrl); 2196 RT_NOREF(direction); 2197 /* fdrive_t *cur_drv = get_cur_drv(fdctrl); - unused */ 2175 2198 2176 2199 /* This command takes a variable number of parameters. It can be terminated … … 2197 2220 static void fdctrl_handle_relative_seek_out(fdctrl_t *fdctrl, int direction) 2198 2221 { 2222 RT_NOREF(direction); 2199 2223 fdrive_t *cur_drv; 2200 2224 … … 2213 2237 static void fdctrl_handle_relative_seek_in(fdctrl_t *fdctrl, int direction) 2214 2238 { 2239 RT_NOREF(direction); 2215 2240 fdrive_t *cur_drv; 2216 2241 … … 2378 2403 static DECLCALLBACK(void) fdcTimerCallback(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser) 2379 2404 { 2405 RT_NOREF(pDevIns, pTimer); 2380 2406 fdctrl_t *fdctrl = (fdctrl_t *)pvUser; 2381 2407 fdctrl_result_timer(fdctrl); … … 2390 2416 static DECLCALLBACK(int) fdcIoPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb) 2391 2417 { 2418 RT_NOREF(pDevIns); 2392 2419 if (cb == 1) 2393 2420 fdctrl_write (pvUser, Port & 7, u32); … … 2403 2430 static DECLCALLBACK(int) fdcIoPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb) 2404 2431 { 2432 RT_NOREF(pDevIns); 2405 2433 if (cb == 1) 2406 2434 { … … 2800 2828 static DECLCALLBACK(void) fdcDetach(PPDMDEVINS pDevIns, unsigned iLUN, uint32_t fFlags) 2801 2829 { 2830 RT_NOREF(fFlags); 2802 2831 fdctrl_t *pThis = PDMINS_2_DATA(pDevIns, fdctrl_t *); 2803 2832 LogFlow (("ideDetach: iLUN=%u\n", iLUN)); … … 2847 2876 static DECLCALLBACK(int) fdcConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 2848 2877 { 2878 RT_NOREF(iInstance); 2849 2879 fdctrl_t *pThis = PDMINS_2_DATA(pDevIns, fdctrl_t *); 2850 2880 int rc;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器