From 27292ea9e4da231ff24012ab51396d0af6602dc0 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Thu, 30 Dec 2004 07:43:10 +0000 Subject: fix for some archs that don't like unaligned accesses, eg sparc64 and alpha ok jsg@ --- sys/dev/usb/if_udavreg.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sys/dev/usb/if_udavreg.h') diff --git a/sys/dev/usb/if_udavreg.h b/sys/dev/usb/if_udavreg.h index 6dff5f17762..4179a6aed5a 100644 --- a/sys/dev/usb/if_udavreg.h +++ b/sys/dev/usb/if_udavreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_udavreg.h,v 1.1 2004/10/05 02:01:18 jsg Exp $ */ +/* $OpenBSD: if_udavreg.h,v 1.2 2004/12/30 07:43:09 dlg Exp $ */ /* $NetBSD: if_udavreg.h,v 1.2 2003/09/04 15:17:39 tsutsui Exp $ */ /* $nabe: if_udavreg.h,v 1.2 2003/08/21 16:26:40 nabe Exp $ */ /* @@ -212,3 +212,10 @@ struct udav_softc { u_int16_t sc_flags; }; + +struct udav_rx_hdr { + uByte pktstat; + uWord length; +} UPACKED; +#define UDAV_RX_HDRLEN sizeof(struct udav_rx_hdr) + -- cgit v1.2.3