blob: 5b32c905d948fd1774130e17bdbc590d7bf527a8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
// license:BSD-3-Clause
// copyright-holders:Aaron Giles
/***************************************************************************
harddisk.h
Generic MAME hard disk implementation, with differencing files
***************************************************************************/
#pragma once
#ifndef __HARDDISK_H__
#define __HARDDISK_H__
#include "osdcore.h"
#include "chd.h"
/***************************************************************************
TYPE DEFINITIONS
***************************************************************************/
struct hard_disk_file;
struct hard_disk_info
{
UINT32 cylinders;
UINT32 heads;
UINT32 sectors;
UINT32 sectorbytes;
};
/***************************************************************************
FUNCTION PROTOTYPES
***************************************************************************/
hard_disk_file *hard_disk_open(chd_file *chd);
void hard_disk_close(hard_disk_file *file);
chd_file *hard_disk_get_chd(hard_disk_file *file);
hard_disk_info *hard_disk_get_info(hard_disk_file *file);
UINT32 hard_disk_read(hard_disk_file *file, UINT32 lbasector, void *buffer);
UINT32 hard_disk_write(hard_disk_file *file, UINT32 lbasector, const void *buffer);
#endif /* __HARDDISK_H__ */
|