Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Nov 1998 19:50:31 +1030
From:      Greg Lehey <grog@lemis.com>
To:        npe@bfc.dk, freebsd-current@FreeBSD.ORG
Subject:   Re: Porting driver from 2.2.x to 3.0-x
Message-ID:  <19981125195031.R67961@freebie.lemis.com>
In-Reply-To: <412566C7.002B3390.00@bfc.dk>; from npe@bfc.dk on Wed, Nov 25, 1998 at 08:56:01AM %2B0100
References:  <412566C7.002B3390.00@bfc.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, 25 November 1998 at  8:56:01 +0100, npe@bfc.dk wrote:
> I'm currently trying to port the Compaq SmartRaid driver to 3.0 and is
> almost done (with a limited version!) but my problem is that the
> buf->b_un.??? does not exist in 3.0... Is the buf structs totally rewritten
> or is it just a matter of names ??

Do a diff: it shows

-       struct {
-               caddr_t b_addr;         /* Memory, superblocks, indirect etc. */
-       } b_un;
+       caddr_t b_data;                 /* Memory, superblocks, indirect etc. */

In other words, b_data is your friend.  Previously it was defined like
this:

-/* Device driver compatibility definitions. */
-#define        b_data   b_un.b_addr            /* b_un.b_addr is not changeable. */

Can you send me more details of the driver (offline if necessary)?

Greg
--
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



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