1 /*
2  * hw_defs.h
3  *
4  * DSP-BIOS Bridge driver support functions for TI OMAP processors.
5  *
6  * Global HW definitions
7  *
8  * Copyright (C) 2007 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 _HW_DEFS_H
20 #define _HW_DEFS_H
21 
22 /* Page size */
23 #define HW_PAGE_SIZE4KB   0x1000
24 #define HW_PAGE_SIZE64KB  0x10000
25 #define HW_PAGE_SIZE1MB   0x100000
26 #define HW_PAGE_SIZE16MB  0x1000000
27 
28 /* hw_status:  return type for HW API */
29 typedef long hw_status;
30 
31 /*  Macro used to set and clear any bit */
32 #define HW_CLEAR	0
33 #define HW_SET		1
34 
35 /* hw_endianism_t:  Enumerated Type used to specify the endianism
36  *		Do NOT change these values. They are used as bit fields. */
37 enum hw_endianism_t {
38 	HW_LITTLE_ENDIAN,
39 	HW_BIG_ENDIAN
40 };
41 
42 /* hw_element_size_t:  Enumerated Type used to specify the element size
43  *		Do NOT change these values. They are used as bit fields. */
44 enum hw_element_size_t {
45 	HW_ELEM_SIZE8BIT,
46 	HW_ELEM_SIZE16BIT,
47 	HW_ELEM_SIZE32BIT,
48 	HW_ELEM_SIZE64BIT
49 };
50 
51 /* hw_idle_mode_t:  Enumerated Type used to specify Idle modes */
52 enum hw_idle_mode_t {
53 	HW_FORCE_IDLE,
54 	HW_NO_IDLE,
55 	HW_SMART_IDLE
56 };
57 
58 #endif /* _HW_DEFS_H */
59