Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jan 2009 16:05:40 +0800
From:      "Shaowei Wang (wsw)" <wsw1wsw2@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   A patch of HPTIOP driver for 7.1-RELEASE
Message-ID:  <2e566b9e0901070005s630c2212k44a0e59a1bcf69aa@mail.gmail.com>

next in thread | raw e-mail | index | archive | help

Hi, guys

hptiop driver in the 7.1 release has a little bug.
Because this issue the Raid-manage GUI program which we provided can NOT
work anymore.

So we give the patch:

Index: hptiop.h
===================================================================
--- hptiop.h    (revision 186851)
+++ hptiop.h    (working copy)
@@ -260,7 +260,7 @@
     unsigned long    lpOutBuffer;           /* output data buffer */
     u_int32_t        nOutBufferSize;        /* size of output data buffer
*/
     unsigned long    lpBytesReturned;       /* count of HPT_U8s returned */
-};
+}__attribute__((packed));

 #define HPT_IOCTL_FLAG_OPEN 1
 #define HPT_CTL_CODE_BSD_TO_IOP(x) ((x)-0xff00)

====================================================================

-wsw

/************************************************************************/

大家好:

hptiop的驱动在7.1发行版中有个小错误。
这个小错误导致了我们提供的阵列管理程序无法运行。

我们给出了补丁:

Index: hptiop.h
===================================================================
--- hptiop.h    (revision 186851)
+++ hptiop.h    (working copy)
@@ -260,7 +260,7 @@
     unsigned long    lpOutBuffer;           /* output data buffer */
     u_int32_t        nOutBufferSize;        /* size of output data buffer
*/
     unsigned long    lpBytesReturned;       /* count of HPT_U8s returned */
-};
+}__attribute__((packed));

 #define HPT_IOCTL_FLAG_OPEN 1
 #define HPT_CTL_CODE_BSD_TO_IOP(x) ((x)-0xff00)

====================================================================

-wsw


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2e566b9e0901070005s630c2212k44a0e59a1bcf69aa>