mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-17 01:04:40 +08:00
Update serial PCMCIA bases card support
This commit is contained in:
parent
203c9d115d
commit
cab0f75d37
@ -1,36 +1,35 @@
|
||||
# Serial PCMCIA Cards
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", ENV{MANF_ID}="$sysfs{manf_id}", ENV{CARD_ID}="$sysfs{card_id}"
|
||||
|
||||
|
||||
# Brain Boxes BL-620 Bluetooth Adapter
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="Brain Boxes", SYSFS{prod_id2}=="Bluetooth PC Card", RUN+="bluetooth_serial"
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="Brain Boxes", SYSFS{prod_id2}=="Bluetooth PC Card", ENV{HCIOPTS}="bboxes", RUN+="bluetooth_serial"
|
||||
|
||||
# Xircom CreditCard Bluetooth Adapter
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="Xircom", SYSFS{prod_id3}=="CBT", RUN+="bluetooth_serial"
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="Xircom", SYSFS{prod_id3}=="CBT", ENV{HCIOPTS}="xircom", RUN+="bluetooth_serial"
|
||||
|
||||
# Xircom RealPort2 Bluetooth Adapter
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="Xircom", SYSFS{prod_id3}=="CBT", RUN+="bluetooth_serial"
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="Xircom", SYSFS{prod_id3}=="CBT", ENV{HCIOPTS}="xircom", RUN+="bluetooth_serial"
|
||||
|
||||
# IBM Bluetooth PC Card II
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="IBM", SYSFS{prod_id2}=="Bluetooth PC Card II", RUN+="bluetooth_serial"
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="IBM", SYSFS{prod_id2}=="Bluetooth PC Card II", ENV{HCIOPTS}="tdk", RUN+="bluetooth_serial"
|
||||
|
||||
# TDK Bluetooth PC Card
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="TDK", SYSFS{prod_id2}=="Bluetooth PC Card II", RUN+="bluetooth_serial"
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="TDK", SYSFS{prod_id2}=="Bluetooth PC Card II", ENV{HCIOPTS}="tdk", RUN+="bluetooth_serial"
|
||||
|
||||
# AmbiCom BT2000C Bluetooth PC/CF Card
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="AmbiCom BT2000C", SYSFS{prod_id2}=="Bluetooth PC/CF Card", RUN+="bluetooth_serial"
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="AmbiCom BT2000C", SYSFS{prod_id2}=="Bluetooth PC/CF Card", ENV{HCIOPTS}="bt2000c", RUN+="bluetooth_serial"
|
||||
|
||||
# COM One Platinium Bluetooth PC Card
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="COM1 SA", SYSFS{prod_id2}=="MC310 CARD", RUN+="bluetooth_serial"
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="COM1 SA", SYSFS{prod_id2}=="MC310 CARD", ENV{HCIOPTS}="comone", RUN+="bluetooth_serial"
|
||||
|
||||
# Sphinx PICO Card
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="SPHINX", SYSFS{prod_id2}=="BT-CARD", RUN+="bluetooth_serial"
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="SPHINX", SYSFS{prod_id2}=="BT-CARD", ENV{HCIOPTS}="picocard", RUN+="bluetooth_serial"
|
||||
|
||||
# H-Soft blue+Card
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="H-Soft", SYSFS{prod_id2}=="Blue+CARD", RUN+="bluetooth_serial"
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="H-Soft", SYSFS{prod_id2}=="Blue+CARD", ENV{HCIOPTS}="$sysfs{manf_id},$sysfs{card_id}", RUN+="bluetooth_serial"
|
||||
|
||||
# Compaq iPAQ Bluetooth Sleeve
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="CF CARD", SYSFS{prod_id2}=="GENERIC", RUN+="bluetooth_serial"
|
||||
# Compaq iPAQ Bluetooth Sleeve, Belkin F8T020, any other muppet who used an OXCF950 and didn't bother to program it appropriately.
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="CF CARD", SYSFS{prod_id2}=="GENERIC", ENV{HCIOPTS}="$sysfs{manf_id},$sysfs{card_id}", RUN+="bluetooth_serial"
|
||||
|
||||
# Zoom Bluetooth Card and Sitecom CN-504 Card
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="PCMCIA", SYSFS{prod_id2}=="Bluetooth Card", RUN+="bluetooth_serial"
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="PCMCIA", SYSFS{prod_id2}=="Bluetooth Card", ENV{HCIOPTS}="zoom", RUN+="bluetooth_serial"
|
||||
|
||||
# CC&C BT0100M
|
||||
SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="Bluetooth BT0100M", ENV{HCIOPTS}="bcsp 115200", RUN+="bluetooth_serial"
|
||||
|
@ -12,16 +12,11 @@ start_serial()
|
||||
return 1
|
||||
fi
|
||||
|
||||
IRQ=`/bin/setserial $DEVNAME | sed -e 's/.*IRQ: //'`
|
||||
/bin/setserial $DEVNAME irq 0 ; /bin/setserial $DEVNAME irq $IRQ
|
||||
|
||||
MANF_CARD_ID="${MANF_ID},${CARD_ID}"
|
||||
# I don't have a generic solution, sorry
|
||||
if [ $MANF_CARD_ID = "0x0160,0x0002" ]; then
|
||||
/usr/sbin/hciattach $DEVNAME $MANF_CARD_ID 115200
|
||||
else
|
||||
/usr/sbin/hciattach $DEVNAME $MANF_CARD_ID
|
||||
if [ "$BAUDBASE" != "" ]; then
|
||||
/bin/setserial $DEVNAME baud_base $BAUDBASE
|
||||
fi
|
||||
|
||||
/usr/sbin/hciattach $DEVNAME $HCIOPTS 2>&1 | logger -t hciattach
|
||||
}
|
||||
|
||||
stop_serial()
|
||||
|
Loading…
Reference in New Issue
Block a user