[Prism54-devel] Ultra stripped down driver at http://195.66.192.167/linux/isl/isl-20051005.tar.bz2

Denis Vlasenko vda at ilport.com.ua
Wed Oct 5 08:02:48 UTC 2005


Hi,

I wanted to play with prism54usb + freemac.
The plan is to add real network device capability
to freemac (DMAing tx data to device).

However, I found prism54usb a bit too big for
my purposes. For one, I think we should not
waste time trying to implement "mgmt" stuff
present in official firmware. Too damn complicated
to do in fw. But large part of prism54usb
is dealing exactly with that stuff.

I took prism54usb apart and put together a mini driver.
At the moment it supports only PCI, but all required
build machinery and hardware abstraction is in place
for USB to be added.

Tarball:
http://195.66.192.167/linux/isl/isl-20051005.tar.bz2
Current tree, archived daily:
http://195.66.192.167/linux/isl/current/

Please give me your review.

#!/bin/sh

L_DEBUG=$((0x0001))
L_FUNC=$(( 0x0002))
L_IRQ=$((  0x0004))
L_DATA=$(( 0x0008))
L_IOCTL=$((0x0010))
L_BUFR=$(( 0x0020))
L_BUFT=$(( 0x0040))
L_FW=$((   0x0080))
L_INIT=$(( 0x0100))
L_ASSOC=$((0x0200))
L_RX=$((   0x0400))
L_TX=$((   0x0800))

modprobe firmware_class
insmod isl.ko debug=$((0xffff - L_DEBUG))

and then

# ip l set dev eth0 up

Kernel log:

2005-10-05_07:57:52.77126 kern.info: 08627647 ==> islpci_init_module
2005-10-05_07:57:52.77142 kern.info: PCI module initialized, waiting for cards to probe...
2005-10-05_07:57:52.77963 kern.info: 08627658   ==> pci_probe
2005-10-05_07:57:52.77983 kern.info: ACPI: PCI Interrupt 0000:01:02.0[A] -> GSI 17 (level, low) -> IRQ 17
2005-10-05_07:57:52.77989 kern.info: latency timer: 50
2005-10-05_07:57:52.77992 kern.info: setting TRDY = RETRY = 0
2005-10-05_07:57:52.77995 kern.info: 08627658     ==> ndev_setup
2005-10-05_07:57:52.77998 kern.info: iobase:ec100000
2005-10-05_07:57:52.78016 kern.info: priv->iobase:d0a58000
2005-10-05_07:57:52.83562 kern.info: 08627667     <== ndev_setup
2005-10-05_07:57:52.83581 kern.info: 08627667     ==> islpci_romboot
2005-10-05_07:57:52.83586 kern.info: 08627716     <== islpci_romboot
2005-10-05_07:57:52.83589 kern.info: 08627716   <== pci_probe: 00000000
2005-10-05_07:57:52.83592 kern.info: 08627716 <== islpci_init_module: 00000000
2005-10-05_07:58:15.29569 kern.info: 08650160 ==> isl_ifup
2005-10-05_07:58:15.29590 kern.info: 08650160   ==> isl_upload_fw_hotplug
2005-10-05_07:58:15.46439 kern.info: request_firmware('isl3886') ok
2005-10-05_07:58:15.46454 kern.info: 08650300     ==> islpci_upload_fw
2005-10-05_07:58:15.46457 kern.info: 08650300       ==> islpci_romboot
2005-10-05_07:58:15.46460 kern.info: 08650349       <== islpci_romboot
2005-10-05_07:58:15.46463 kern.info: 08650353       ==> ramboot
2005-10-05_07:58:15.46466 kern.info: irq: irqs_unmasked:00004000 irqs:00004000 - HANDLED
2005-10-05_07:58:15.46469 kern.info: 08650353       <== ramboot
2005-10-05_07:58:15.46472 kern.info: 08650353     <== islpci_upload_fw: 00000000
2005-10-05_07:58:15.46521 kern.info: 08650353   <== isl_upload_fw_hotplug: 00000000
2005-10-05_07:58:15.46526 kern.info: 08650353 <== isl_ifup: 00000000
2005-10-05_07:58:15.49975 kern.info: irq: irqs_unmasked:00004004 irqs:00004004 - HANDLED
2005-10-05_07:58:15.49999 kern.info: uart:
2005-10-05_07:58:15.50093 kern.info: irq: irqs_unmasked:00008000 irqs:00008000 - HANDLED
2005-10-05_07:58:15.50097 kern.info: irq: irqs_unmasked:00008000 irqs:00008000 - HANDLED
...
2005-10-05_07:58:15.50309 kern.info: irq: irqs_unmasked:00008000 irqs:00008000 - HANDLED
2005-10-05_07:58:15.50312 kern.info: uart:[34m>> Free[1mMAC[1;36m build #1[0;32m [ Sun Oct  2 15:26:22 CEST 2005 ][0m

	This is a FreeMAC prompt received over pciuart

2005-10-05_07:58:15.50316 kern.info: irq: irqs_unmasked:00008000 irqs:00008000 - HANDLED
2005-10-05_07:58:15.50319 kern.info: irq: irqs_unmasked:00008000 irqs:00008000 - HANDLED
2005-10-05_07:58:15.50323 kern.info: uart:
2005-10-05_07:58:15.50325 kern.info: irq: irqs_unmasked:00008000 irqs:00008000 - HANDLED
--
vda


More information about the Prism54-devel mailing list