forked from mirrors/linux
		
	 d5812571f5
			
		
	
	
		d5812571f5
		
	
	
	
	
		
			
			Some platforms support using a doorbell to communicate. Export this feature for other drivers to utilize as well. Link: https://lore.kernel.org/linux-i2c/20220916131854.687371-3-jsd@semihalf.com/ Suggested-by: Jan Dabros <jsd@semihalf.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			697 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			697 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0-only */
 | |
| 
 | |
| #ifndef __PSP_H
 | |
| #define __PSP_H
 | |
| 
 | |
| #ifdef CONFIG_X86
 | |
| #include <linux/mem_encrypt.h>
 | |
| 
 | |
| #define __psp_pa(x)	__sme_pa(x)
 | |
| #else
 | |
| #define __psp_pa(x)	__pa(x)
 | |
| #endif
 | |
| 
 | |
| /*
 | |
|  * Fields and bits used by most PSP mailboxes
 | |
|  *
 | |
|  * Note: Some mailboxes (such as SEV) have extra bits or different meanings
 | |
|  * and should include an appropriate local definition in their source file.
 | |
|  */
 | |
| #define PSP_CMDRESP_STS		GENMASK(15, 0)
 | |
| #define PSP_CMDRESP_CMD		GENMASK(23, 16)
 | |
| #define PSP_CMDRESP_RESERVED	GENMASK(29, 24)
 | |
| #define PSP_CMDRESP_RECOVERY	BIT(30)
 | |
| #define PSP_CMDRESP_RESP	BIT(31)
 | |
| 
 | |
| #define PSP_DRBL_MSG		PSP_CMDRESP_CMD
 | |
| #define PSP_DRBL_RING		BIT(0)
 | |
| 
 | |
| #endif /* __PSP_H */
 |