From owner-freebsd-current Wed Nov 25 01:20:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA13719 for freebsd-current-outgoing; Wed, 25 Nov 1998 01:20:52 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA13714 for ; Wed, 25 Nov 1998 01:20:48 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id TAA17152; Wed, 25 Nov 1998 19:50:31 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id TAA10894; Wed, 25 Nov 1998 19:50:31 +1030 (CST) Message-ID: <19981125195031.R67961@freebie.lemis.com> Date: Wed, 25 Nov 1998 19:50:31 +1030 From: Greg Lehey To: npe@bfc.dk, freebsd-current@FreeBSD.ORG Subject: Re: Porting driver from 2.2.x to 3.0-x References: <412566C7.002B3390.00@bfc.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <412566C7.002B3390.00@bfc.dk>; from npe@bfc.dk on Wed, Nov 25, 1998 at 08:56:01AM +0100 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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