summaryrefslogtreecommitdiffstats
path: root/hwaccess.h
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2010-03-13 17:28:29 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2010-03-13 17:28:29 +0000
commitcc26e7ffa8ae981f2ecde1d979534020ebdcd565 (patch)
tree76c0a1816f51012775006aa8c82bdfe78901b5ab /hwaccess.h
parent353e4cab1e482cbe99572b6c002755242e2ee2bc (diff)
downloadflashrom-cc26e7ffa8ae981f2ecde1d979534020ebdcd565.zip
flashrom-cc26e7ffa8ae981f2ecde1d979534020ebdcd565.tar.gz
Various coding style and cosmetic changes
- Fix coding-style, whitespace, and indentation in a few places. - Consistently use the same spelling ("Super I/O") everywhere. - Make some flashrom stdout output look a bit nicer. Corresponding to flashrom svn r933. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'hwaccess.h')
-rw-r--r--hwaccess.h23
1 files changed, 9 insertions, 14 deletions
diff --git a/hwaccess.h b/hwaccess.h
index 89469b0..06817ab 100644
--- a/hwaccess.h
+++ b/hwaccess.h
@@ -15,8 +15,9 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
- *
+ */
+
+/*
* Header file for hardware access and OS abstraction. Included from flash.h.
*/
@@ -89,42 +90,36 @@
#endif
#include <stdint.h>
-static inline void
-outb(uint8_t value, uint16_t port)
+static inline void outb(uint8_t value, uint16_t port)
{
asm volatile ("outb %b0,%w1": :"a" (value), "Nd" (port));
}
-static inline uint8_t
-inb(uint16_t port)
+static inline uint8_t inb(uint16_t port)
{
uint8_t value;
asm volatile ("inb %w1,%0":"=a" (value):"Nd" (port));
return value;
}
-static inline void
-outw(uint16_t value, uint16_t port)
+static inline void outw(uint16_t value, uint16_t port)
{
asm volatile ("outw %w0,%w1": :"a" (value), "Nd" (port));
}
-static inline uint16_t
-inw(uint16_t port)
+static inline uint16_t inw(uint16_t port)
{
uint16_t value;
asm volatile ("inw %w1,%0":"=a" (value):"Nd" (port));
return value;
}
-static inline void
-outl(uint32_t value, uint16_t port)
+static inline void outl(uint32_t value, uint16_t port)
{
asm volatile ("outl %0,%w1": :"a" (value), "Nd" (port));
}
-static inline uint32_t
-inl(uint16_t port)
+static inline uint32_t inl(uint16_t port)
{
uint32_t value;
asm volatile ("inl %1,%0":"=a" (value):"Nd" (port));
OpenPOWER on IntegriCloud