2017-09-30 16:56:38 -04:00
|
|
|
/*
|
|
|
|
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
|
|
|
|
* running old operating systems and software designed for IBM
|
|
|
|
|
* PC systems and compatibles from 1981 through fairly recent
|
|
|
|
|
* system designs based on the PCI bus.
|
|
|
|
|
*
|
|
|
|
|
* This file is part of the 86Box distribution.
|
|
|
|
|
*
|
|
|
|
|
* Common code to handle all sorts of hard disk images.
|
|
|
|
|
*
|
|
|
|
|
* Version: @(#)hdd.c 1.0.1 2017/09/29
|
|
|
|
|
*
|
|
|
|
|
* Authors: Miran Grca, <mgrca8@gmail.com>
|
|
|
|
|
* Fred N. van Kempen, <decwiz@yahoo.com>
|
|
|
|
|
* Copyright 2016,2017 Miran Grca.
|
|
|
|
|
* Copyright 2017 Fred N. van Kempen.
|
|
|
|
|
*/
|
2017-09-25 04:31:20 -04:00
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#include <wchar.h>
|
2017-08-27 00:58:44 +02:00
|
|
|
#include "../ibm.h"
|
2017-08-27 04:33:47 +01:00
|
|
|
#include "../cpu/cpu.h"
|
2017-08-27 00:58:44 +02:00
|
|
|
#include "../device.h"
|
2017-09-02 20:39:57 +02:00
|
|
|
#include "../machine/machine.h"
|
2017-03-15 01:37:09 +01:00
|
|
|
#include "hdd.h"
|
|
|
|
|
|
2017-08-24 01:14:39 -04:00
|
|
|
|
2017-09-30 16:56:38 -04:00
|
|
|
hard_disk_t hdd[HDD_NUM];
|