aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ixp4xx/harddisk
Commit message (Expand)AuthorAgeFilesLines
* ixp4xx: remove unmaintained targetAdrian Schmutzler2020-01-083-46/+0
* treewide: remove kmod-usb-core from DEVICE_PACKAGESAdrian Schmutzler2019-10-061-1/+1
* ixp4xx: use usb-*-pci where appropriateJonas Gorski2015-05-291-1/+1
* target/linux/*: kmod-fs-ext{2,3} RIPJohn Crispin2014-07-101-1/+1
* kernel: add missing USB configuration symbols after r34501Florian Fainelli2012-12-071-0/+2
* target: refresh all target configs with kconfig.plGabor Juhos2012-10-291-1/+1
* dont explicitly select wireless-tools. rely on the drivers that need them to ...John Crispin2012-09-281-1/+1
* targets: replace madwifi in profiles with ath5k, madwifi is unmaintainedFelix Fietkau2012-03-191-1/+1
* switch from ext2 to ext4 (w/o) journalingImre Kaloz2010-11-221-2/+1
* sort all target config filesImre Kaloz2009-11-111-9/+9
* ixp4xx/fsg3: Added ext3 to kernel for ext3 rootfs on internal diskRod Whitby2008-05-011-1/+1
* ixp4xx/harddisk/config-default: Enable ext2 and disable ext3 extensionsRod Whitby2008-03-251-4/+1
* ixp4xx: Rename fsg3 subtarget to harddisk to better reflect the intention of ...Rod Whitby2007-12-073-0/+48
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 */
/******************************************************************************
 * compat.c
 * 
 * Implementations of legacy hypercalls. These call through to the new
 * hypercall after doing necessary argument munging.
 */

#include <xen/config.h>
#include <xen/guest_access.h>
#include <xen/hypercall.h>

#ifndef COMPAT
typedef long ret_t;
#endif

/* Legacy hypercall (as of 0x00030202). */
ret_t do_physdev_op_compat(XEN_GUEST_HANDLE(physdev_op_t) uop)
{
    struct physdev_op op;

    if ( unlikely(copy_from_guest(&op, uop, 1) != 0) )
        return -EFAULT;

    return do_physdev_op(op.cmd, guest_handle_from_ptr(&uop.p->u, void));
}

#ifndef COMPAT

/* Legacy hypercall (as of 0x00030202). */
long do_event_channel_op_compat(XEN_GUEST_HANDLE(evtchn_op_t) uop)
{
    struct evtchn_op op;

    if ( unlikely(copy_from_guest(&op, uop, 1) != 0) )
        return -EFAULT;

    return do_event_channel_op(op.cmd, guest_handle_from_ptr(&uop.p->u, void));
}

#endif