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

Side by Side Diff: hwaccess.c

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,2010 Carl-Daniel Hailfinger 4 * Copyright (C) 2009,2010 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; either version 2 of the License, or 8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version. 9 * (at your option) any later version.
10 * 10 *
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 /* PCI port I/O is not yet implemented on MIPS. */ 109 /* PCI port I/O is not yet implemented on MIPS. */
110 void get_io_perms(void) 110 void get_io_perms(void)
111 { 111 {
112 } 112 }
113 113
114 /* PCI port I/O is not yet implemented on MIPS. */ 114 /* PCI port I/O is not yet implemented on MIPS. */
115 void release_io_perms(void) 115 void release_io_perms(void)
116 { 116 {
117 } 117 }
118 118
119 #elif defined (__arm__)
120
121 static inline void sync_primitive(void)
122 {
123 }
124
125 void get_io_perms(void)
126 {
127 }
128
129 void release_io_perms(void)
130 {
131 }
132
119 #else 133 #else
120 134
121 #error Unknown architecture 135 #error Unknown architecture
122 136
123 #endif 137 #endif
124 138
125 void mmio_writeb(uint8_t val, void *addr) 139 void mmio_writeb(uint8_t val, void *addr)
126 { 140 {
127 *(volatile uint8_t *) addr = val; 141 *(volatile uint8_t *) addr = val;
128 sync_primitive(); 142 sync_primitive();
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 191
178 uint16_t mmio_le_readw(void *addr) 192 uint16_t mmio_le_readw(void *addr)
179 { 193 {
180 return le_to_cpu16(mmio_readw(addr)); 194 return le_to_cpu16(mmio_readw(addr));
181 } 195 }
182 196
183 uint32_t mmio_le_readl(void *addr) 197 uint32_t mmio_le_readl(void *addr)
184 { 198 {
185 return le_to_cpu32(mmio_readl(addr)); 199 return le_to_cpu32(mmio_readl(addr));
186 } 200 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698