mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
nusbrc: add Prolific and CP2102 serial uart
also reorganize the switches: match vid/did first, then generic device class.
This commit is contained in:
parent
b0f2f4e47d
commit
afe12c32f3
1 changed files with 19 additions and 21 deletions
|
@ -10,6 +10,12 @@ if(! bind -a '#u' /dev)
|
|||
id=$1
|
||||
if(~ $#* 5 && ! test -e /env/nousbhname)
|
||||
id=$1:$5
|
||||
switch($2$3){
|
||||
case 12d11003 1a867523 10c4ea60 0403* 1a867523 # HUAWEI, Prolific, CP2102, FTDI, pine64
|
||||
nusb/serial $id
|
||||
case 59862113
|
||||
nusb/cam $id
|
||||
case *
|
||||
switch($4){
|
||||
case *01
|
||||
nusb/audio $id
|
||||
|
@ -18,8 +24,6 @@ if(! bind -a '#u' /dev)
|
|||
case *02
|
||||
# serial and ethernet
|
||||
nusb/serial $id
|
||||
# handled /sys/src/9/boot/nusbrc
|
||||
# nusb/ether $id
|
||||
case *03
|
||||
# handled /sys/src/9/boot/nusbrc
|
||||
# nusb/kb $id
|
||||
|
@ -28,12 +32,6 @@ if(! bind -a '#u' /dev)
|
|||
# nusb/disk $id
|
||||
case 010106
|
||||
nusb/ptp $id
|
||||
case *
|
||||
switch($2$3){
|
||||
case 12d11003 0403* 1a867523 # HUAWEI, FTDI, pine64
|
||||
nusb/serial $id
|
||||
case 59862113
|
||||
nusb/cam $id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue