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 |
file | annotate | diff | log | raw |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/src/gdrom/gdrom.h Wed Mar 22 14:29:02 2006 +00001.3 @@ -0,0 +1,44 @@1.4 +/**1.5 + * $Id: gdrom.h,v 1.1 2006-03-22 14:29:02 nkeynes Exp $1.6 + *1.7 + * This file defines the structures and functions used by the GD-Rom1.8 + * disc driver. (ie, the modules that supply a CD image to be used by the1.9 + * system).1.10 + *1.11 + * Copyright (c) 2005 Nathan Keynes.1.12 + *1.13 + * This program is free software; you can redistribute it and/or modify1.14 + * it under the terms of the GNU General Public License as published by1.15 + * the Free Software Foundation; either version 2 of the License, or1.16 + * (at your option) any later version.1.17 + *1.18 + * This program is distributed in the hope that it will be useful,1.19 + * but WITHOUT ANY WARRANTY; without even the implied warranty of1.20 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1.21 + * GNU General Public License for more details.1.22 + */1.23 +1.24 +#ifndef dream_gdrom_H1.25 +#define dream_gdrom_H 11.26 +1.27 +#include "dream.h"1.28 +1.29 +typedef struct gdrom_toc {1.30 + uint32_t tracks[99];1.31 + uint32_t first, last, leadout;1.32 +} *gdrom_toc_t;1.33 +1.34 +1.35 +typedef struct gdrom_disc {1.36 +1.37 + gboolean (*read_toc)( gdrom_toc_t toc );1.38 +1.39 + gboolean (*read_data_sectors)( uint32_t lba, uint32_t sector_count,1.40 + char *buf );1.41 +} *gdrom_disc_t;1.42 +1.43 +void gdrom_mount( gdrom_disc_t disc );1.44 +1.45 +void gdrom_unmount( void );1.46 +1.47 +#endif
.