Changeset 44807 in vbox
- Timestamp:
- Feb 22, 2013 8:55:58 PM (12 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Makefile.kmk
r44705 r44807 174 174 PC/DevSMC.cpp \ 175 175 PC/DevLPC.cpp \ 176 Storage/ fdc.c\176 Storage/DevFdc.cpp \ 177 177 Serial/DevSerial.cpp \ 178 178 Parallel/DevParallel.cpp \ -
trunk/src/VBox/Devices/Storage/DevFdc.cpp
r44804 r44807 130 130 } fdrive_type_t; 131 131 132 typedef enum fdrive_flags_t { 133 FDISK_DBL_SIDES = 0x01 134 } fdrive_flags_t; 132 typedef uint8_t fdrive_flags_t; 133 #define FDISK_DBL_SIDES UINT8_C(0x01) 135 134 136 135 typedef enum fdrive_rate_t { … … 325 324 { FDRIVE_DRV_144, FDRIVE_DISK_720, 9, 80, 0, FDRIVE_RATE_250K, "360 kB 3\"1/2", }, 326 325 /* end */ 327 { FDRIVE_DRV_NONE, FDRIVE_DISK_NONE, -1, -1, 0, 0, NULL, },326 { FDRIVE_DRV_NONE, FDRIVE_DISK_NONE, -1, -1, 0, (fdrive_rate_t)0, NULL, }, 328 327 }; 329 328 … … 669 668 static uint32_t fdctrl_read (void *opaque, uint32_t reg) 670 669 { 671 fdctrl_t *fdctrl = opaque;670 fdctrl_t *fdctrl = (fdctrl_t *)opaque; 672 671 uint32_t retval; 673 672 … … 705 704 static void fdctrl_write (void *opaque, uint32_t reg, uint32_t value) 706 705 { 707 fdctrl_t *fdctrl = opaque;706 fdctrl_t *fdctrl = (fdctrl_t *)opaque; 708 707 709 708 FLOPPY_DPRINTF("write reg%d: 0x%02x\n", reg & 7, value); … … 1342 1341 uint8_t status0 = 0x00, status1 = 0x00, status2 = 0x00; 1343 1342 1344 fdctrl = opaque;1343 fdctrl = (fdctrl_t *)opaque; 1345 1344 if (fdctrl->msr & FD_MSR_RQM) { 1346 1345 FLOPPY_DPRINTF("Not in DMA transfer mode !\n"); … … 2057 2056 static void fdctrl_result_timer(void *opaque) 2058 2057 { 2059 fdctrl_t *fdctrl = opaque;2058 fdctrl_t *fdctrl = (fdctrl_t *)opaque; 2060 2059 fdrive_t *cur_drv = get_cur_drv(fdctrl); 2061 2060 … … 2234 2233 SSMR3GetMem (pSSMHandle, &d->Led, sizeof (d->Led)); 2235 2234 SSMR3GetU32(pSSMHandle, &val32); 2236 d->drive = val32;2235 d->drive = (fdrive_type_t)val32; 2237 2236 SSMR3GetU32(pSSMHandle, &val32); /* Toss drflags */ 2238 2237 SSMR3GetU8(pSSMHandle, &d->perpendicular); … … 2243 2242 SSMR3GetU8(pSSMHandle, &val8); 2244 2243 SSMR3GetU32(pSSMHandle, &val32); 2245 d->flags = val32;2244 d->flags = (fdrive_flags_t)val32; 2246 2245 SSMR3GetU8(pSSMHandle, &d->last_sect); 2247 2246 SSMR3GetU8(pSSMHandle, &d->max_track); … … 2297 2296 SSMR3GetMem(pSSMHandle, &d->Led, sizeof(d->Led)); 2298 2297 SSMR3GetU32(pSSMHandle, &val32); 2299 d->drive = val32;2298 d->drive = (fdrive_type_t)val32; 2300 2299 SSMR3GetU8(pSSMHandle, &d->dsk_chg); 2301 2300 SSMR3GetU8(pSSMHandle, &d->perpendicular);
Note:
See TracChangeset
for help on using the changeset viewer.