Re: Firewire driver available

2001-09-06 Thread Toshihiko ARAI

+ [EMAIL PROTECTED], Warner Losh wrote:

 : By the way, alias of firewire was i.LINK and IEEE1394, but the FreeBSD
 : people selected it as firewire?

 FreeBSD hasn't selected a name, but lots of folks here call it
 firewire.  I'd be strongly inclined to use the same name that NetBSD
 uses.

Do you know the current situation of development by NetBSD?
If development is separate, power has dispersed.  It will become a
loss for BSD.

--
Toshihiko ARAI

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: Firewire driver available

2001-09-05 Thread Toshihiko ARAI

+ Katsushi Kobayashi wrote:

 Anyway, I can add the new chipset to the liist of supporting chipset,
 if we get volunteer.

I have small data, device of vendor=0x104c, dev=0x8021 seems to be
TSB43AA22 Integrated 1394a-2000 OHCI PHY/Link Layer Controller.
http://focus.ti.com/docs/prod/productfolder.jhtml?genericPartNumber=TSB43AA22

It is used with the following machine at least:

VAIO PCG-R505/ABW
/kernel: pci1: unknown card (vendor=0x104c, dev=0x8021) at 0.0 irq 3

VAIO PCG-C1VS
none2@pci0:8:0: class=0x0c0010 card=0x80b2104d chip=0x8021104c rev=0x02 hdr=0x00

Because both added it to probe routine of fwohci, the device was
recognized.  As for PCG-C1VS, DVTS seems to have worked.  However,
both is firewire driver of 4.x base.

By the way, alias of firewire was i.LINK and IEEE1394, but the FreeBSD
people selected it as firewire?

--
Toshihiko ARAI

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: keyboard reset (was: Re: FreeBSD's aggressive keyboard probe/attach)

2001-09-03 Thread Toshihiko ARAI

+ Kazutaka YOKOTA wrote:

 We can improve our current behavior of syscons and keyboard drivers
 in the following approaches.

 a) Remove the FAIL_IF_NO_KBD flag from /boot/device.hints.
Leave the AUTO_DETECT_KBD as it is now for syscons, so that
syscons searches for a keyboard periodically while it isn't using
one. Add a script to /etc/usbd.conf to switch to the USB keyboard.

I use the following scripts.  This /etc/usb_kbd was an improvement
version and became a topic with -tech-jp ML in Japan before a
little.  When you use it, please do chmod +x.  And you can use
below four variables with rc.conf.

 keymap_keyboard
 keyrate_keyboard
 keybell_keyboard
 keychange_keyboard

keyboard is device name of an USB keyboard.

For example, when you use a jp.106x keymap with ukbd0, you add
keymap_ukbd0=jp.106x line to /etc/rc.conf.  And other variable are
similar, too.

However, a case to use several USB keyboards is a testing shortage.
And keyboard device will not accord with variable name of rc.conf by
order to connect an USB keyboard to.

 I always liked the idea b), but haven't designed it yet.

I like b) plan, too.

--
Toshihiko ARAI


-/etc/usbd.conf-
# This entry changes a console keyboard to an USB keyboard when connected it.
# And switch back to keyboard just before that when disconnected.
#
device USB keyboard
devname ukbd[0-9]+
attach  /etc/usb_kbd ${DEVNAME} start
detach  /etc/usb_kbd ${DEVNAME} stop

-/etc/usb_kbd-
#!/bin/sh -
#
# $FreeBSD$
#
# usb_kbd devname [start|stop]
#
# example: usb_kbd ukbd0 start
#

# Suck in the configuration variables
#
if [ -r /etc/defaults/rc.conf ]; then
. /etc/defaults/rc.conf
source_rc_confs
elif [ -r /etc/rc.conf ]; then
. /etc/rc.conf
fi

kbdhist=/var/run/usb_kbd.hist
kbddev=
ttydev=/dev/ttyv0
devname=$1
shift
startstop=$1
shift

case ${startstop} in
[Ss][Tt][Aa][Rr][Tt] | '')
# To change system console by insertion of USB keyboard.
#
# Acquire a keyboard device name from a message of
# kbd1 at ukbd0 of dmesg command.
#
kbddev=`dmesg | sed -n -e /at ${devname}\\$/h \
   -e '${ g
  s///p
}'`
[ -z ${kbddev} ]  kbddev=kbd1 # XXX
kbdcontrol -k /dev/${kbddev}  ${ttydev} || exit

# Append pair of device name into history file.
echo ${kbddev} ${devname}  ${kbdhist}

# You can use following four variables.
# For example,
#   keymap_ukbd0=jp.106x
# and rc.conf(5) may be helpful for you.
#
eval keymap=\$keymap_${devname}
eval keyrate=\$keyrate_${devname}
eval keybell=\$keybell_${devname}
eval keychange=\$keychange_${devname}

# Reference from src/etc/rc.syscons
# keymap
#
case ${keymap} in
[Nn][Oo] | '')
;;
*)
kbdcontrol  ${ttydev} -l ${keymap}
;;
esac

# keyrate
#
case ${keyrate} in
[Nn][Oo] | '')
;;
*)
kbdcontrol  ${ttydev} -r ${keyrate}
;;
esac

# keybell
#
case ${keybell} in
[Nn][Oo] | '')
;;
*)
kbdcontrol  ${ttydev} -b ${keybell}
;;
esac

# change function keys
#
case ${keychange} in
[Nn][Oo] | '')
;;
*)
set - ${keychange}
while [ $# -gt 0 ]; do
kbdcontrol ${ttydev} -f $1 $2
shift; shift
done
;;
esac
;;
*)
# To switch back to keyboard before one by removal of
# USB keyboard.
#
if [ -s ${kbdhist} ]; then
#
# Delete a current keyboard from history file
# and get a last keyboard device name.
#
kbddev=`sed -e / ${devname}\\$/d -e w ${kbdhist}.tmp \
${kbdhist} | sed -n '$s/ .*$//p'`
mv ${kbdhist}.tmp ${kbdhist}
fi
[ -z ${kbddev} ]  kbddev=kbd0
kbdcontrol -k /dev/${kbddev}  ${ttydev}
;;
esac

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



HEADSUP: Linksys cards need flag.

2000-12-18 Thread Toshihiko ARAI

Hi folks, for mobile users.

Linksys Fast Ethernet PCCARD cards supported by the ed driver now
require the addition of flag 0x8 to their config line in
pccard.conf(5).  This flag is not optional.  These Linksys cards will
not be recognized without it.

The old code tried to automatically probe for these cards.  However,
these probes sometimes caused non-Linksys cards to hang.
I wanted to avoid introducing a new flag if I could, but I had no
other solution.

The description in pccard.conf(5) should be as follows:

card "corega" "FEther PCC-TXF"
config  auto "ed" ? 0x8

I fixed all the entries for the Linksys type card that I could find in
etc/defaults/pccard.conf.

Please notify me if I have missed any.

--
Toshihiko ARAI / [EMAIL PROTECTED]
http://www.jp.FreeBSD.org/PAO/LAPTOP_SURVEY/index.html


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message