SANA-II driver for Vampire V2 ENC28J60
- Size
- 23K (23,353 bytes)
- Added
- 2026-11-20 03:04
- Downloads
- 2
- Long Description
- v2eth.device is a SANA-II network driver for the ENC28J60 Ethernet module that plugs into the expansion port of the Vampire V2 accelerator cards (V500 V2+, V600 V2, V1200 V2). It is a drop-in replacement for v2expeth.device: the same hardware, the same MAC address and the same configuration keywords. It was written from scratch in C, with a focus on robustness, low latency and throughput, and works with any SANA-II stack such as Roadshow, Miami, AmiTCP or Genesis. FEATURES -------- - Interrupt mode that really works: the module IRQ wakes the driver directly, a timer is only used as a fallback. Round-trip time for small frames is around 0.64 ms on a V1200 V2 - Double-buffered transmit: while one frame is on the wire, the next one is already transferred to the chip - Sends and receives close to the limit of 10 Mbit/s Ethernet: 9.1 Mbit/s (send) and 8.7 Mbit/s (receive) payload with full-size frames - Correct handling of the ENC28J60 receive ring and its errata, including the read pointer wrap-around and the CS hold time of the MAC/MII registers - Watchdog: detects a stuck chip or a receive overflow and recovers automatically. A module that stops answering is re-probed every 5 s; pending writes fail at once instead of blocking the system - Retransmits frames lost to false late collisions (ENC28J60 errata), counted in S2_GETSPECIALSTATS - No busy waiting when nobody reads: frames stay in the chip until the stack asks for them, the CPU is left to other tasks - 32-bit aligned payload, so the stack's CopyToBuff32 and CopyFromBuff32 functions are used - Clean start and stop of the driver task; Close and Expunge never wait under Forbid() - MAC address derived exactly like v2expeth.device does, so DHCP reservations stay valid - Configuration file may contain several lines and comments - Full SANA-II support: events, packet type statistics, multicast ranges, orphan reads, online/offline, NSCMD_DEVICEQUERY REQUIREMENTS ------------ - Vampire V2 accelerator (V500 V2+, V600 V2 or V1200 V2) - ENC28J60 Ethernet module on the Vampire expansion port - AmigaOS 3.0 or higher - SANA-II TCP/IP stack (Roadshow, Miami, AmiTCP, Genesis) Successfully tested on a Vampire V1200 V2. INSTALLATION ------------ Recommended: open the archive, double-click the "Install" icon in the v2eth/ drawer and follow the AmigaOS Installer (English or German). It copies the driver to DEVS:Networks/ and, if you like, the configuration and the Roadshow interface file. Manual install: 1. Copy Devs/Networks/v2eth.device to DEVS:Networks/ 2. Copy Env/SANA2/v2eth.config to ENV:SANA2/ and ENVARC:SANA2/ (optional, see CONFIGURATION). 3. Roadshow: copy Storage/NetInterfaces/V2Eth to DEVS:NetInterfaces/ or change the device line of your existing interface file: device=v2eth.device unit=0 configure=dhcp Other stacks: select DEVS:Networks/v2eth.device, unit 0. 4. Remove or disable the interface that uses v2expeth.device. Both drivers claim the expansion port through vampire.resource; while one of them is open, the other one cannot be opened (nothing breaks, the open simply fails). 5. Reboot or restart the network. CONFIGURATION ------------- The driver reads ENV:SANA2/v2eth.config. If that file does not exist, ENV:SANA2/v2expeth.config is used, so an existing setup keeps working. Keywords may be spread over several lines. Lines starting with ; or # are comments. INTERRUPT Use the module interrupt. Recommended. (off) TIMER=us Poll interval in microseconds, 1000..1000000. Default 4000, or 50000 with INTERRUPT (then the timer is only a fallback). PRIORITY=n Priority of the driver task, -120..120. (5) SPISPEED=n SPI clock divider 1..127, smaller is faster. (2) FULL