hw/sd.c: Add comment regarding CARD_STATUS_* defines
Add a clarifying comment about what the CARD_STATUS_[ABC] macros are defining. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
This commit is contained in:
		
							parent
							
								
									25881d3390
								
							
						
					
					
						commit
						b8d334c828
					
				
							
								
								
									
										5
									
								
								hw/sd.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								hw/sd.c
									
									
									
									
									
								
							@ -309,6 +309,11 @@ static void sd_set_rca(SDState *sd)
 | 
				
			|||||||
    sd->rca += 0x4567;
 | 
					    sd->rca += 0x4567;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* Card status bits, split by clear condition:
 | 
				
			||||||
 | 
					 * A : According to the card current state
 | 
				
			||||||
 | 
					 * B : Always related to the previous command
 | 
				
			||||||
 | 
					 * C : Cleared by read
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
#define CARD_STATUS_A	0x02004100
 | 
					#define CARD_STATUS_A	0x02004100
 | 
				
			||||||
#define CARD_STATUS_B	0x00c01e00
 | 
					#define CARD_STATUS_B	0x00c01e00
 | 
				
			||||||
#define CARD_STATUS_C	0xfd39a028
 | 
					#define CARD_STATUS_C	0xfd39a028
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user