From owner-freebsd-drivers@FreeBSD.ORG Mon May 14 13:44:35 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8332016A40A for ; Mon, 14 May 2007 13:44:35 +0000 (UTC) (envelope-from e.petenev@arcor.de) Received: from mail-in-06.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mx1.freebsd.org (Postfix) with ESMTP id C7F9613C455 for ; Mon, 14 May 2007 13:44:34 +0000 (UTC) (envelope-from e.petenev@arcor.de) Received: from mail-in-02-z2.arcor-online.net (mail-in-02-z2.arcor-online.net [151.189.8.14]) by mail-in-06.arcor-online.net (Postfix) with ESMTP id 650893266C2 for ; Mon, 14 May 2007 15:44:33 +0200 (CEST) Received: from mail-in-06.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mail-in-02-z2.arcor-online.net (Postfix) with ESMTP id 4BAE31151A3 for ; Mon, 14 May 2007 15:44:33 +0200 (CEST) Received: from webmail13 (webmail13.arcor-online.net [151.189.8.66]) by mail-in-06.arcor-online.net (Postfix) with ESMTP id 2D07017F41 for ; Mon, 14 May 2007 15:44:33 +0200 (CEST) Received: from 193.25.183.52 by webmail13 (151.189.8.66) with HTTP (Arcor Webmail); Mo, 14 Mai 2007 15:44:33 +0200 Message-ID: <27733017.1179150273174.JavaMail.ngmail@webmail13> Date: Mon, 14 May 2007 15:44:33 +0200 (CEST) From: e.petenev@arcor.de To: freebsd-drivers@freebsd.org In-Reply-To: <20070513.163407.-1956305328.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <20070513.163407.-1956305328.imp@bsdimp.com> <20070513214614.3CB0B11CD4@mail-in-11.arcor-online.net> X-ngMessageSubType: MessageSubType_MAIL X-WebmailclientIP: 193.25.183.52 Subject: Re: Ricoh R5C843 Card bus Controller on FreeBSD 6.2 Release X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 13:44:35 -0000 Hi, > I think I know what's going on, but rather than jump to the answer, > let's look at the steps along the way. > > You need to set the following sysctls/tunables: > > hw.cardbus.debug=1 > hw.cardbus.cis_debug=1 > hw.cbb.debug=1 > Have done, now if I inserting my WLAN-Card i get following messege: ------------------------------------------------------------------------------------------------------------ Status is 0x30000820 cbb0: card inserted: event=0x00000000, state=30000820 cbb0: cbb_power=3V cbb0: cbb_power=0V ------------------------------------------------------------------------------------------------------------ > and provide me with the info that's printed in the dmesg buffer. > The complete dmesge is: ------------------------------------------------------------------------------------------------------------ Copyright (c) 1992-2007 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 6.2-RELEASE-p4 #0: Wed May 9 21:40:38 UTC 2007 root@r55.local:/usr/obj/usr/src/sys/herexx ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 CPU T5200 @ 1.60GHz (1596.01-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6f6 Stepping = 6 Features=0xbfebfbff Features2=0xe39d,CX16,,> AMD Features=0x20000000 AMD Features2=0x1 Cores per package: 2 real memory = 2145976320 (2046 MB) avail memory = 2086494208 (1989 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: on motherboard acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi0: Power Button (fixed) acpi0: Sleep Button (fixed) acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 cpu0: on acpi0 cpu1: on acpi0 acpi_acad0: on acpi0 battery0: on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: irq 16 at device 1.0 on pci0 pci1: on pcib1 nvidia0: mem 0xdd000000-0xddffffff,0xc0000000-0xcfffffff,0xdc000000-0xdcffffff irq 16 at device 0.0 on pci1 nvidia0: [GIANT-LOCKED] pci0: at device 27.0 (no driver attached) pcib2: irq 17 at device 28.0 on pci0 pci2: on pcib2 pcib3: irq 16 at device 28.1 on pci0 pci3: on pcib3 pcib4: irq 18 at device 28.2 on pci0 pci4: on pcib4 pci4: at device 0.0 (no driver attached) pcib5: irq 19 at device 28.3 on pci0 pci6: on pcib5 uhci0: port 0x1800-0x181f irq 23 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] 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 uhci1: port 0x1820-0x183f irq 19 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x1840-0x185f irq 18 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3: port 0x1860-0x187f irq 16 at device 29.3 on pci0 uhci3: [GIANT-LOCKED] usb3: on uhci3 usb3: USB revision 1.0 uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered ehci0: mem 0xde304000-0xde3043ff irq 23 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] usb4: EHCI version 1.0 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4: on ehci0 usb4: USB revision 2.0 uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub4: 8 ports with 8 removable, self powered pcib6: at device 30.0 on pci0 pci9: on pcib6 bfe0: mem 0xde000000-0xde001fff irq 22 at device 5.0 on pci9 miibus0: on bfe0 bmtphy0: on miibus0 bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bfe0: Ethernet address: 00:13:77:29:7b:fc cbb0: at device 9.0 on pci9 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 fwohci0: mem 0xde002000-0xde0027ff at device 9.1 on pci9 fwohci0: OHCI version 1.0 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:00:f0:41:01:04:fa:7c fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:00:f0:04:fa:7c fwe0: Ethernet address: 02:00:f0:04:fa:7c fwe0: if_start running deferred for Giant sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) pci9: at device 9.2 (no driver attached) pci9: at device 9.3 (no driver attached) pci9: at device 9.4 (no driver attached) pci9: at device 9.5 (no driver attached) isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1880-0x188f at device 31.1 on pci0 ata0: on atapci0 ata1: on atapci0 pci0: at device 31.3 (no driver attached) acpi_tz0: on acpi0 acpi_tz1: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcefff,0xdc000-0xdffff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ugen0: Broadcom Corp BCM92045NMD, rev 2.00/1.00, addr 2 Timecounters tick every 1.000 msec ad0: 114473MB at ata0-master UDMA100 acd0: DVDR at ata0-slave UDMA33 SMP: AP CPU #1 Launched! cd0 at ata0 bus 0 target 1 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present Trying to mount root from ufs:/dev/ad0s1a Status is 0x30000820 cbb0: card inserted: event=0x00000000, state=30000820 cbb0: cbb_power: 3V cbb0: cbb_power: 0V umass0: USB Flash Disk, rev 2.00/1.10, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 3936MB (8060928 512 byte sectors: 255H 63S/T 501C) > devinfo -v with the card inserted would also be useful. > > This will give me a clue as to what to look at next. I'm guessing it > is the infamous bus numbering problem, but I'd like to reserve > judgement. It could be something else. > > I should update the cbb man page to include the R5C84x family. > > Warner > And at least devinfo -v ------------------------------------------------------------------------------------------------------------ nexus0 legacy0 npx0 acpi0 cpu0 pnpinfo _HID=none _UID=0 at handle=\_PR_.CPU0 cpu1 pnpinfo _HID=none _UID=0 at handle=\_PR_.CPU1 acpi_acad0 pnpinfo _HID=ACPI0003 _UID=0 at handle=\_SB_.ADP1 battery0 pnpinfo _HID=PNP0C0A _UID=1 at handle=\_SB_.BAT1 acpi_lid0 pnpinfo _HID=PNP0C0D _UID=0 at handle=\_SB_.LID0 acpi_button0 pnpinfo _HID=PNP0C0C _UID=0 at handle=\_SB_.PWRB acpi_button1 pnpinfo _HID=PNP0C0E _UID=0 at handle=\_SB_.SLPB pcib0 pnpinfo _HID=PNP0A08 _UID=0 at handle=\_SB_.PCI0 pci0 hostb0 pnpinfo vendor=0x8086 device=0x27a0 subvendor=0x144d subdevice=0xb03c class=0x060000 at slot=0 function=0 pcib1 pnpinfo vendor=0x8086 device=0x27a1 subvendor=0x0088 subdevice=0x0000 class=0x060400 at slot=1 function=0 handle=\_SB_.PCI0.PEGP pci1 nvidia0 pnpinfo vendor=0x10de device=0x01d8 subvendor=0x144d subdevice=0xb03c class=0x030000 at slot=0 function=0 handle=\_SB_.PCI0.PEGP.NVID unknown pnpinfo vendor=0x8086 device=0x27d8 subvendor=0x144d subdevice=0xb03c class=0x040300 at slot=27 function=0 handle=\_SB_.PCI0.HDEF pcib2 pnpinfo vendor=0x8086 device=0x27d0 subvendor=0x0040 subdevice=0x0000 class=0x060400 at slot=28 function=0 handle=\_SB_.PCI0.RP01 pci2 pcib3 pnpinfo vendor=0x8086 device=0x27d2 subvendor=0x0040 subdevice=0x0000 class=0x060400 at slot=28 function=1 handle=\_SB_.PCI0.RP02 pci3 pcib4 pnpinfo vendor=0x8086 device=0x27d4 subvendor=0x0040 subdevice=0x0000 class=0x060400 at slot=28 function=2 handle=\_SB_.PCI0.RP03 pci4 unknown pnpinfo vendor=0x8086 device=0x4222 subvendor=0x8086 subdevice=0x1001 class=0x028000 at slot=0 function=0 handle=\_SB_.PCI0.RP03.PXS3 pcib5 pnpinfo vendor=0x8086 device=0x27d6 subvendor=0x0040 subdevice=0x0000 class=0x060400 at slot=28 function=3 handle=\_SB_.PCI0.RP04 pci6 uhci0 pnpinfo vendor=0x8086 device=0x27c8 subvendor=0x144d subdevice=0xb03c class=0x0c0300 at slot=29 function=0 handle=\_SB_.PCI0.USB1 usb0 uhub0 uhci1 pnpinfo vendor=0x8086 device=0x27c9 subvendor=0x144d subdevice=0xb03c class=0x0c0300 at slot=29 function=1 handle=\_SB_.PCI0.USB2 usb1 uhub1 uhci2 pnpinfo vendor=0x8086 device=0x27ca subvendor=0x144d subdevice=0xb03c class=0x0c0300 at slot=29 function=2 handle=\_SB_.PCI0.USB3 usb2 uhub2 ugen0 pnpinfo vendor=0x0a5c product=0x2101 devclass=0xe0 devsubclass=0x01 release=0x0100 sernum="" at port=0 uhci3 pnpinfo vendor=0x8086 device=0x27cb subvendor=0x144d subdevice=0xb03c class=0x0c0300 at slot=29 function=3 handle=\_SB_.PCI0.USB4 usb3 uhub3 ehci0 pnpinfo vendor=0x8086 device=0x27cc subvendor=0x144d subdevice=0xb03c class=0x0c0320 at slot=29 function=7 handle=\_SB_.PCI0.USB7 usb4 uhub4 pcib6 pnpinfo vendor=0x8086 device=0x2448 subvendor=0x0050 subdevice=0x0000 class=0x060401 at slot=30 function=0 handle=\_SB_.PCI0.PCIB pci9 bfe0 pnpinfo vendor=0x14e4 device=0x170c subvendor=0x144d subdevice=0xb03c class=0x020000 at slot=5 function=0 handle=\_SB_.PCI0.PCIB.LANC miibus0 bmtphy0 pnpinfo oui=0x1018 model=0x36 rev=0x0 at phyno=1 cbb0 pnpinfo vendor=0x1180 device=0x0476 subvendor=0x144d subdevice=0xb03c class=0x060700 at slot=9 function=0 handle=\_SB_.PCI0.PCIB.CDB0 cardbus0 pccard0 fwohci0 pnpinfo vendor=0x1180 device=0x0552 subvendor=0x144d subdevice=0xb03c class=0x0c0010 at slot=9 function=1 handle=\_SB_.PCI0.PCIB.OHCI firewire0 fwe0 sbp0 unknown pnpinfo vendor=0x1180 device=0x0822 subvendor=0x144d subdevice=0xb03c class=0x080500 at slot=9 function=2 handle=\_SB_.PCI0.PCIB.SDHC unknown pnpinfo vendor=0x1180 device=0x0843 subvendor=0x144d subdevice=0xb03c class=0x088000 at slot=9 function=3 handle=\_SB_.PCI0.PCIB.MMHC unknown pnpinfo vendor=0x1180 device=0x0592 subvendor=0x144d subdevice=0xb03c class=0x088000 at slot=9 function=4 handle=\_SB_.PCI0.PCIB.MSHC unknown pnpinfo vendor=0x1180 device=0x0852 subvendor=0x144d subdevice=0xb03c class=0x088000 at slot=9 function=5 handle=\_SB_.PCI0.PCIB.XDHC isab0 pnpinfo vendor=0x8086 device=0x27b9 subvendor=0x144d subdevice=0xb03c class=0x060100 at slot=31 function=0 handle=\_SB_.PCI0.LPCB isa0 adv0 aha0 aic0 bt0 cs0 ed0 fdc0 fe0 ie0 lnc0 ppc0 sc0 sio0 sio1 sio2 sio3 sn0 vga0 vt0 orm0 pmtimer0 atapci0 pnpinfo vendor=0x8086 device=0x27df subvendor=0x144d subdevice=0xb03c class=0x01018a at slot=31 function=1 handle=\_SB_.PCI0.PATA ata0 ad0 subdisk0 acd0 atapicam0 ata1 atapicam1 unknown pnpinfo vendor=0x8086 device=0x27da subvendor=0x144d subdevice=0xb03c class=0x0c0500 at slot=31 function=3 handle=\_SB_.PCI0.SBUS acpi_sysresource0 pnpinfo _HID=PNP0C02 _UID=1 at handle=\_SB_.PCI0.PDRC unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.PEGP.NVID.CRT1 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.PEGP.NVID.LCD_ unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.PEGP.NVID.TV__ unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.PEGP.NVID.DVI_ unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.GFX0 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.GFX0.DD01 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.GFX0.DD02 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.GFX0.DD03 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.GFX0.DD04 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.GFX0.DD05 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.RP01.PXS1 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.RP02.PXS2 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.RP04.PXS4 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.AUD0 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.MODM pci_link0 pnpinfo _HID=PNP0C0F _UID=1 at handle=\_SB_.PCI0.LPCB.LNKA pci_link1 pnpinfo _HID=PNP0C0F _UID=2 at handle=\_SB_.PCI0.LPCB.LNKB pci_link2 pnpinfo _HID=PNP0C0F _UID=3 at handle=\_SB_.PCI0.LPCB.LNKC pci_link3 pnpinfo _HID=PNP0C0F _UID=4 at handle=\_SB_.PCI0.LPCB.LNKD pci_link4 pnpinfo _HID=PNP0C0F _UID=5 at handle=\_SB_.PCI0.LPCB.LNKE pci_link5 pnpinfo _HID=PNP0C0F _UID=6 at handle=\_SB_.PCI0.LPCB.LNKF pci_link6 pnpinfo _HID=PNP0C0F _UID=7 at handle=\_SB_.PCI0.LPCB.LNKG pci_link7 pnpinfo _HID=PNP0C0F _UID=8 at handle=\_SB_.PCI0.LPCB.LNKH acpi_ec0 pnpinfo _HID=PNP0C09 _UID=1 at handle=\_SB_.PCI0.LPCB.H_EC unknown pnpinfo _HID=PNP0C32 _UID=1 at handle=\_SB_.PCI0.LPCB.H_EC.MBTN atdma0 pnpinfo _HID=PNP0200 _UID=0 at handle=\_SB_.PCI0.LPCB.DMAC unknown pnpinfo _HID=INT0800 _UID=0 at handle=\_SB_.PCI0.LPCB.FWHD unknown pnpinfo _HID=PNP0103 _UID=0 at handle=\_SB_.PCI0.LPCB.HPET atpic0 pnpinfo _HID=PNP0000 _UID=0 at handle=\_SB_.PCI0.LPCB.IPIC npxisa0 pnpinfo _HID=PNP0C04 _UID=0 at handle=\_SB_.PCI0.LPCB.MATH acpi_sysresource1 pnpinfo _HID=PNP0C02 _UID=2 at handle=\_SB_.PCI0.LPCB.LDRC attimer0 pnpinfo _HID=PNP0B00 _UID=0 at handle=\_SB_.PCI0.LPCB.RTC_ attimer1 pnpinfo _HID=PNP0100 _UID=0 at handle=\_SB_.PCI0.LPCB.TIMR unknown pnpinfo _HID=IFX0102 _UID=1 at handle=\_SB_.PCI0.LPCB.TPM_ atkbdc0 pnpinfo _HID=PNP0303 _UID=0 at handle=\_SB_.PCI0.LPCB.PS2K atkbd0 psm0 psmcpnp0 pnpinfo _HID=PNP0F13 _UID=0 at handle=\_SB_.PCI0.LPCB.PS2M unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.PATA.PRID unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.PATA.PRID.P_D0 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.PATA.PRID.P_D1 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.SATA unknown pnpinfo _HID=none _UID=0 at handle=\_TZ_.FN00 unknown pnpinfo _HID=PNP0C0B _UID=0 at handle=\_TZ_.FAN0 acpi_tz0 pnpinfo _HID=none _UID=0 at handle=\_TZ_.TZ00 acpi_tz1 pnpinfo _HID=none _UID=0 at handle=\_TZ_.TZ01 acpi_timer0 pnpinfo unknown at unknown ------------------------------------------------------------------------------------------------------------ I hope you can help me. best regards, Evgenij Petenev