Return-Path: Received: from gremg1.net.external.hp.com (grenmg1.net.external.hp.com [155.208.254.57]) by dsl2.external.hp.com (Postfix) with ESMTP id 77F434834 for ; Fri, 14 Mar 2003 05:33:26 -0700 (MST) Date: Fri, 14 Mar 2003 13:33:05 +0100 From: Lyonel Vincent To: bruno_vidal@hp.com Cc: parisc-linux@lists.parisc-linux.org Subject: Re: [parisc-linux] enumerating devices from user space Message-Id: <20030314133305.4311a8e6.vincentl@ec-lyon.fr> In-Reply-To: <3E7196C7.8A35605F@hp.com> References: <20030313112232.A10172@typhon.pilat.fr> <3E706BE4.E53961BD@hp.com> <20030313134558.6cf9177c.vincentl@ec-lyon.fr> <3E7196C7.8A35605F@hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: parisc-linux-admin@lists.parisc-linux.org Errors-To: parisc-linux-admin@lists.parisc-linux.org List-Help: List-Post: List-Subscribe: , List-Id: parisc-linux developers list List-Unsubscribe: , List-Archive: Hi Bruno, The ioctl sounds great to me. On which device would you "attach" it (as some of the devices I'd like to report don't even have an entry in /dev), create a new one? Correct me if I'm wrong (I don't know much about IOCTLs) If you want me to help testing/developing, I have a 9000/C180 w/ Debian (unstable) ready to use. cheers, lv. PS: being PA-RISC dependent is not a problem, I already have ifdefs for x86, PowerPC and Alpha On Fri, 14 Mar 2003 09:45:59 +0100 bruno_vidal@hp.com wrote: > Hi > I'll try to add an ioctls in my dump driver to print this list. It > will give a good starting point, isn't it ? > The other choice is to create a new modules that use my functions > in firmware.c. But keep in mind that it will usefull only for pa-risc. > I don't know if it is the best practice. > > cheers. > > Lyonel Vincent wrote: > > > Hi Bruno, > > > > That sounds like what I was looking for (HW path + version > > information)! What do you think is the best approach? > > > > cheers, > > lv. > > > > On Thu, 13 Mar 2003 12:30:44 +0100 > > bruno_vidal@hp.com wrote: > > > > > Hi guys. > > > While developping the dump modules, I had to find a way to > > > retrieve the hardware path of disk/hba. So I had to developpe a > > > small hack in the kernel/firmware.c in order to retrive the right > > > hba. But it is parisc dependant. Do you want I try to add an ioctl > > > in my dump modules in order to print in user space this > > > informations ? Example: > > > > > > size:1500160 nr_sects:3000320 start_sect:374784 > > > hwpath: 0/0/1/1.15.0.0. > > > dump device opened: 0x813 with index: 0 at hpa: 0x900 > > > > > > So my functions are able to print the hw path of each io modules. > > > Is it what you are looking for ? > > > > > > -- > > > Vidal Bruno, (770-4271) > > > SSD-HA Team, HP-UX & LINUX Support > > > bruno_vidal@admin.france.hp.com > > > > > > > > > > _______________________________________________ > > parisc-linux mailing list > > parisc-linux@lists.parisc-linux.org > > http://lists.parisc-linux.org/mailman/listinfo/parisc-linux > > -- > Vidal Bruno, (770-4271) > SSD-HA Team, HP-UX & LINUX Support > bruno_vidal@admin.france.hp.com > >