From owner-freebsd-mobile Sat May 6 16:51:24 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 663DA37B68A for ; Sat, 6 May 2000 16:51:19 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id RAA38008; Sat, 6 May 2000 17:51:17 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id RAA67277; Sat, 6 May 2000 17:51:08 -0600 (MDT) Message-Id: <200005062351.RAA67277@harmony.village.org> To: Duncan Barclay Subject: Re: Xircom Realport in -current Cc: freebsd-mobile@freebsd.org In-reply-to: Your message of "Sat, 06 May 2000 22:17:15 BST." References: Date: Sat, 06 May 2000 17:51:08 -0600 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message Duncan Barclay writes: : I'm trying to get my Realport working with if_xe.c. I've got the cem56fix : re-written (it was actually easy) and the driver dances around abit trying to : find a phy but doesn't actually get one. : : I think that the problem is in the IO space allocation in xe_activate. In : cem56fix the IO address is written to a register on the card : : old: : xe_memwrite( scp->dev, DINGO_EBAR0, ioport & 0xff ); : xe_memwrite( scp->dev, DINGO_EBAR1, (ioport >> 8) & 0xff ); : my re-write: : bus_space_write_1(bst, bsh, DINGO_EBAR0, ioport & 0xff); : bus_space_write_1(bst, bsh, DINGO_EBAR1, (ioport >> 8) & 0xff); : : However, EBAR0 always has bits 3:0 set to 0. I need a 16bit aligned io port : from xe_activate. How do I do it? This space is different than bst and bsh. memwrite should use the atttribute space that's mapped to read the CIS. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message