Path: blob/master/drivers/infiniband/hw/ehca/hipz_fns.h
15112 views
/*1* IBM eServer eHCA Infiniband device driver for Linux on POWER2*3* HW abstraction register functions4*5* Authors: Christoph Raisch <[email protected]>6* Reinhard Ernst <[email protected]>7*8* Copyright (c) 2005 IBM Corporation9*10* All rights reserved.11*12* This source code is distributed under a dual license of GPL v2.0 and OpenIB13* BSD.14*15* OpenIB BSD License16*17* Redistribution and use in source and binary forms, with or without18* modification, are permitted provided that the following conditions are met:19*20* Redistributions of source code must retain the above copyright notice, this21* list of conditions and the following disclaimer.22*23* Redistributions in binary form must reproduce the above copyright notice,24* this list of conditions and the following disclaimer in the documentation25* and/or other materials26* provided with the distribution.27*28* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"29* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE30* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE31* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE32* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR33* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF34* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR35* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER36* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)37* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE38* POSSIBILITY OF SUCH DAMAGE.39*/4041#ifndef __HIPZ_FNS_H__42#define __HIPZ_FNS_H__4344#include "ehca_classes.h"45#include "hipz_hw.h"4647#include "hipz_fns_core.h"4849#define hipz_galpa_store_eq(gal, offset, value) \50hipz_galpa_store(gal, EQTEMM_OFFSET(offset), value)5152#define hipz_galpa_load_eq(gal, offset) \53hipz_galpa_load(gal, EQTEMM_OFFSET(offset))5455#define hipz_galpa_store_qped(gal, offset, value) \56hipz_galpa_store(gal, QPEDMM_OFFSET(offset), value)5758#define hipz_galpa_load_qped(gal, offset) \59hipz_galpa_load(gal, QPEDMM_OFFSET(offset))6061#define hipz_galpa_store_mrmw(gal, offset, value) \62hipz_galpa_store(gal, MRMWMM_OFFSET(offset), value)6364#define hipz_galpa_load_mrmw(gal, offset) \65hipz_galpa_load(gal, MRMWMM_OFFSET(offset))6667#endif686970