Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Side by Side Diff: hwaccess.h

Issue 6731011: Add Tegra2 SPI controller. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/flashrom.git@master
Patch Set: refine comments Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * This file is part of the flashrom project. 2 * This file is part of the flashrom project.
3 * 3 *
4 * Copyright (C) 2009 Carl-Daniel Hailfinger 4 * Copyright (C) 2009 Carl-Daniel Hailfinger
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify 6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by 7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License. 8 * the Free Software Foundation; version 2 of the License.
9 * 9 *
10 * This program is distributed in the hope that it will be useful, 10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details. 13 * GNU General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU General Public License 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 16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */ 18 */
19 19
20 /* 20 /*
21 * Header file for hardware access and OS abstraction. Included from flash.h. 21 * Header file for hardware access and OS abstraction. Included from flash.h.
22 */ 22 */
23 23
24 #ifndef __HWACCESS_H__ 24 #ifndef __HWACCESS_H__
25 #define __HWACCESS_H__ 1 25 #define __HWACCESS_H__ 1
26 26
27 #if defined (__i386__) || defined (__x86_64__) 27 #if defined (__i386__) || defined (__x86_64__) || defined(__arm__)
28 #if defined(__GLIBC__) 28 #if defined(__GLIBC__)
29 #include <sys/io.h> 29 #include <sys/io.h>
30 #endif 30 #endif
31 #endif 31 #endif
32 32
33 #if NEED_PCI == 1 33 #if NEED_PCI == 1
34 /* 34 /*
35 * libpci headers use the variable name "index" which triggers shadowing 35 * libpci headers use the variable name "index" which triggers shadowing
36 * warnings on systems which have the index() function in a default #include 36 * warnings on systems which have the index() function in a default #include
37 * or as builtin. 37 * or as builtin.
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 #endif 319 #endif
320 320
321 #elif defined(__powerpc__) || defined(__powerpc64__) || defined(__ppc__) || defi ned(__ppc64__) 321 #elif defined(__powerpc__) || defined(__powerpc64__) || defined(__ppc__) || defi ned(__ppc64__)
322 322
323 /* PCI port I/O is not yet implemented on PowerPC. */ 323 /* PCI port I/O is not yet implemented on PowerPC. */
324 324
325 #elif defined (__mips) || defined (__mips__) || defined (_mips) || defined (mips ) 325 #elif defined (__mips) || defined (__mips__) || defined (_mips) || defined (mips )
326 326
327 /* PCI port I/O is not yet implemented on MIPS. */ 327 /* PCI port I/O is not yet implemented on MIPS. */
328 328
329 #elif defined(__arm__)
330
331 /* Non memory mapped I/O is not supported on ARM. */
332
329 #else 333 #else
330 334
331 #error Unknown architecture, please check if it supports PCI port IO. 335 #error Unknown architecture, please check if it supports PCI port IO.
332 336
333 #endif 337 #endif
334 #endif 338 #endif
335 339
336 #endif /* !__HWACCESS_H__ */ 340 #endif /* !__HWACCESS_H__ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698