From owner-freebsd-new-bus Mon Aug 16 21:48:43 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 4D04114C87; Mon, 16 Aug 1999 21:48:34 -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 WAA41832; Mon, 16 Aug 1999 22:48:58 -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 WAA36373; Mon, 16 Aug 1999 22:49:42 -0600 (MDT) Message-Id: <199908170449.WAA36373@harmony.village.org> To: mobile@freebsd.org Cc: new-bus-arch@bostonradio.org, new-bus@freebsd.org Subject: New pccard kludge patches Date: Mon, 16 Aug 1999 22:49:42 -0600 From: Warner Losh Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [[ I've not seen any messages come back from new-bus@freebsd.org ]] I've uploaded a new set of patches to freefall. I've included the nexus.c patches which were required. I've also added probe messages. I use "pccard-xxxN" for the device name where xxx is the name in the pccard structs. I noticed there is no clear standard way of doing this (eg "vga-pci0" and "ide_pci0"). I've cleaned up some of the other messages that pccard spits out as well. I've verified that the ep driver still works and that pccardd and pccardc (well, only dumpcis) still work. There are a couple of purely style changes as well, but I've not tried to filter them out. It is time to start sio, fdc and ata drivers :-) http://www.freebsd.org/~imp/pccard_nbk.diff.19990816.gz As always, I'm interested in any comments people have, especially on my use of newbus. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message From owner-freebsd-new-bus Tue Aug 17 1: 5:19 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from gratis.grondar.za (gratis.grondar.za [196.7.18.133]) by hub.freebsd.org (Postfix) with ESMTP id D40D514E83; Tue, 17 Aug 1999 01:05:09 -0700 (PDT) (envelope-from mark@grondar.za) Received: from grondar.za (localhost [127.0.0.1]) by gratis.grondar.za (8.9.3/8.9.3) with ESMTP id KAA38634; Tue, 17 Aug 1999 10:04:57 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <199908170804.KAA38634@gratis.grondar.za> To: Warner Losh Cc: mobile@FreeBSD.ORG, new-bus-arch@bostonradio.org, new-bus@FreeBSD.ORG Subject: Re: New pccard kludge patches Date: Tue, 17 Aug 1999 10:04:56 +0200 From: Mark Murray Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > As always, I'm interested in any comments people have, especially on > my use of newbus. I'll clue you in when I have a working kernel... M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message From owner-freebsd-new-bus Tue Aug 17 23:28:34 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from gratis.grondar.za (gratis.grondar.za [196.7.18.133]) by hub.freebsd.org (Postfix) with ESMTP id C165214C56; Tue, 17 Aug 1999 23:28:27 -0700 (PDT) (envelope-from mark@grondar.za) Received: from grondar.za (localhost [127.0.0.1]) by gratis.grondar.za (8.9.3/8.9.3) with ESMTP id IAA44947; Wed, 18 Aug 1999 08:27:25 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <199908180627.IAA44947@gratis.grondar.za> To: Warner Losh Cc: mobile@FreeBSD.ORG, new-bus-arch@bostonradio.org, new-bus@FreeBSD.ORG Subject: Re: New pccard kludge patches Date: Wed, 18 Aug 1999 08:27:23 +0200 From: Mark Murray Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > As always, I'm interested in any comments people have, especially on > my use of newbus. I'm not much of a kernel hacker, but the code looks clean enough, seems a bit faster, and works fine on my Libretto. :-) M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message From owner-freebsd-new-bus Tue Aug 17 23:30:18 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id A631714D28; Tue, 17 Aug 1999 23:30:09 -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 AAA46445; Wed, 18 Aug 1999 00:29:33 -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 AAA17822; Wed, 18 Aug 1999 00:29:08 -0600 (MDT) Message-Id: <199908180629.AAA17822@harmony.village.org> To: Mark Murray Subject: Re: New pccard kludge patches Cc: mobile@FreeBSD.ORG, new-bus-arch@bostonradio.org, new-bus@FreeBSD.ORG In-reply-to: Your message of "Wed, 18 Aug 1999 08:27:23 +0200." <199908180627.IAA44947@gratis.grondar.za> References: <199908180627.IAA44947@gratis.grondar.za> Date: Wed, 18 Aug 1999 00:29:07 -0600 From: Warner Losh Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <199908180627.IAA44947@gratis.grondar.za> Mark Murray writes: : I'm not much of a kernel hacker, but the code looks clean enough, : seems a bit faster, and works fine on my Libretto. :-) It won't be any faster, so it is the observer effect. Do you like the newer probe messages? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message From owner-freebsd-new-bus Tue Aug 17 23:37:38 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from gratis.grondar.za (gratis.grondar.za [196.7.18.133]) by hub.freebsd.org (Postfix) with ESMTP id 765201579F; Tue, 17 Aug 1999 23:37:26 -0700 (PDT) (envelope-from mark@grondar.za) Received: from grondar.za (localhost [127.0.0.1]) by gratis.grondar.za (8.9.3/8.9.3) with ESMTP id IAA45058; Wed, 18 Aug 1999 08:34:57 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <199908180634.IAA45058@gratis.grondar.za> To: Warner Losh Cc: mobile@FreeBSD.ORG, new-bus-arch@bostonradio.org, new-bus@FreeBSD.ORG Subject: Re: New pccard kludge patches Date: Wed, 18 Aug 1999 08:34:56 +0200 From: Mark Murray Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > In message <199908180627.IAA44947@gratis.grondar.za> Mark Murray writes: > : I'm not much of a kernel hacker, but the code looks clean enough, > : seems a bit faster, and works fine on my Libretto. :-) > > It won't be any faster, so it is the observer effect. Do you like the > newer probe messages? Oh, yes! There is one that looks a little funny; (From memory) there is a line that begins "pccard-ep0: ... "; my brain connects the two together too firmly with the hyphen. Perhaps it should be "pccard: ep0: "? The rest work well for me. M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message From owner-freebsd-new-bus Wed Aug 18 0: 9:55 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 2CC761541C; Wed, 18 Aug 1999 00:09:51 -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 BAA46548; Wed, 18 Aug 1999 01:08:57 -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 BAA17968; Wed, 18 Aug 1999 01:08:32 -0600 (MDT) Message-Id: <199908180708.BAA17968@harmony.village.org> To: Mark Murray Subject: Re: New pccard kludge patches Cc: mobile@FreeBSD.ORG, new-bus-arch@bostonradio.org, new-bus@FreeBSD.ORG In-reply-to: Your message of "Wed, 18 Aug 1999 08:34:56 +0200." <199908180634.IAA45058@gratis.grondar.za> References: <199908180634.IAA45058@gratis.grondar.za> Date: Wed, 18 Aug 1999 01:08:32 -0600 From: Warner Losh Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <199908180634.IAA45058@gratis.grondar.za> Mark Murray writes: : Oh, yes! There is one that looks a little funny; (From memory) : there is a line that begins "pccard-ep0: ... "; my brain connects : the two together too firmly with the hyphen. Perhaps it should be : "pccard: ep0: "? : : The rest work well for me. The pccard-ep part is the name of the compatibility device that I've created. There already is an ep0 in the isa part of the tree as a compatibility device I think... I wanted it to print the actual device name... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message From owner-freebsd-new-bus Wed Aug 18 0:36:33 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id E6EBF14D50; Wed, 18 Aug 1999 00:36:28 -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 BAA46616; Wed, 18 Aug 1999 01:35:07 -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 BAA18095; Wed, 18 Aug 1999 01:34:42 -0600 (MDT) Message-Id: <199908180734.BAA18095@harmony.village.org> Subject: Re: New pccard kludge patches To: Mark Murray , mobile@FreeBSD.ORG, new-bus-arch@bostonradio.org, new-bus@FreeBSD.ORG In-reply-to: Your message of "Wed, 18 Aug 1999 01:08:32 MDT." Date: Wed, 18 Aug 1999 01:34:42 -0600 From: Warner Losh Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -------- : The pccard-ep part is the name of the compatibility device that I've : created. There already is an ep0 in the isa part of the tree as a : compatibility device I think... I wanted it to print the actual : device name... ... with the actual unit. I was getting ep1 when I tried it the other way. Maybe the right thing for the isa compat devices to do is to remove them as unattached children which consume unit numbers after they are probed... My current patches, not yet uploaded, generate: pccard-ep0: at port 0x240-0x248 irq 15 slot 0 on pccard0 I was thinking of adding the info strings from the CIS in place of "compat ep". Might be a good test for the CIS reading functions that have been talked about from time to time here that I've not implemented. I could cheat and have pccardd pass them down, but then I'd have to break the ioctl again and I'm not sure I want to do that for these patches. Hmmm, I think that I can do this easily enough inside pccard.c that it would be useful to both -current and -stable. Sure would help the xircom driver (and a radio card driver that I've not had time to work on in ages) and eliminate some horrible kludges that are there now (and sadly needed now). I also have some sio changes, but there is much work needed to be done to properly rid the sio driver of isa_{get,set}_foo in all routines except probe and attach on a real ISA bus. Also need to break out the ISA specific part of the probe/attach and the generic parts. And since it is sio, I gotta have set bruce-level much higher than I'm used to. Since the sio changes aren't done yet, I've not uploaded things. All I get is ENOMEM when I try to attach, and I know I've broken something important in SIO that I've not run into yet. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message From owner-freebsd-new-bus Wed Aug 18 1:34:50 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from gratis.grondar.za (gratis.grondar.za [196.7.18.133]) by hub.freebsd.org (Postfix) with ESMTP id A989715771; Wed, 18 Aug 1999 01:34:38 -0700 (PDT) (envelope-from mark@grondar.za) Received: from grondar.za (localhost [127.0.0.1]) by gratis.grondar.za (8.9.3/8.9.3) with ESMTP id KAA45527; Wed, 18 Aug 1999 10:34:58 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <199908180834.KAA45527@gratis.grondar.za> To: Warner Losh Cc: mobile@FreeBSD.ORG, new-bus-arch@bostonradio.org, new-bus@FreeBSD.ORG Subject: Re: New pccard kludge patches Date: Wed, 18 Aug 1999 10:34:57 +0200 From: Mark Murray Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > The pccard-ep part is the name of the compatibility device that I've > created. There already is an ep0 in the isa part of the tree as a > compatibility device I think... I wanted it to print the actual > device name... Does that mean it is a kludge that will eventually go? M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message From owner-freebsd-new-bus Wed Aug 18 1:48:17 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from gratis.grondar.za (gratis.grondar.za [196.7.18.133]) by hub.freebsd.org (Postfix) with ESMTP id 6544914D2D; Wed, 18 Aug 1999 01:48:08 -0700 (PDT) (envelope-from mark@grondar.za) Received: from grondar.za (localhost [127.0.0.1]) by gratis.grondar.za (8.9.3/8.9.3) with ESMTP id KAA45626; Wed, 18 Aug 1999 10:48:24 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <199908180848.KAA45626@gratis.grondar.za> To: Warner Losh Cc: mobile@FreeBSD.ORG, new-bus-arch@bostonradio.org, new-bus@FreeBSD.ORG Subject: Re: New pccard kludge patches Date: Wed, 18 Aug 1999 10:48:23 +0200 From: Mark Murray Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > My current patches, not yet uploaded, generate: > > pccard-ep0: at port 0x240-0x248 irq 15 slot 0 on pccard0 I take it the eventual code (fully newbussed) will simply be something like: ep0: at port 0xNNN-0xMMM irq 15 slot 0 on pccard0 ?? > I was thinking of adding the info strings from the CIS in place of > "compat ep". Might be a good test for the CIS reading functions that > have been talked about from time to time here that I've not > implemented. I could cheat and have pccardd pass them down, but then > I'd have to break the ioctl again and I'm not sure I want to do that > for these patches. Hmmm, I think that I can do this easily enough > inside pccard.c that it would be useful to both -current and -stable. :-) Looking forward to _that_! > Sure would help the xircom driver (and a radio card driver that I've > not had time to work on in ages) and eliminate some horrible kludges > that are there now (and sadly needed now). Ain't it fun nuking kludges! > I also have some sio changes, but there is much work needed to be done > to properly rid the sio driver of isa_{get,set}_foo in all routines > except probe and attach on a real ISA bus. Also need to break out the > ISA specific part of the probe/attach and the generic parts. And > since it is sio, I gotta have set bruce-level much higher than I'm > used to. Since the sio changes aren't done yet, I've not uploaded > things. All I get is ENOMEM when I try to attach, and I know I've > broken something important in SIO that I've not run into yet. Well, I will be one of your more dilligent testers when you get that going! M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message From owner-freebsd-new-bus Wed Aug 18 8:22:43 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 4CEDA157C9; Wed, 18 Aug 1999 08:22:38 -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 JAA48026; Wed, 18 Aug 1999 09:22:42 -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 JAA19939; Wed, 18 Aug 1999 09:22:15 -0600 (MDT) Message-Id: <199908181522.JAA19939@harmony.village.org> To: Mark Murray Subject: Re: New pccard kludge patches Cc: mobile@freebsd.org, new-bus-arch@bostonradio.org, new-bus@freebsd.org In-reply-to: Your message of "Wed, 18 Aug 1999 10:34:57 +0200." <199908180834.KAA45527@gratis.grondar.za> References: <199908180834.KAA45527@gratis.grondar.za> Date: Wed, 18 Aug 1999 09:22:14 -0600 From: Warner Losh Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <199908180834.KAA45527@gratis.grondar.za> Mark Murray writes: : Does that mean it is a kludge that will eventually go? I'm not sure. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message From owner-freebsd-new-bus Wed Aug 18 20:53:23 1999 Delivered-To: freebsd-new-bus@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id 460DC15A4B; Wed, 18 Aug 1999 20:53:14 -0700 (PDT) (envelope-from dcs@newsguy.com) Received: from newsguy.com by peach.ocn.ne.jp (8.9.1a/OCN) id MAA26751; Thu, 19 Aug 1999 12:49:47 +0900 (JST) Message-ID: <37BA8446.E4D77698@newsguy.com> Date: Wed, 18 Aug 1999 19:00:38 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.6 [en] (Win98; I) X-Accept-Language: en,pt-BR,ja MIME-Version: 1.0 To: Mark Murray Cc: Warner Losh , mobile@FreeBSD.ORG, new-bus-arch@bostonradio.org, new-bus@FreeBSD.ORG Subject: Re: New pccard kludge patches References: <199908180834.KAA45527@gratis.grondar.za> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Transfer-Encoding: 7bit Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Now, I don't mean to sound rude or anything, but I'm receiving three copies of each of these messages, as I happen to subscribe to all three lists it is being cc'ed to. Perhaps you could cut it down a little tiny bit? Thanks. Mark Murray wrote: > > > The pccard-ep part is the name of the compatibility device that I've > > created. There already is an ep0 in the isa part of the tree as a > > compatibility device I think... I wanted it to print the actual > > device name... > > Does that mean it is a kludge that will eventually go? > > M > -- > Mark Murray > Join the anti-SPAM movement: http://www.cauce.org > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-new-bus" in the body of the message -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org - Can I speak to your superior? - There's some religious debate on that question. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message