From e7bc4db23f5570c9092d5af4c90f584d31f8d9c2 Mon Sep 17 00:00:00 2001 From: uwe Date: Sat, 13 Mar 2010 17:28:29 +0000 Subject: Various coding style and cosmetic changes (trivial). - 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. Signed-off-by: Uwe Hermann Acked-by: Uwe Hermann git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@933 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- hwaccess.h | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'hwaccess.h') 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 -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)); -- cgit v1.2.1