1 /*
2  * OpenBOR - http://www.LavaLit.com
3  * -----------------------------------------------------------------------
4  * Licensed under the BSD license, see LICENSE in OpenBOR root for details.
5  *
6  * Copyright (c) 2004 - 2011 OpenBOR Team
7  */
8 
9 #ifndef GDROM_H
10 #define GDROM_H
11 
12 //
13 // Initialize gdrom system
14 // returns the starting LBA of the main data track
15 //
16 int gdrom_init(void);
17 
18 //
19 // Blocks until the prior read is done (you can ensure it won't block if you
20 // check gdrom_poll yourself), and then queues up a new read
21 //
22 void gdrom_readsectors(void *dest, int lba, int num);
23 
24 //
25 // Returns nonzero if busy
26 //
27 int gdrom_poll(void);
28 
29 #endif
30