Subject: PCI-CardBus bridge support for sparc64
To: None <port-sparc64@netbsd.org>
From: Takeshi Nakayama <tn@catvmics.ne.jp>
List: port-sparc64
Date: 03/08/2003 04:02:29
Hi folks,
I have been writing MD part of PCI-CardBus bridge support for
sparc64. It has come to work on my machine (Ultra 60 + Ricoh 5C475
based PCI-CardBus bridge).
You can get the patch for -current from this URL.
ftp://ftp.netbsd.org/pub/NetBSD/misc/nakayama/sparc64-cardbus.diff.gz
It almost works except for a card detachment. Some card (such as
USB controller) causes kernel panic when it has been detached. The
case of network cards or ATA cards, it may safely detach after
doing "ifconfig down" or "unmount".
I think it needs more works on a card detachment.
Please try it on and let me know if you have any problems.
The probe messages of PCMCIA/CardBus cards I have checked is
appended in the last of this mail.
Enjoy,
Takeshi Nakayama
# PCI-CardBus bridge
cbb0 at pci0 dev 4 function 0: Ricoh 5C475 PCI-CardBus bridge (rev. 0x80)
cbb0: interrupting at ivec 18
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 1 device 0
pcmcia0 at cardslot0
# IDE to PCMCIA adapter
wdc0 at pcmcia0 function 0
wd0 at wdc0 channel 0 drive 0: <IBM-DYKA-22160>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 2067 MB, 4200 cyl, 16 head, 63 sec, 512 bytes/sect x 4233600 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
# CF to PCMCIA adapter
wdc0 at pcmcia0 function 0
wd0 at wdc0 channel 0 drive 0: <Key Technology Corp. ATA-KUO WizardPlus>
wd0: drive supports 1-sector PIO transfers, LBA addressing
wd0: 246 MB, 984 cyl, 16 head, 32 sec, 512 bytes/sect x 503808 sectors
# Wireless network cards
wi0 at pcmcia0 function 0: ICOM, SL-11, Version 01.00
wi0: 802.11 address 00:90:c7:1d:01:fa
wi0: using RF:PRISM2 MAC:HFA3841 CARD:HWB3163 rev.A
wi0: Intersil Firmware: Primary (0.3.0), Station (0.8.3)
wi0: supported rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wi0 at pcmcia0 function 0: HyperLink, Wireless PC Card 11Mbps,
wi0: 802.11 address 00:02:78:f3:21:e6
wi0: using RF:PRISM2 MAC:HFA3841 CARD:HWB3163 rev.A
wi0: Intersil Firmware: Primary (0.3.0), Station (0.8.0)
wi0: supported rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wi0 at pcmcia0 function 0: MELCO, WLI-PCM-L11, Version 01.01
wi0: 802.11 address 00:60:1d:f2:8e:81
wi0: using Lucent Technologies, WaveLAN/IEEE
wi0: Lucent Firmware: Station (4.52.1)
wi0: supported rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
# Network cards
ne0 at pcmcia0 function 0
ne0: I-O DATA PCLA/TE Ethernet
ne0: Ethernet address 00:a0:b0:0b:cd:b9
ep0 at pcmcia0 function 0: 3Com 3c589 10Mbps Ethernet
ep0: address 00:60:97:8e:1e:fd, 8KB byte-wide FIFO, 5:3 Rx:Tx split
ep0: 10baseT, 10base5, 10base2 (default 10baseT)
# Modem and network combo card
# ("ifconfig sm0 up" causes kernel panic, so some fix needs for MI part)
mhzc0 at pcmcia0 function 0: Megahertz X-JACK Ethernet Modem
com2 at mhzc0: io 0x1bf8-0x1bff: ns16550a, working fifo
sm0 at mhzc0: io 0x1c00-0x1c0f
sm0: SMC91C94/91C96, revision 1, buffer size: 4608
sm0: MAC address 00:00:86:12:29:45, default media UTP
# USB2.0 to CardBus adapter
ohci2 at cardbus0 dev 0 function 0: NEC USB Host Controller (rev. 0x41)
ohci2: interrupting at 24
ohci2: OHCI version 1.0
usb3 at ohci2: USB revision 1.0
uhub3 at usb3
uhub3: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 3 ports with 3 removable, self powered
ohci3 at cardbus0 dev 0 function 1: NEC USB Host Controller (rev. 0x41)
ohci3: interrupting at 24
ohci3: OHCI version 1.0
usb4 at ohci3: USB revision 1.0
uhub4 at usb4
uhub4: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub4: 2 ports with 2 removable, self powered
ehci1 at cardbus0 dev 0 function 2: NEC USB Host Controller (rev. 0x02)
ehci1: interrupting at 24
ehci1: EHCI version 0.95
ehci1: companion controllers, 3 ports each: ohci2 ohci3
usb5 at ehci1: USB revision 2.0
uhub5 at usb5
uhub5: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub5: 5 ports with 5 removable, self powered