upload tizen1.0 source
[kernel/linux-2.6.36.git] / drivers / staging / tidspbridge / include / dspbridge / utildefs.h
1 /*
2  * utildefs.h
3  *
4  * DSP-BIOS Bridge driver support functions for TI OMAP processors.
5  *
6  * Global UTIL constants and types, shared between DSP API and DSPSYS.
7  *
8  * Copyright (C) 2005-2006 Texas Instruments, Inc.
9  *
10  * This package is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License version 2 as
12  * published by the Free Software Foundation.
13  *
14  * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17  */
18
19 #ifndef UTILDEFS_
20 #define UTILDEFS_
21
22 /* constants taken from configmg.h */
23 #define UTIL_MAXMEMREGS     9
24 #define UTIL_MAXIOPORTS     20
25 #define UTIL_MAXIRQS        7
26 #define UTIL_MAXDMACHNLS    7
27
28 /* misc. constants */
29 #define UTIL_MAXARGVS       10
30
31 /* Platform specific important info */
32 struct util_sysinfo {
33         /* Granularity of page protection; usually 1k or 4k */
34         u32 dw_page_size;
35         u32 dw_allocation_granularity;  /* VM granularity, usually 64K */
36         u32 dw_number_of_processors;    /* Used as sanity check */
37 };
38
39 #endif /* UTILDEFS_ */