Search
lxdream.org :: lxdream/src/gdrom/ide.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/ide.c
changeset 422:61a0598e07ff
prev342:850502f0e8de
next423:f92f80fe64da
author nkeynes
date Sat Oct 06 09:03:24 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Fix compilation warnings
file annotate diff log raw
1.1 --- a/src/gdrom/ide.c Wed Jan 31 10:58:42 2007 +0000
1.2 +++ b/src/gdrom/ide.c Sat Oct 06 09:03:24 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: ide.c,v 1.23 2007-01-31 10:58:42 nkeynes Exp $
1.6 + * $Id: ide.c,v 1.24 2007-10-06 08:58:00 nkeynes Exp $
1.7 *
1.8 * IDE interface implementation
1.9 *
1.10 @@ -25,6 +25,7 @@
1.11 #include <assert.h>
1.12 #include <stdlib.h>
1.13 #include "dream.h"
1.14 +#include "mem.h"
1.15 #include "asic.h"
1.16 #include "gdrom/ide.h"
1.17 #include "gdrom/gdrom.h"
1.18 @@ -172,7 +173,6 @@
1.19
1.20 static int ide_load_state( FILE *f )
1.21 {
1.22 - uint32_t length;
1.23 fread( &idereg, sizeof(idereg), 1, f );
1.24 fread( data_buffer, MAX_SECTOR_SIZE, 1, f );
1.25 return 0;
1.26 @@ -429,7 +429,7 @@
1.27 */
1.28 static void ide_read_next_sector( void )
1.29 {
1.30 - int sector_size;
1.31 + uint32_t sector_size;
1.32 REQUIRE_DISC();
1.33 gdrom_error_t status =
1.34 gdrom_disc->read_sector( gdrom_disc, idereg.read_lba, idereg.read_mode,
1.35 @@ -454,9 +454,8 @@
1.36 */
1.37 void ide_packet_command( unsigned char *cmd )
1.38 {
1.39 - uint32_t length, datalen;
1.40 + uint32_t length;
1.41 uint32_t lba, status;
1.42 - int mode;
1.43
1.44 /* Okay we have the packet in the command buffer */
1.45 INFO( "ATAPI packet: %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X",
.