aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/AVR/multi/PAL/cfg-arduino_mini/halconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/AVR/multi/PAL/cfg-arduino_mini/halconf.h')
0 files changed, 0 insertions, 0 deletions
#n52'>52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
/*
 * 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: Jimi Xenidis <jimix@watson.ibm.com>
 */

#include <xen/config.h>
#include <xen/types.h>
#include <xen/sched.h>
#include <xen/init.h>
#include <public/xen.h>
#include <asm/current.h>
#include <asm/papr.h>
#include <asm/hcalls.h>

#define DABR_BT (1UL << 2)
#define DABR_DW (1UL << 1)
#define DABR_DR (1UL << 0)

#define DABRX_BT (1UL << 3)
#define DABRX_HYP (1UL << 2)
#define DABRX_PNH (1UL << 1)
#define DABRX_PRO (1UL << 0)

static inline int has_dabrx(void) { return 1; }

static void h_set_dabr(struct cpu_user_regs *regs)