VirtualBox

Changeset 44807 in vbox


Ignore:
Timestamp:
Feb 22, 2013 8:55:58 PM (12 years ago)
Author:
vboxsync
Message:

fdc.c -> DevFdc.cpp.

Location:
trunk/src/VBox/Devices
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Makefile.kmk

    r44705 r44807  
    174174        PC/DevSMC.cpp \
    175175        PC/DevLPC.cpp \
    176         Storage/fdc.c \
     176        Storage/DevFdc.cpp \
    177177        Serial/DevSerial.cpp \
    178178        Parallel/DevParallel.cpp \
  • trunk/src/VBox/Devices/Storage/DevFdc.cpp

    r44804 r44807  
    130130} fdrive_type_t;
    131131
    132 typedef enum fdrive_flags_t {
    133     FDISK_DBL_SIDES  = 0x01
    134 } fdrive_flags_t;
     132typedef uint8_t fdrive_flags_t;
     133#define FDISK_DBL_SIDES     UINT8_C(0x01)
    135134
    136135typedef enum fdrive_rate_t {
     
    325324    { FDRIVE_DRV_144, FDRIVE_DISK_720,  9, 80, 0, FDRIVE_RATE_250K,  "360 kB 3\"1/2", },
    326325    /* 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, },
    328327};
    329328
     
    669668static uint32_t fdctrl_read (void *opaque, uint32_t reg)
    670669{
    671     fdctrl_t *fdctrl = opaque;
     670    fdctrl_t *fdctrl = (fdctrl_t *)opaque;
    672671    uint32_t retval;
    673672
     
    705704static void fdctrl_write (void *opaque, uint32_t reg, uint32_t value)
    706705{
    707     fdctrl_t *fdctrl = opaque;
     706    fdctrl_t *fdctrl = (fdctrl_t *)opaque;
    708707
    709708    FLOPPY_DPRINTF("write reg%d: 0x%02x\n", reg & 7, value);
     
    13421341    uint8_t status0 = 0x00, status1 = 0x00, status2 = 0x00;
    13431342
    1344     fdctrl = opaque;
     1343    fdctrl = (fdctrl_t *)opaque;
    13451344    if (fdctrl->msr & FD_MSR_RQM) {
    13461345        FLOPPY_DPRINTF("Not in DMA transfer mode !\n");
     
    20572056static void fdctrl_result_timer(void *opaque)
    20582057{
    2059     fdctrl_t *fdctrl = opaque;
     2058    fdctrl_t *fdctrl = (fdctrl_t *)opaque;
    20602059    fdrive_t *cur_drv = get_cur_drv(fdctrl);
    20612060
     
    22342233            SSMR3GetMem (pSSMHandle, &d->Led, sizeof (d->Led));
    22352234            SSMR3GetU32(pSSMHandle, &val32);
    2236             d->drive = val32;
     2235            d->drive = (fdrive_type_t)val32;
    22372236            SSMR3GetU32(pSSMHandle, &val32);    /* Toss drflags */
    22382237            SSMR3GetU8(pSSMHandle, &d->perpendicular);
     
    22432242            SSMR3GetU8(pSSMHandle, &val8);
    22442243            SSMR3GetU32(pSSMHandle, &val32);
    2245             d->flags = val32;
     2244            d->flags = (fdrive_flags_t)val32;
    22462245            SSMR3GetU8(pSSMHandle, &d->last_sect);
    22472246            SSMR3GetU8(pSSMHandle, &d->max_track);
     
    22972296            SSMR3GetMem(pSSMHandle, &d->Led, sizeof(d->Led));
    22982297            SSMR3GetU32(pSSMHandle, &val32);
    2299             d->drive = val32;
     2298            d->drive = (fdrive_type_t)val32;
    23002299            SSMR3GetU8(pSSMHandle, &d->dsk_chg);
    23012300            SSMR3GetU8(pSSMHandle, &d->perpendicular);
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