fetchop.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  *
  3.  * This file is subject to the terms and conditions of the GNU General Public
  4.  * License.  See the file "COPYING" in the main directory of this archive
  5.  * for more details.
  6.  *
  7.  * Copyright (c) 2001-2002 Silicon Graphics, Inc.  All rights reserved.
  8.  */
  9. #ifndef _ASM_IA64_SN_FETCHOP_H
  10. #define _ASM_IA64_SN_FETCHOP_H
  11. #define FETCHOP_BASENAME "sgi_fetchop"
  12. #define FETCHOP_FULLNAME "/dev/sgi_fetchop"
  13. #define FETCHOP_VAR_SIZE 64 /* 64 byte per fetchop variable */
  14. #define FETCHOP_LOAD 0
  15. #define FETCHOP_INCREMENT 8
  16. #define FETCHOP_DECREMENT 16
  17. #define FETCHOP_CLEAR 24
  18. #define FETCHOP_STORE 0
  19. #define FETCHOP_AND 24
  20. #define FETCHOP_OR 32
  21. #define FETCHOP_CLEAR_CACHE 56
  22. #define FETCHOP_LOAD_OP(addr, op) ( 
  23.          *(long *)((char*) (addr) + (op)))
  24. #define FETCHOP_STORE_OP(addr, op, x) ( 
  25.          *(long *)((char*) (addr) + (op)) = 
  26.               (long) (x))
  27. #endif /* _ASM_IA64_SN_FETCHOP_H */