Linux Audio

Check our new training course

Loading...
v3.15
 1/*
 
 2 * Copyright (C) 2000, 2001  Paolo Alberelli
 3 * Copyright (C) 2003  Paul Mundt
 4 * Copyright (C) 2004  Richard Curnow
 5 *
 6 * This file is subject to the terms and conditions of the GNU General Public
 7 * License.  See the file "COPYING" in the main directory of this archive
 8 * for more details.
 9 */
10#ifndef __ASM_SH_BL_BIT_64_H
11#define __ASM_SH_BL_BIT_64_H
12
13#include <asm/processor.h>
14
15#define SR_BL_LL	0x0000000010000000LL
16
17static inline void set_bl_bit(void)
18{
19	unsigned long long __dummy0, __dummy1 = SR_BL_LL;
20
21	__asm__ __volatile__("getcon	" __SR ", %0\n\t"
22			     "or	%0, %1, %0\n\t"
23			     "putcon	%0, " __SR "\n\t"
24			     : "=&r" (__dummy0)
25			     : "r" (__dummy1));
26
27}
28
29static inline void clear_bl_bit(void)
30{
31	unsigned long long __dummy0, __dummy1 = ~SR_BL_LL;
32
33	__asm__ __volatile__("getcon	" __SR ", %0\n\t"
34			     "and	%0, %1, %0\n\t"
35			     "putcon	%0, " __SR "\n\t"
36			     : "=&r" (__dummy0)
37			     : "r" (__dummy1));
38}
39
40#endif /* __ASM_SH_BL_BIT_64_H */
v5.4
 1/* SPDX-License-Identifier: GPL-2.0
 2 *
 3 * Copyright (C) 2000, 2001  Paolo Alberelli
 4 * Copyright (C) 2003  Paul Mundt
 5 * Copyright (C) 2004  Richard Curnow
 
 
 
 
 6 */
 7#ifndef __ASM_SH_BL_BIT_64_H
 8#define __ASM_SH_BL_BIT_64_H
 9
10#include <asm/processor.h>
11
12#define SR_BL_LL	0x0000000010000000LL
13
14static inline void set_bl_bit(void)
15{
16	unsigned long long __dummy0, __dummy1 = SR_BL_LL;
17
18	__asm__ __volatile__("getcon	" __SR ", %0\n\t"
19			     "or	%0, %1, %0\n\t"
20			     "putcon	%0, " __SR "\n\t"
21			     : "=&r" (__dummy0)
22			     : "r" (__dummy1));
23
24}
25
26static inline void clear_bl_bit(void)
27{
28	unsigned long long __dummy0, __dummy1 = ~SR_BL_LL;
29
30	__asm__ __volatile__("getcon	" __SR ", %0\n\t"
31			     "and	%0, %1, %0\n\t"
32			     "putcon	%0, " __SR "\n\t"
33			     : "=&r" (__dummy0)
34			     : "r" (__dummy1));
35}
36
37#endif /* __ASM_SH_BL_BIT_64_H */