changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: nusbrc: support for raspi3 ethernet

changeset 6831: 98845adbacea
parent 6830: 57cbf6be300b
child 6832: f80792d28e0e
author: cinap_lenrek@felloff.net
date: Sat, 20 Oct 2018 19:53:57 +0200
files: sys/src/9/boot/nusbrc
description: nusbrc: support for raspi3 ethernet
     1.1--- a/sys/src/9/boot/nusbrc
     1.2+++ b/sys/src/9/boot/nusbrc
     1.3@@ -51,8 +51,12 @@ if(! nusb/usbd)
     1.4 				}
     1.5 			case *
     1.6 				# Raspberry Pi ethernet will always appear as /net/etherU0
     1.7-				if(~ $2 0424)
     1.8-					nusb/ether -t smsc $etherargs $1:0
     1.9+				if(~ $2 0424){
    1.10+					if(~ $3 7800)
    1.11+						nusb/ether -t lan78xx $etherargs $1:0
    1.12+					if not
    1.13+						nusb/ether -t smsc $etherargs $1:0
    1.14+				}
    1.15 			}
    1.16 		}
    1.17 	}