From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kl2Rz-0007T7-8D for qemu-devel@nongnu.org; Wed, 01 Oct 2008 10:13:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kl2Rv-0007Qr-U4 for qemu-devel@nongnu.org; Wed, 01 Oct 2008 10:13:08 -0400 Received: from [199.232.76.173] (port=34010 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kl2Ru-0007Pe-F4 for qemu-devel@nongnu.org; Wed, 01 Oct 2008 10:13:06 -0400 Received: from mx1.redhat.com ([66.187.233.31]:42799) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kl2Ru-0006Gv-2e for qemu-devel@nongnu.org; Wed, 01 Oct 2008 10:13:06 -0400 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m91ED08G007871 for ; Wed, 1 Oct 2008 10:13:00 -0400 From: Gerd Hoffmann Date: Wed, 1 Oct 2008 16:12:52 +0200 Message-Id: <1222870375-13489-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 1/4] add byteordered types to qemu. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- bswap.h | 7 +++++++ hw/usb-net.c | 2 -- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bswap.h b/bswap.h index 523d805..b294d96 100644 --- a/bswap.h +++ b/bswap.h @@ -206,4 +206,11 @@ static inline void cpu_to_be32wu(uint32_t *p, uint32_t v) #undef le_bswaps #undef be_bswaps +typedef uint16_t le16; +typedef uint32_t le32; +typedef uint64_t le64; +typedef uint16_t be16; +typedef uint32_t be32; +typedef uint64_t be64; + #endif /* BSWAP_H */ diff --git a/hw/usb-net.c b/hw/usb-net.c index 82005af..569cd7d 100644 --- a/hw/usb-net.c +++ b/hw/usb-net.c @@ -326,8 +326,6 @@ enum { #define OID_PNP_REMOVE_WAKE_UP_PATTERN 0xfd010104 #define OID_PNP_ENABLE_WAKE_UP 0xfd010106 -typedef uint32_t le32; - typedef struct rndis_init_msg_type { le32 MessageType; le32 MessageLength; -- 1.5.5.1