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

« back to all changes in this revision

Viewing changes to drivers/lirc_it87/lirc_it87.c

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello, Jeremy Yoder, Mario Limonciello
  • Date: 2009-10-12 21:16:10 UTC
  • mfrom: (1.2.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20091012211610-z63bnon17ahmxgd1
Tags: 0.8.6-0ubuntu1
[ Jeremy Yoder ]
* Update to LIRC 0.8.6 release. (LP: #432678)
  - added support for ENE KB3926 revision B/C/D (ENE0100) CIR port
    (found on some notebooks, e.g: Acer Aspire 5720G, HP Pavilion dv5)
    (Maxim Levitsky)
  - New parameter for lircd: --repeat-max
  - merged 1st-gen mceusb device support into lirc_mceusb2,
    renamed lirc_mceusb2 to lirc_mceusb
  - added support for putting iMON receviers into MCE/RC6 mode
  - added input subsystem mouse device support to iMON driver
  - improved iMON driver to handle dual-interface iMON devices
    via a single lirc device, reducing configuration complexity
  - added support for more iMON devices, including proper support
    for touchscreen iMON devices (Rene Harder)
  - improved iMON driver including touchscreen support
  - Linux input support added to lircmd
  - added support for IT8720 CIR port
  - added support for XMP protocol
* Cleanup more_remotes.hwdb
* TODO:  Make changes to the "lircd.conf.atiusb" and
  "lircd.conf.hauppauge" files PATCHES instead of duplicates
* TODO:  Submit "lircd.conf.atiusb" and
  "lircd.conf.hauppauge" file patches upstream again
* Changed lirc init script to create socket in /var/run/lirc/lircd
  as is the new default, but also create a symlink /dev/lircd
  to point to it.  This makes all clients happy, old and new.
* Fix bug in dkms.conf.in, forgot to increment array number
  when adding ene0100 driver.
* Added the extra "Debian-only" remotes and transmitters back
  in, but in a different way.  I created a subdirectory 
  "debian/extras" and copy that to /usr/share/lirc/extras.
  This avoids patching the source.
  NOTE: CONFIG FILES IN BOTH LOCATIONS WILL USE THE "extras"
  VERSION.  DUPLICATE LINES IN lirc.hwdb AND extras/remotes.hwdb
  WILL USE THE extras/remotes.hwdb VERSION.  TRY TO AVOID THIS.
* Added support to build new ene0100 driver
* Update debian/lircd.init.d to reflect new default
  PID location in /var/run/lirc
* Update debian/lircd.init.d to force socket to /dev/lircd
  rather than the new default of /var/run/lirc/lircd
* Add support for new lirc-extras package to
  debian/lirc.postinst
* Remove /etc/lircd.conf link to /etc/lirc since
  0.8.6 defaults to /etc/lirc/lircd.conf now
* Drop 04_man_pages patch, included in upstream
* Drop 16_lirc-gpio in favor of a sed line in debian/rules
* Drop 28_irrecord_resume_support - Doesn't work
  according to upstream
* Drop 36_remove_extra_tekram in favor of a minor
  tweak to debian/lirc.postinst to ignore duplicates
* Drop extra remote control/transmitter patches, move to lirc-extras:
  - 21_atiusb
  - 22_hauppauge_novat_500
  - 23_remove_md8800
  - 24_freecom_dvbt
  - 26_transmitter_lircd.conf
  - 30_medion_md1_remote
  - 31_hauppauge_hvr_1100
  - 32_radioshack_15_2116_remote
  - 33_asus_mycinema_remote
  - 34_nebula_digitaltv_remote
  - 35_general_deviniput
  - 37_msi_tv_anywhere
  - 38_encore_enltv
* Cleaned up a few lintian warnings

[ Mario Limonciello ]
* lirc.init.d:
  - Merge a bunch of whitespace cleanup from debian.
* control:
  - Merge whitespace cleanup from debian.
  - Drop breaks on udev.  We don't have any older version of udev in karmic.
* copyright:
  - Sync from debian.
* watch:
  - Sync from debian.
* links:
  - Don't link to a transmitterdb, this should be provided by lirc-extras.
* rules:
  - Install extra changelog, as mentioned in debian's debian/rules.
* dkms.conf.in:
  - Drop bashisms. (LP: #445175)
* lirc.postinst:
  - On upgrades from earlier versions, require the user to reconfigure
    their remote and transmitter.
* lirc-modules-source.postinst:
  - Update to use the DKMS common postinst template.
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * LIRC driver for ITE IT8712/IT8705 CIR port
 
2
 * LIRC driver for ITE IT8712/IT8705/IT8720 CIR port
3
3
 *
4
 
 * Copyright (C) 2001 Hans-G�nter L�tke Uphues <hg_lu@web.de>
 
4
 * Copyright (C) 2001 Hans-Günter Lütke Uphues <hg_lu@web.de>
5
5
 *
6
6
 * This program is free software; you can redistribute it and/or
7
7
 * modify it under the terms of the GNU General Public License as
18
18
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19
19
 * USA
20
20
 *
21
 
 * ITE IT8705 and IT8712(not tested) CIR-port support for lirc based
 
21
 * ITE IT8705, IT8712(not tested) and IT8720 CIR-port support for lirc based
22
22
 * via cut and paste from lirc_sir.c (C) 2000 Milan Pikula
23
23
 *
24
24
 * Attention: Sendmode only tested with debugging logs
816
816
                return retval;
817
817
        }
818
818
        it87_chipid = it87_read(IT87_CHIP_ID2);
819
 
        if ((it87_chipid != 0x12) && (it87_chipid != 0x05)) {
 
819
        if ((it87_chipid != 0x12) &&
 
820
                (it87_chipid != 0x05) &&
 
821
                (it87_chipid != 0x20)) {
820
822
                printk(KERN_INFO LIRC_DRIVER_NAME
821
 
                       ": no IT8705/12 found, exiting..\n");
 
823
                       ": no IT8705/12/20 found, exiting..\n");
822
824
                retval = -ENXIO;
823
825
                return retval;
824
826
        }
908
910
#if 0
909
911
        unsigned char init_bytes[4] = IT87_INIT;
910
912
 
911
 
        / * Enter MB PnP Mode * /
 
913
        /* Enter MB PnP Mode */
912
914
        outb(init_bytes[0], IT87_ADRPORT);
913
915
        outb(init_bytes[1], IT87_ADRPORT);
914
916
        outb(init_bytes[2], IT87_ADRPORT);
915
917
        outb(init_bytes[3], IT87_ADRPORT);
916
918
 
917
 
        / * deactivate CIR-Device * /
 
919
        /* deactivate CIR-Device */
918
920
        it87_write(IT87_CIR_ACT, 0x0);
919
921
 
920
 
        / * Leaving MB PnP Mode * /
 
922
        /* Leaving MB PnP Mode */
921
923
        it87_write(IT87_CFGCTRL, 0x2);
922
924
#endif
923
925
 
969
971
module_exit(lirc_it87_exit);
970
972
 
971
973
MODULE_DESCRIPTION("LIRC driver for ITE IT8712/IT8705 CIR port");
972
 
MODULE_AUTHOR("Hans-G�nter L�tke Uphues");
 
974
MODULE_AUTHOR("Hans-Günter Lütke Uphues");
973
975
MODULE_LICENSE("GPL");
974
976
 
975
977
module_param(io, int, S_IRUGO);