GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / drivers / staging / tidspbridge / hw / hw_defs.h
blobd5266d4c163f253404d9fde49ad6732cf4623530
1 /*
2 * hw_defs.h
4 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
6 * Global HW definitions
8 * Copyright (C) 2007 Texas Instruments, Inc.
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.
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.
19 #ifndef _HW_DEFS_H
20 #define _HW_DEFS_H
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
28 /* hw_status: return type for HW API */
29 typedef long hw_status;
31 /* Macro used to set and clear any bit */
32 #define HW_CLEAR 0
33 #define HW_SET 1
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
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
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
58 #endif /* _HW_DEFS_H */