filename | src/gdrom/gdrom.h |
changeset | 125:49bf45f8210a |
next | 138:afabd7e6d26d |
author | nkeynes |
date | Wed Mar 22 14:29:02 2006 +0000 (18 years ago) |
permissions | -rw-r--r-- |
last change | Rename IDE DMA registers appropriately Remove forced irq hack Add correct irq handling for IDE Miscellaneous WIP for the GD-rom drive |
view | annotate | diff | log | raw |
1 /**
2 * $Id: gdrom.h,v 1.1 2006-03-22 14:29:02 nkeynes Exp $
3 *
4 * This file defines the structures and functions used by the GD-Rom
5 * disc driver. (ie, the modules that supply a CD image to be used by the
6 * system).
7 *
8 * Copyright (c) 2005 Nathan Keynes.
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 */
21 #ifndef dream_gdrom_H
22 #define dream_gdrom_H 1
24 #include "dream.h"
26 typedef struct gdrom_toc {
27 uint32_t tracks[99];
28 uint32_t first, last, leadout;
29 } *gdrom_toc_t;
32 typedef struct gdrom_disc {
34 gboolean (*read_toc)( gdrom_toc_t toc );
36 gboolean (*read_data_sectors)( uint32_t lba, uint32_t sector_count,
37 char *buf );
38 } *gdrom_disc_t;
40 void gdrom_mount( gdrom_disc_t disc );
42 void gdrom_unmount( void );
44 #endif
.