2012-05-10 00:25:02 +08:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* This file is machine-generated; DO NOT EDIT! */
|
|
|
|
#ifndef __GXIO_USB_HOST_LINUX_RPC_H__
|
|
|
|
#define __GXIO_USB_HOST_LINUX_RPC_H__
|
|
|
|
|
|
|
|
#include <hv/iorpc.h>
|
|
|
|
|
|
|
|
#include <hv/drv_usb_host_intf.h>
|
|
|
|
#include <asm/page.h>
|
|
|
|
#include <gxio/kiorpc.h>
|
|
|
|
#include <gxio/usb_host.h>
|
|
|
|
#include <linux/string.h>
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <asm/pgtable.h>
|
|
|
|
|
|
|
|
#define GXIO_USB_HOST_OP_CFG_INTERRUPT IORPC_OPCODE(IORPC_FORMAT_KERNEL_INTERRUPT, 0x1800)
|
|
|
|
#define GXIO_USB_HOST_OP_REGISTER_CLIENT_MEMORY IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x1801)
|
|
|
|
#define GXIO_USB_HOST_OP_GET_MMIO_BASE IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x8000)
|
|
|
|
#define GXIO_USB_HOST_OP_CHECK_MMIO_OFFSET IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x8001)
|
|
|
|
|
2013-09-17 01:52:45 +08:00
|
|
|
int gxio_usb_host_cfg_interrupt(gxio_usb_host_context_t *context, int inter_x,
|
2012-05-10 00:25:02 +08:00
|
|
|
int inter_y, int inter_ipi, int inter_event);
|
|
|
|
|
2013-09-17 01:52:45 +08:00
|
|
|
int gxio_usb_host_register_client_memory(gxio_usb_host_context_t *context,
|
2012-05-10 00:25:02 +08:00
|
|
|
HV_PTE pte, unsigned int flags);
|
|
|
|
|
2013-09-17 01:52:45 +08:00
|
|
|
int gxio_usb_host_get_mmio_base(gxio_usb_host_context_t *context,
|
2012-05-10 00:25:02 +08:00
|
|
|
HV_PTE *base);
|
|
|
|
|
2013-09-17 01:52:45 +08:00
|
|
|
int gxio_usb_host_check_mmio_offset(gxio_usb_host_context_t *context,
|
2012-05-10 00:25:02 +08:00
|
|
|
unsigned long offset, unsigned long size);
|
|
|
|
|
|
|
|
#endif /* !__GXIO_USB_HOST_LINUX_RPC_H__ */
|