blob: 54a0a9582fad0ad6ebc2e8914b9fba64738f9688 [file] [log] [blame]
Hiroshi DOYUa9dcad52009-01-26 15:13:40 +02001/*
2 * omap iommu: main structures
3 *
4 * Copyright (C) 2008-2009 Nokia Corporation
5 *
6 * Written by Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 */
12
Omar Ramirez Luna72b15b62012-11-19 19:05:50 -060013#include <linux/platform_device.h>
14
Tony Lindgrened1c7de2012-11-02 12:24:06 -070015#define MMU_REG_SIZE 256
Hiroshi DOYUa9dcad52009-01-26 15:13:40 +020016
Tony Lindgrened1c7de2012-11-02 12:24:06 -070017/**
18 * struct iommu_arch_data - omap iommu private data
19 * @name: name of the iommu device
20 * @iommu_dev: handle of the iommu device
21 *
22 * This is an omap iommu private data object, which binds an iommu user
23 * to its iommu device. This object should be placed at the iommu user's
24 * dev_archdata so generic IOMMU API can be used without having to
25 * utilize omap-specific plumbing anymore.
26 */
27struct omap_iommu_arch_data {
28 const char *name;
29 struct omap_iommu *iommu_dev;
Hiroshi DOYUa9dcad52009-01-26 15:13:40 +020030};
31
Paul Walmsley54864742012-09-23 17:28:23 -060032/**
33 * struct omap_mmu_dev_attr - OMAP mmu device attributes for omap_hwmod
Paul Walmsley54864742012-09-23 17:28:23 -060034 * @nr_tlb_entries: number of entries supported by the translation
35 * look-aside buffer (TLB).
36 */
37struct omap_mmu_dev_attr {
Paul Walmsley54864742012-09-23 17:28:23 -060038 int nr_tlb_entries;
39};
40
Hiroshi DOYUa9dcad52009-01-26 15:13:40 +020041struct iommu_platform_data {
42 const char *name;
Omar Ramirez Luna72b15b62012-11-19 19:05:50 -060043 const char *reset_name;
44 int nr_tlb_entries;
Omar Ramirez Luna72b15b62012-11-19 19:05:50 -060045
46 int (*assert_reset)(struct platform_device *pdev, const char *name);
47 int (*deassert_reset)(struct platform_device *pdev, const char *name);
Hiroshi DOYUa9dcad52009-01-26 15:13:40 +020048};