/* shmobile-ipmmu.h * * Copyright (C) 2012 Hideki EIRAKU * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. */#ifndef __SHMOBILE_IPMMU_H__#define __SHMOBILE_IPMMU_H__structshmobile_ipmmu{structdevice*dev;void__iomem*ipmmu_base;inttlb_enabled;spinlock_tflush_lock;constchar*const*dev_names;unsignedintnum_dev_names;};#ifdef CONFIG_SHMOBILE_IPMMU_TLBvoidipmmu_tlb_flush(structshmobile_ipmmu*ipmmu);voidipmmu_tlb_set(structshmobile_ipmmu*ipmmu,unsignedlongphys,intsize,intasid);intipmmu_iommu_init(structshmobile_ipmmu*ipmmu);#elsestaticinlineintipmmu_iommu_init(structshmobile_ipmmu*ipmmu){return-EINVAL;}#endif#endif /* __SHMOBILE_IPMMU_H__ */