Author: stepan Date: 2009-11-19 14:06:33 +0100 (Thu, 19 Nov 2009) New Revision: 49
Modified: trunk/SerialICE/io.h trunk/SerialICE/types.h Log: Drop all occurences of uintXX_t types; only stick to uXX types instead. (consistency patch)
Modified: trunk/SerialICE/io.h =================================================================== --- trunk/SerialICE/io.h 2009-11-19 13:05:10 UTC (rev 48) +++ trunk/SerialICE/io.h 2009-11-19 13:06:33 UTC (rev 49) @@ -82,38 +82,38 @@ return __builtin_inl(port); } #else -static inline void outb(uint8_t value, uint16_t port) +static inline void outb(u8 value, u16 port) { __asm__ __volatile__("outb %b0, %w1"::"a"(value), "Nd"(port)); }
-static inline void outw(uint16_t value, uint16_t port) +static inline void outw(u16 value, u16 port) { __asm__ __volatile__("outw %w0, %w1"::"a"(value), "Nd"(port)); }
-static inline void outl(uint32_t value, uint16_t port) +static inline void outl(u32 value, u16 port) { __asm__ __volatile__("outl %0, %w1"::"a"(value), "Nd"(port)); }
-static inline uint8_t inb(uint16_t port) +static inline u8 inb(u16 port) { - uint8_t value; + u8 value; __asm__ __volatile__("inb %w1, %b0":"=a"(value): "Nd"(port)); return value; }
-static inline uint16_t inw(uint16_t port) +static inline u16 inw(u16 port) { - uint16_t value; + u16 value; __asm__ __volatile__("inw %w1, %w0":"=a"(value): "Nd"(port)); return value; }
-static inline uint32_t inl(uint16_t port) +static inline u32 inl(u16 port) { - uint32_t value; + u32 value; __asm__ __volatile__("inl %w1, %0":"=a"(value): "Nd"(port)); return value; } @@ -122,7 +122,7 @@ /* MSR functions */
#ifdef __GNUC__ -typedef struct { uint32_t lo, hi; } msr_t; +typedef struct { u32 lo, hi; } msr_t;
static inline msr_t rdmsr(unsigned index) {
Modified: trunk/SerialICE/types.h =================================================================== --- trunk/SerialICE/types.h 2009-11-19 13:05:10 UTC (rev 48) +++ trunk/SerialICE/types.h 2009-11-19 13:06:33 UTC (rev 49) @@ -17,11 +17,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
-typedef unsigned char uint8_t; -typedef unsigned short uint16_t; -typedef unsigned int uint32_t; +typedef unsigned char u8; +typedef unsigned short u16; +typedef unsigned int u32;
-typedef uint8_t u8; -typedef uint16_t u16; -typedef uint32_t u32; -