git: kernel/apple_ir: Add Apple IR receiver driver.

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Jun 27 23:00:58 PDT 2026


commit 6cc80ee92125321b1c4d8067729faaef67cc9aff
Author: Abdelkader Boudih <dragonflybsd at seuros.com>
Date:   Mon Jun 22 00:57:44 2026 +0000

    kernel/apple_ir: Add Apple IR receiver driver.
    
    USB HID driver for Apple IR receivers found in Mac computers
    (2006-2011 era).  Uses the u4b USB stack with interrupt transfers
    and delivers key events through evdev.
    
    Supports Apple Remote (proprietary 5-byte protocol) and generic NEC
    IR remotes.  Synthetic key-up events are generated via a 125ms callout
    since the hardware sends no release reports.
    
    Add UQ_HID_IGNORE quirks for all Apple IR receiver product IDs so
    uhid(4) does not claim the device first.  DragonFly's newbus probe
    short-circuits on a 0 return, so the quirk is necessary to prevent
    uhid's class-wide HID match from winning.

Summary of changes:
 share/man/man4/Makefile                            |   1 +
 share/man/man4/apple_ir.4                          | 113 +++++
 sys/bus/u4b/quirk/usb_quirk.c                      |   5 +
 sys/bus/u4b/usbdevs                                |   5 +
 sys/conf/files                                     |   1 +
 sys/config/LINT64                                  |   3 +
 sys/dev/apple/Makefile                             |   2 +-
 sys/{bus/u4b/serial/uark => dev/apple/ir}/Makefile |   6 +-
 sys/dev/apple/ir/appleir.c                         | 486 +++++++++++++++++++++
 9 files changed, 618 insertions(+), 4 deletions(-)
 create mode 100644 share/man/man4/apple_ir.4
 copy sys/{bus/u4b/serial/uark => dev/apple/ir}/Makefile (54%)
 create mode 100644 sys/dev/apple/ir/appleir.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6cc80ee92125321b1c4d8067729faaef67cc9aff


-- 
DragonFly BSD source repository


More information about the Commits mailing list