1 /* 2 * Copyright 2012 Tilera Corporation. All Rights Reserved. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation, version 2. 7 * 8 * This program is distributed in the hope that it will be useful, but 9 * WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or 11 * NON INFRINGEMENT. See the GNU General Public License for 12 * more details. 13 */ 14 15 /* This file is machine-generated; DO NOT EDIT! */ 16 #ifndef __GXIO_USB_HOST_LINUX_RPC_H__ 17 #define __GXIO_USB_HOST_LINUX_RPC_H__ 18 19 #include <hv/iorpc.h> 20 21 #include <hv/drv_usb_host_intf.h> 22 #include <asm/page.h> 23 #include <gxio/kiorpc.h> 24 #include <gxio/usb_host.h> 25 #include <linux/string.h> 26 #include <linux/module.h> 27 #include <asm/pgtable.h> 28 29 #define GXIO_USB_HOST_OP_CFG_INTERRUPT IORPC_OPCODE(IORPC_FORMAT_KERNEL_INTERRUPT, 0x1800) 30 #define GXIO_USB_HOST_OP_REGISTER_CLIENT_MEMORY IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x1801) 31 #define GXIO_USB_HOST_OP_GET_MMIO_BASE IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x8000) 32 #define GXIO_USB_HOST_OP_CHECK_MMIO_OFFSET IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x8001) 33 34 int gxio_usb_host_cfg_interrupt(gxio_usb_host_context_t *context, int inter_x, 35 int inter_y, int inter_ipi, int inter_event); 36 37 int gxio_usb_host_register_client_memory(gxio_usb_host_context_t *context, 38 HV_PTE pte, unsigned int flags); 39 40 int gxio_usb_host_get_mmio_base(gxio_usb_host_context_t *context, 41 HV_PTE *base); 42 43 int gxio_usb_host_check_mmio_offset(gxio_usb_host_context_t *context, 44 unsigned long offset, unsigned long size); 45 46 #endif /* !__GXIO_USB_HOST_LINUX_RPC_H__ */ 47