~ubuntu-branches/ubuntu/natty/lirc/natty-proposed

« back to all changes in this revision

Viewing changes to daemons/hw_uirt2.c

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello
  • Date: 2010-04-02 15:06:19 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20100402150619-y1z8c1yqv621a11o
Tags: 0.8.7~pre2-0ubuntu1
* Update to 0.8.7~pre2
  - Fixes issues with lirc on maverick. (LP: #620498)
* Add lirc-in-kernel-ioctls.patch to use ioctls from the kernel for drivers.
* Drop patches upstream now:
  - debian/patches/appleir_repeat_issue.patch
  - debian/patches/hauppauge-tv-card.patch
  - debian/patches/lirc-i2c-2.6.patch
  - debian/patches/lirc_dev-2.6.33.patch
* Add updated-driver-names.patch 
* Refresh patches:
  - debian/patches/02_Makefile.in
  - debian/patches/13-warning-cleanup
* Update extra transmitter and remote databases to not reference atiusb.
* debian/control:
  - Update branches to be owned by ~mythbuntu-dev
* Disable in-kernel-support when starting lircd, and re-enable when
  stopping.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*      $Id: hw_uirt2.c,v 5.4 2007/07/29 18:20:11 lirc Exp $      */
 
1
/*      $Id: hw_uirt2.c,v 5.6 2010/04/11 18:50:38 lirc Exp $      */
2
2
 
3
3
/****************************************************************************
4
4
 ** hw_uirt2.c **************************************************************
31
31
# include <config.h>
32
32
#endif
33
33
 
 
34
#ifndef LIRC_IRTTY
 
35
#define LIRC_IRTTY "/dev/ttyS0"
 
36
#endif
 
37
 
34
38
#include <stdio.h>
35
39
#include <stdlib.h>
36
40
#include <fcntl.h>
65
69
 
66
70
struct hardware hw_uirt2=
67
71
{
68
 
        LIRC_DRIVER_DEVICE,       /* default device */
 
72
        LIRC_IRTTY,               /* default device */
69
73
        -1,                       /* fd */
70
74
        LIRC_CAN_REC_LIRCCODE,    /* features */
71
75
        0,                        /* send_mode */
72
76
        LIRC_MODE_LIRCCODE,       /* rec_mode */
73
77
        8*NUMBYTES,               /* code_length */
74
78
        uirt2_init,               /* init_func */
75
 
        NULL,                     /* config_func */
76
79
        uirt2_deinit,             /* deinit_func */
77
80
        NULL,                     /* send_func */
78
81
        uirt2_rec,                /* rec_func */