aboutsummaryrefslogtreecommitdiffstats
path: root/lib/lufa/Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c
diff options
context:
space:
mode:
authorKonstantin Đorđević <vomindoraan@gmail.com>2019-02-11 22:04:59 +0100
committerKonstantin Đorđević <vomindoraan@gmail.com>2019-03-02 15:15:54 +0100
commitd163b22dfbb4a9092e3b7fc2b18a679e03080a58 (patch)
tree16491b6add54f49576f2e3794ac7ada0bcd42e35 /lib/lufa/Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c
parentea23035c53162ee88ca02533d49cb931fdce3bb2 (diff)
downloadfirmware-d163b22dfbb4a9092e3b7fc2b18a679e03080a58.tar.gz
firmware-d163b22dfbb4a9092e3b7fc2b18a679e03080a58.tar.bz2
firmware-d163b22dfbb4a9092e3b7fc2b18a679e03080a58.zip
Add RGB controls and numpad Unicode to Melody96 keymap
Diffstat (limited to 'lib/lufa/Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c')
0 files changed, 0 insertions, 0 deletions
href='#n135'>135 136 137 138 139
/******************************************************************************
 * ioport_emulate.c
 * 
 * Handle I/O port access quirks of various platforms.
 */

#include <xen/config.h>
#include <xen/init.h>
#include <xen/sched.h>
#include <xen/dmi.h>

/* Function pointer used to handle platform specific I/O port emulation. */
extern void (*ioemul_handle_quirk)(
    u8 opcode, char *io_emul_stub, struct cpu_user_regs *regs);

static void ioemul_handle_proliant_quirk(
    u8 opcode, char *io_emul_stub, struct cpu_user_regs *regs)
{
    uint16_t port = regs->edx;
    uint8_t value = regs->eax;

    if ( (opcode != 0xee) || (port != 0xcd4) || !(value & 0x80) )
        return;

    /*    pushf */
    io_emul_stub[0] = 0x9c;