How do I add an enumurator for a new device?

Put a new file in /etc/system/enum/oem/ .
It will survive upgrades, and
you can distribute the file it with your favorite hardware
if your product supports QNX.

Example: adding corega PCC-TD 10base-T PCcard ethernet
URL:http://www.corega.co.jp/product/list/lanadp/epcctd.htm
(Caveats: this card needs mucking with MAC address and options; beware)
------------------cut here--------------------

Definitions for OEM devices

put this as /etc/system/enum/oem/COREGA

for Momentics 6.2

all

set this to YOUR card’s MAC address

set(COREGA_MAC, 009099nnnnnn)

COREGA Ether PCC-TD (Tamarack TM3299A)

device(pcmcia, ven=1234, dev=5678)
tag(devn)
append(legacy, “,nonet”)
requires($(IONET_CMD),)
uniq(netnum, devn-en, 0)

This card seems to need 8bit-width access;

6.2 devn-ne2000 has an option “width=8” for this, which is needed for

this card for proper receive operation;

mount(-Tio-net “-oioport=0x$(ioport),irq=$(irq),width=8” /lib/dll/devn-ne2000.so, “/dev/io-net/en0”)

But makes MAC-addr weird (00A0B0… read as 0000A0A0B0B0).

Workaround: hardcode the MAC as above

Additionaly, you may need “devp-pccard -w8,8” option

mount(-Tio-net “-oioport=0x$(ioport),irq=$(irq),width=8,mac=$(COREGA_MAC)” /lib/dll/devn-ne2000.so, “/dev/io-net/en0”)
use(symbolic=netmgr)

do we need this?

seems yes, as without this, netmanager fails to find en0

when card is already inserted from boot time

(hot insertion works without this entry)

device(symbolic=netmgr)

requires(@devn)

waitfor(/dev/socket)
waitfor(/dev/io-net/ip0, 5)
start(netmanager)
------------------cut here--------------------


kabe