/* * 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_ */
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
common.h | File | 1.4 KB | 0644 |
|
dma_queue.h | File | 5.14 KB | 0644 |
|
iorpc_globals.h | File | 1.36 KB | 0644 |
|
iorpc_mpipe.h | File | 6.04 KB | 0644 |
|
iorpc_mpipe_info.h | File | 1.74 KB | 0644 |
|
iorpc_trio.h | File | 4.05 KB | 0644 |
|
iorpc_uart.h | File | 1.44 KB | 0644 |
|
iorpc_usb_host.h | File | 1.71 KB | 0644 |
|
kiorpc.h | File | 872 B | 0644 |
|
mpipe.h | File | 72.81 KB | 0644 |
|
trio.h | File | 11.68 KB | 0644 |
|
uart.h | File | 3.35 KB | 0644 |
|
usb_host.h | File | 2.8 KB | 0644 |
|