Search
lxdream.org :: lxdream/src/gdrom/gdrom.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/gdrom.h
changeset 125:49bf45f8210a
next138:afabd7e6d26d
author nkeynes
date Thu Mar 30 11:26:45 2006 +0000 (18 years ago)
permissions -rw-r--r--
last change Treat the 0x11000000 region as write-only texture ram (appears to be correct)
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/gdrom/gdrom.h Thu Mar 30 11:26:45 2006 +0000
1.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-Rom
1.8 + * disc driver. (ie, the modules that supply a CD image to be used by the
1.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 modify
1.14 + * it under the terms of the GNU General Public License as published by
1.15 + * the Free Software Foundation; either version 2 of the License, or
1.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 of
1.20 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.21 + * GNU General Public License for more details.
1.22 + */
1.23 +
1.24 +#ifndef dream_gdrom_H
1.25 +#define dream_gdrom_H 1
1.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
.