1 /* Cypress West Bridge API header file (cyastypes.h)
2 ## ===========================
3 ## Copyright (C) 2010 Cypress Semiconductor
5 ## This program is free software; you can redistribute it and/or
6 ## modify it under the terms of the GNU General Public License
7 ## as published by the Free Software Foundation; either version 2
8 ## of the License, or (at your option) any later version.
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ## GNU General Public License for more details.
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program; if not, write to the Free Software
17 ## Foundation, Inc., 51 Franklin Street
18 ## Fifth Floor, Boston, MA 02110-1301, USA.
19 ## ===========================
22 #ifndef _INCLUDED_CYASTYPES_H_
23 #define _INCLUDED_CYASTYPES_H_
24 /* moved to staging location, eventual implementation
26 #include <mach/westbridge/cyashaldef.h>
28 #include "../../../arch/arm/plat-omap/include/mach/westbridge/cyashaldef.h"
30 /* Types that are not available on specific platforms.
31 * These are used only in the reference HAL implementations and
32 * are not required for using the API.
35 typedef unsigned long DWORD;
38 #define INFINITE (0xFFFFFFFF)
39 #define ptr_to_uint(ptr) ((unsigned int)(ptr))
42 /* Basic types used by the entire API */
45 This type represents an endpoint number
47 typedef uint8_t cy_as_end_point_number_t;
50 This type is used to return status information from
53 typedef uint16_t cy_as_return_status_t;
56 This type represents a bus number
58 typedef uint32_t cy_as_bus_number_t;
61 All APIs provided with this release are marked extern
62 through this definition. This definition can be changed
63 to meet the scope changes required in the user build
66 For example, this can be changed to __declspec(exportdll)
67 to enable exporting the API from a DLL.