From owner-freebsd-current Sat Dec 21 17:43: 0 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C2D837B405 for ; Sat, 21 Dec 2002 17:42:50 -0800 (PST) Received: from web40310.mail.yahoo.com (web40310.mail.yahoo.com [66.218.78.89]) by mx1.FreeBSD.org (Postfix) with SMTP id 2A3DC43EDA for ; Sat, 21 Dec 2002 17:42:50 -0800 (PST) (envelope-from m_evmenkin@yahoo.com) Message-ID: <20021222014249.29623.qmail@web40310.mail.yahoo.com> Received: from [207.175.241.198] by web40310.mail.yahoo.com via HTTP; Sat, 21 Dec 2002 17:42:49 PST Date: Sat, 21 Dec 2002 17:42:49 -0800 (PST) From: Maksim Yevmenkin Subject: Re: NEWCARD, devd, sio and PCCARD_FUNCTION_SERIAL cards To: "M. Warner Losh" Cc: current@freebsd.org In-Reply-To: <20021221.155343.71086588.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-1031175929-1040521369=:28439" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --0-1031175929-1040521369=:28439 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Dear Warner and Hackers, --- "M. Warner Losh" wrote: > In message: <20021221222756.11203.qmail@web40310.mail.yahoo.com> > Maksim Yevmenkin writes: > : Dear Warner and Hackers, > : > : Is there any way (on -current with NEWCARD) "devd" can > : prevent "sio" driver from attaching to *ANY* pc-card > : that has PCCARD_FUNCTION_SERIAL? > > Sure. Just have sio_pccard_match return -100. I've just committed > the change to do this. No need to do anything else, I think. Nope :( It does not work. I applied patch to /sys/dev/sio/sio_pccard.c and recompile my kernel with NEWCARD. It seems devd pays no attention when i plug or unplug the 3COM card. I have attached dmesg output and my devd.conf file. I was trying to get devd to kldload ng_bt3c module, but it did not work. Am i missing something obvious here? thanks, max __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --0-1031175929-1040521369=:28439 Content-Type: text/plain; name="dmesg.txt" Content-Description: dmesg.txt Content-Disposition: inline; filename="dmesg.txt" Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.0-CURRENT #64: Sat Dec 21 16:19:17 PST 2002 max@beetle.digisle.com:/usr/src/sys/i386/compile/BEETLE Preloaded elf kernel "/boot/kernel/kernel" at 0xc0463000. Preloaded elf module "/boot/kernel/nmdm.ko" at 0xc04630a8. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0463154. Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 597786166 Hz CPU: Pentium III/Pentium III Xeon/Celeron (597.79-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x681 Stepping = 1 Features=0x383f9ff real memory = 201195520 (191 MB) avail memory = 190681088 (181 MB) Initializing GEOMetry subsystem Pentium Pro MTRR support enabled npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard Using $PIR table, 10 entries at 0xc00f4ee0 acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI-safe" frequency 3579545 Hz can't fetch resources for \\_SB_.PCI0.FNC0.PRT1 - AE_BAD_DATA acpi_timer0: <24-bit timer at 3.579545MHz> port 0xfe08-0xfe0b on acpi0 acpi_cpu0: on acpi0 acpi_tz0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 ---- initial configuration ------------------------ \\_SB_.LNKA irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.11.0 \\_SB_.LNKB irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.11.1 \\_SB_.LNKC irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.9.0 \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.13.0 \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.12.0 \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.5.3 \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.15.0 \\_SB_.LNKA irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.16.0 ---- before setting priority for links ------------ ---- before fixup boot-disabled links ------------- ---- after fixup boot-disabled links -------------- ---- arbitrated configuration --------------------- \\_SB_.LNKA irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.11.0 \\_SB_.LNKB irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.11.1 \\_SB_.LNKC irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.9.0 \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.13.0 \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.12.0 \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.5.3 \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.15.0 \\_SB_.LNKA irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.16.0 pci0: on pcib0 pcib1: at device 1.0 on pci0 ---- initial configuration ------------------------ \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 1.0.0 ---- before setting priority for links ------------ ---- before fixup boot-disabled links ------------- ---- after fixup boot-disabled links -------------- ---- arbitrated configuration --------------------- \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 1.0.0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) isab0: at device 5.0 on pci0 isa0: on isab0 atapci0: port 0xfff0-0xffff at device 5.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xff80-0xff9f irq 11 at device 5.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: at device 5.3 (no driver attached) pci0: at device 9.0 (no driver attached) cbb0: at device 11.0 on pci0 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 pcib0: slot 11 INTA is routed to irq 11 cbb1: at device 11.1 on pci0 cardbus1: on cbb1 pccard1: <16-bit PCCard bus> on cbb1 pcib0: slot 11 INTB is routed to irq 11 pci0: at device 12.0 (no driver attached) acpi_lid0: on acpi0 acpi_cmbat0: on acpi0 acpi_cmbat1: on acpi0 acpi_acad0: on acpi0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 fdc0: port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A pmtimer0 on isa0 orm0: