mirror of
https://github.com/vivier/EMILE.git
synced 2024-11-16 04:05:53 +00:00
26 lines
604 B
C
26 lines
604 B
C
/*
|
|
*
|
|
* (c) 2005 Laurent Vivier <Laurent@lvivier.info>
|
|
*
|
|
*/
|
|
#ifndef __LIBFLOPY_H__
|
|
#define __LIBFLOPY_H__
|
|
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
|
|
#define SECTOR_SIZE_BITS 9
|
|
#define SECTOR_SIZE (1 << (SECTOR_SIZE_BITS))
|
|
#define SECTOR_PER_TRACK 18
|
|
#define SIDE_NB 2
|
|
|
|
typedef struct {
|
|
int unit;
|
|
} floppy_device_t;
|
|
|
|
extern floppy_device_t *floppy_open(int unit);
|
|
extern int floppy_close(floppy_device_t* device);
|
|
extern int floppy_read_sector(floppy_device_t *device,off_t offset, void* buffer, size_t size);
|
|
extern int floppy_get_blocksize(floppy_device_t *device);
|
|
#endif /* __LIBFLOPY_H__ */
|