aboutsummaryrefslogtreecommitdiffstats
path: root/lib/lufa/Demos/Device/ClassDriver/GenericHID
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-04-18 16:16:35 -0400
committerGitHub <noreply@github.com>2017-04-18 16:16:35 -0400
commitd926ba22a2d08fe5006221c7784f7d1f9a808c8c (patch)
tree1051433a46cf6ea51d09985f42085e5b93fcc4aa /lib/lufa/Demos/Device/ClassDriver/GenericHID
parent7a16a30e6a69a3210cbcda8bab012ba1c1d99a12 (diff)
parentffa4c72a893b416da32efef80f4779b8bd48b4bb (diff)
downloadfirmware-d926ba22a2d08fe5006221c7784f7d1f9a808c8c.tar.gz
firmware-d926ba22a2d08fe5006221c7784f7d1f9a808c8c.tar.bz2
firmware-d926ba22a2d08fe5006221c7784f7d1f9a808c8c.zip
Merge pull request #1238 from priyadi/fauxclicky_fix
Faux clicky bug fixes
Diffstat (limited to 'lib/lufa/Demos/Device/ClassDriver/GenericHID')
0 files changed, 0 insertions, 0 deletions
rved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 * Copyright (C) IBM Corp. 2005
 *
 * Authors: Hollis Blanchard <hollisb@us.ibm.com>
 */

#ifndef _ASM_IO_H_
#define _ASM_IO_H_

#include <xen/types.h>
#include <asm/processor.h>

#define IO_SPACE_LIMIT 0xffff

extern unsigned int watchdog_on;
extern ulong isa_io_base;

#define inb(port)       in_8((void *)((ulong)(port) + isa_io_base))
#define outb(val, port) out_8((void *)((ulong)(port) + isa_io_base), val)
#define inw(port)       in_le16((void *)((ulong)(port) + isa_io_base))
#define outw(val, port) out_le16((void *)((ulong)(port) + isa_io_base), val)
#define inl(port)       in_le32((void *)((ulong)(port) + isa_io_base))
#define outl(val, port) out_le32((void *)((ulong)(port) + isa_io_base), val)

#define ioremap(x,l) (void __iomem *)(x)
#define readb(port) in_8((void *)(port))
#define writeb(val, port) out_8((void *)(port), val)

extern char *vgabase;
#define vga_writeb(val, port) out_8((void *)((ulong)(port) + vgabase), val)

extern u8 in_8(const volatile u8 *addr);
extern void out_8(volatile u8 *addr, int val);
extern u32 in_32(const volatile u32 *addr);
extern void out_32(volatile u32 *addr, int val);
extern int in_le16(const volatile unsigned short *addr);
extern void out_le16(volatile unsigned short *addr, int val);
extern unsigned in_le32(const volatile unsigned *addr);
extern void out_le32(volatile unsigned *addr, int val);

#define in_be8 in_8
#define in_be16 in_16
#define in_be32 in_32
#define out_be8 out_8
#define out_be16 out_16
#define out_be32 out_32

#define readw(port) in_le16((void *)(port))
#define readl(port) in_le32((void *)(port))
#define writew(val, port) out_le16((void *)(port), val)
#define writel(val, port) out_le32((void *)(port), val)

#define barrier() __asm__ __volatile__("": : :"memory")

#endif