Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Feb 2008 22:25:13 GMT
From:      "Randall R. Stewart" <rrs@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 135845 for review
Message-ID:  <200802202225.m1KMPDJc009460@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=135845

Change 135845 by rrs@rrs-mips2-jnpr on 2008/02/20 22:24:36

	get rid of // and fix byteswap bug 

Affected files ...

.. //depot/projects/mips2-jnpr/src/sys/mips/mips32/octeon32/octeon_ebt3000_cf.c#2 edit

Differences ...

==== //depot/projects/mips2-jnpr/src/sys/mips/mips32/octeon32/octeon_ebt3000_cf.c#2 (text+ko) ====

@@ -101,7 +101,7 @@
 #define NR_TRIES		1000
 #define SWAP_SHORT(x)		((x << 8) | (x >> 8))
 #define SWAP_LONG(x)		(((x << 24) & 0xFF000000) | ((x <<  8) & 0x00FF0000) | \
-				 ((x >> 8) & 0x0000FF00)  | ((x << 24) & 0x000000FF) )
+				 ((x >> 8) & 0x0000FF00)  | ((x >> 24) & 0x000000FF) )
 #define MODEL_STR_SIZE		40
 
 
@@ -238,7 +238,7 @@
 	uint16_t *ptr_16;
 	uint8_t  *ptr_8;
 
-//#define OCTEON_VISUAL_CF_0 1
+	/*#define OCTEON_VISUAL_CF_0 1*/
 #ifdef OCTEON_VISUAL_CF_0
         octeon_led_write_char(0, 'R');
 #endif
@@ -290,7 +290,7 @@
 	uint16_t *ptr_16;
 	uint8_t  *ptr_8;
 	
-//#define OCTEON_VISUAL_CF_1 1
+	/*#define OCTEON_VISUAL_CF_1 1*/
 #ifdef OCTEON_VISUAL_CF_1
         octeon_led_write_char(1, 'W');
 #endif
@@ -392,7 +392,7 @@
 
 	cf_swap_ascii(drive_param.u.driveid.model, drive_param.model);
 
-	drive_param.sector_size =  512;   //=  SWAP_SHORT (drive_param.u.driveid.sector_bytes);
+	drive_param.sector_size =  512;   /*  SWAP_SHORT (drive_param.u.driveid.sector_bytes); */
 	drive_param.heads 	=  SWAP_SHORT (drive_param.u.driveid.cur_heads);
 	drive_param.tracks	=  SWAP_SHORT (drive_param.u.driveid.cur_cyls); 
 	drive_param.sec_track   =  SWAP_SHORT (drive_param.u.driveid.cur_sectors);
@@ -461,7 +461,7 @@
 {
 	uint8_t status;
 
-//#define OCTEON_VISUAL_CF_2 1
+	/*#define OCTEON_VISUAL_CF_2 1*/
 #ifdef OCTEON_VISUAL_CF_2
         static int where0 = 0;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802202225.m1KMPDJc009460>