]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - arch/sparc/include/asm/adi_64.h
1 /* adi_64.h: ADI related data structures
3 * Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved.
4 * Author: Khalid Aziz (khalid.aziz@oracle.com)
6 * This work is licensed under the terms of the GNU GPL, version 2.
8 #ifndef __ASM_SPARC64_ADI_H
9 #define __ASM_SPARC64_ADI_H
11 #include <linux/types.h>
26 extern struct adi_config adi_state
;
28 extern void mdesc_adi_init(void);
30 static inline bool adi_capable(void)
32 return adi_state
.enabled
;
35 static inline unsigned long adi_blksize(void)
37 return adi_state
.caps
.blksz
;
40 static inline unsigned long adi_nbits(void)
42 return adi_state
.caps
.nbits
;
45 #endif /* __ASSEMBLY__ */
47 #endif /* !(__ASM_SPARC64_ADI_H) */