H25868 s 00053/00000/00000 d D 1.1 02/03/13 20:31:05 patch 2 1 cC cF1 cK58993 cO-rw-rw-r-- e s 00000/00000/00000 d D 1.0 02/03/13 20:31:05 patch 1 0 c BitKeeper file /home/marcelo/bk/linux-2.4/include/asm-ia64/sn/sn_pio_sync.h cBtorvalds@athlon.transmeta.com|ChangeSet|20020205173056|16047|c1d11a41ed024864 cHplucky.distro.conectiva cK45405 cPinclude/asm-ia64/sn/sn_pio_sync.h cRf22379b649ec2a20 cV4 cX0x821 cZ-03:00 e u U f e 0 f x 0x821 t T I 2 /* * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2001-2002 Silicon Graphics, Inc. All rights reserved. */ #ifndef _ASM_IA64_SN_SN_PIO_WRITE_SYNC_H #define _ASM_IA64_SN_SN_PIO_WRITE_SYNC_H #include #ifdef CONFIG_IA64_SGI_SN2 #include #include #include #include /* * This macro flushes all outstanding PIOs performed by this cpu to the * intended destination SHUB. This in essence ensures that all PIO's * issues by this cpu has landed at it's destination. * * This macro expects the caller: * 1. The thread is locked. * 2. All prior PIO operations has been fenced with __ia64_mf_a(). * * The expectation is that get_slice() will return either 0 or 2. * When we have multi-core cpu's, the expectation is get_slice() will * return either 0,1 or 2,3. */ #define SN_PIO_WRITE_SYNC \ { \ volatile unsigned long sn_pio_writes_done; \ do { \ sn_pio_writes_done = (volatile unsigned long) (SH_PIO_WRITE_STATUS_0_WRITES_OK_MASK & HUB_L( (unsigned long *)GLOBAL_MMR_ADDR(get_nasid(), (get_slice() < 2) ? SH_PIO_WRITE_STATUS_0 : SH_PIO_WRITE_STATUS_1 ))); \ } while (!sn_pio_writes_done); \ __ia64_mf_a(); \ } #else /* * For all ARCHITECTURE type, this is a NOOP. */ #define SN_PIO_WRITE_SYNC #endif #endif /* _ASM_IA64_SN_SN_PIO_WRITE_SYNC_H */ E 2 I 1 E 1