aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pti.h
blob: c7727b2db0836a7d5a0d0f1e3f1d7167c544cbdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 *  Copyright (C) Intel 2010
 *  Ken Mills <ken.k.mills@intel.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
 * USA
 *
 */

#ifndef PTI_H_
#define PTI_H_

/* basic structure used as a write address to the PTI HW */
struct masterchannel {
   u8 master;
   u8 channel;
};

/* the following functions are defined in misc/pti.c */
void mipi_pti_writedata(struct masterchannel *mc, u8 *cp, int count);
struct masterchannel *mipi_request_masterchannel(u8 kerneluser);
void mipi_release_masterchannel(struct masterchannel *mc);

#define APERTURE_14 0x3800000
#define APERTURE_LEN 0x400000

#endif /*PTI_H_*/