/* $Id$ */
/** @file
* Floppy drive tables.
*/
/*
* Copyright (C) 2011-2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#include <stdint.h>
#include <string.h>
#include "biosint.h"
#include "inlines.h"
/**
* Extended DPT (Disk Parameter Table) structure.
*/
typedef struct
{
} dpt_ext;
/* Motor spin-up wait time in BIOS ticks (~2 seconds). */
/* Data rates as stored in the DPT */
/* In the 13-entry DPT, 7 entries are constant. Use a macro to set those. */
};
typedef struct {
} fd_map_entry;
/* Drive types as stored in the CMOS. Must match DevPCBios! */
/* A table mapping (CMOS) drive types to DPT entries. */
{ FDRV_360K, 0 },
{ FDRV_1_2M, 2 },
{ FDRV_720K, 3 },
{ FDRV_1_44M, 4 },
{ FDRV_2_88M, 5 },
{ FDRV_15M, 6 },
{ FDRV_63M, 6 }
};
/* Find a DPT corresponding to the given drive type. */
{
int i;
/* As a fallback, return the 1.44M DPT. */
return &fd_parm[5];
}