root/arch/riscv/include/asm/spinlock_types.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* SPDX-License-Identifier: GPL-2.0-only */
   2 /*
   3  * Copyright (C) 2015 Regents of the University of California
   4  */
   5 
   6 #ifndef _ASM_RISCV_SPINLOCK_TYPES_H
   7 #define _ASM_RISCV_SPINLOCK_TYPES_H
   8 
   9 #ifndef __LINUX_SPINLOCK_TYPES_H
  10 # error "please don't include this file directly"
  11 #endif
  12 
  13 typedef struct {
  14         volatile unsigned int lock;
  15 } arch_spinlock_t;
  16 
  17 #define __ARCH_SPIN_LOCK_UNLOCKED       { 0 }
  18 
  19 typedef struct {
  20         volatile unsigned int lock;
  21 } arch_rwlock_t;
  22 
  23 #define __ARCH_RW_LOCK_UNLOCKED         { 0 }
  24 
  25 #endif

/* [<][>][^][v][top][bottom][index][help] */