aboutsummaryrefslogtreecommitdiffstats
path: root/OpenPGP-Keychain-API/example-app/src
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2014-03-10 23:48:53 +0100
committerDominik Schürmann <dominik@dominikschuermann.de>2014-03-10 23:48:53 +0100
commit3f5de1eac6633f906a7063fe7a6b6d43e9f63a24 (patch)
tree935078b1bb4c0ece6b455be3a3c03989c1d87f0e /OpenPGP-Keychain-API/example-app/src
parent612ad9e6b3ac10d453d30aac334c45e6455e5aef (diff)
parent3cad8b6248d136f21ef4bc4697feada299c8a58e (diff)
downloadopen-keychain-3f5de1eac6633f906a7063fe7a6b6d43e9f63a24.tar.gz
open-keychain-3f5de1eac6633f906a7063fe7a6b6d43e9f63a24.tar.bz2
open-keychain-3f5de1eac6633f906a7063fe7a6b6d43e9f63a24.zip
Merge pull request #390 from uberspot/master
Appropriate save Icon in EditKeyActivity fixes #382
Diffstat (limited to 'OpenPGP-Keychain-API/example-app/src')
0 files changed, 0 insertions, 0 deletions
id='n141' href='#n141'>141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
/*
 * mmconfig.c - Low-level direct PCI config space access via MMCONFIG
 *
 * This is an 64bit optimized version that always keeps the full mmconfig
 * space mapped. This allows lockless config space operation.
 *
 * copied from Linux
 */

#include <xen/mm.h>
#include <xen/acpi.h>
#include <xen/xmalloc.h>
#include <xen/pci.h>
#include <xen/pci_regs.h>

#include "mmconfig.h"

/* Static virtual mapping of the MMCONFIG aperture */
struct mmcfg_virt {
    struct acpi_mcfg_allocation *cfg;
    char __iomem *virt;
};
static struct mmcfg_virt *pci_mmcfg_virt;
static int __initdata mmcfg_pci_segment_shift;

static char __iomem *get_virt(unsigned int seg, unsigned bus)
{
    struct acpi_mcfg_allocation *cfg;
    int cfg_num;

    for (cfg_num = 0; cfg_num < pci_mmcfg_config_num; cfg_num++) {
        cfg = pci_mmcfg_virt[cfg_num].cfg;