Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Commit [22a876] Maximize Restore History

support usb-uirt on FreeBSD

The enclosed lightly tested patch allows lirc to build on FreeBSD 8.1
and talk to an usb-uirt. Note that the FreeBSD uftdi driver module
needs to be patch in order to recognize the usb-uirt. The necessary
changes are logged with the FreeBSD bugs database as usb/149900.

Changes:

1) Include <netinet/in.h> when compiling irsend.c.

2) Include <sys/ioctl.h> when compiling lircd.c. For simplicity you
may want to included it on all platforms rather than using the
current conditional include.

3) Mark uinputfd stuff in lircmd.c as specific to linux. I used the
same approach as had already been done for the uinputfd stuff in
lircd.c.

4) Normalize tv in hw_uirt2_common.c mywaitfordata to avoid an
EINVAL when calling select. I used the same approach as had
already been done elsewhere in the code.

5) Also set the character size and hardware handshaking when setting
up the serial port for the usb-uirt.

Signed-off-by: Jarod Wilson <jarod@redhat.com>

John Wehle John Wehle 2010-08-27

Jarod Wilson Jarod Wilson 2010-08-27

changed daemons/hw_uirt2.c
changed daemons/hw_uirt2_common.c
changed daemons/hw_uirt2_raw.c
changed daemons/lircd.c
changed daemons/lircmd.c
changed tools/irsend.c
daemons/hw_uirt2.c Diff Switch to side-by-side view
Loading...
daemons/hw_uirt2_common.c Diff Switch to side-by-side view
Loading...
daemons/hw_uirt2_raw.c Diff Switch to side-by-side view
Loading...
daemons/lircd.c Diff Switch to side-by-side view
Loading...
daemons/lircmd.c Diff Switch to side-by-side view
Loading...
tools/irsend.c Diff Switch to side-by-side view
Loading...