HEX
Server: Apache/2.4.18 (Ubuntu)
System: Linux phubuntu06.apexhosting.com 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User: master06 (1000)
PHP: 7.0.33-0ubuntu0.16.04.16
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Upload Files
File: //usr/src/linux-headers-4.4.0-209/arch/tile/include/gxio/common.h
/*
 * Copyright 2012 Tilera Corporation. All Rights Reserved.
 *
 *   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, version 2.
 *
 *   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, GOOD TITLE or
 *   NON INFRINGEMENT.  See the GNU General Public License for
 *   more details.
 */

#ifndef _GXIO_COMMON_H_
#define _GXIO_COMMON_H_

/*
 * Routines shared between the various GXIO device components.
 */

#include <hv/iorpc.h>

#include <linux/types.h>
#include <linux/compiler.h>
#include <linux/io.h>

/* Define the standard gxio MMIO functions using kernel functions. */
#define __gxio_mmio_read8(addr)		readb(addr)
#define __gxio_mmio_read16(addr)	readw(addr)
#define __gxio_mmio_read32(addr)	readl(addr)
#define __gxio_mmio_read64(addr)	readq(addr)
#define __gxio_mmio_write8(addr, val)	writeb((val), (addr))
#define __gxio_mmio_write16(addr, val)	writew((val), (addr))
#define __gxio_mmio_write32(addr, val)	writel((val), (addr))
#define __gxio_mmio_write64(addr, val)	writeq((val), (addr))
#define __gxio_mmio_read(addr)		__gxio_mmio_read64(addr)
#define __gxio_mmio_write(addr, val)	__gxio_mmio_write64((addr), (val))

#endif /* !_GXIO_COMMON_H_ */