~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/tile/gxio/iorpc_uart.c

Version: ~ [ linux-5.2-rc1 ] ~ [ linux-5.1.2 ] ~ [ linux-5.0.16 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.43 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.119 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.176 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.179 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.139 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.67 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.39.4 ] ~ [ linux-2.6.38.8 ] ~ [ linux-2.6.37.6 ] ~ [ linux-2.6.36.4 ] ~ [ linux-2.6.35.14 ] ~ [ linux-2.6.34.15 ] ~ [ linux-2.6.33.20 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * Copyright 2013 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 #include "gxio/iorpc_uart.h"
 17 
 18 struct cfg_interrupt_param {
 19         union iorpc_interrupt interrupt;
 20 };
 21 
 22 int gxio_uart_cfg_interrupt(gxio_uart_context_t *context, int inter_x,
 23                             int inter_y, int inter_ipi, int inter_event)
 24 {
 25         struct cfg_interrupt_param temp;
 26         struct cfg_interrupt_param *params = &temp;
 27 
 28         params->interrupt.kernel.x = inter_x;
 29         params->interrupt.kernel.y = inter_y;
 30         params->interrupt.kernel.ipi = inter_ipi;
 31         params->interrupt.kernel.event = inter_event;
 32 
 33         return hv_dev_pwrite(context->fd, 0, (HV_VirtAddr) params,
 34                              sizeof(*params), GXIO_UART_OP_CFG_INTERRUPT);
 35 }
 36 
 37 EXPORT_SYMBOL(gxio_uart_cfg_interrupt);
 38 
 39 struct get_mmio_base_param {
 40         HV_PTE base;
 41 };
 42 
 43 int gxio_uart_get_mmio_base(gxio_uart_context_t *context, HV_PTE *base)
 44 {
 45         int __result;
 46         struct get_mmio_base_param temp;
 47         struct get_mmio_base_param *params = &temp;
 48 
 49         __result =
 50             hv_dev_pread(context->fd, 0, (HV_VirtAddr) params, sizeof(*params),
 51                          GXIO_UART_OP_GET_MMIO_BASE);
 52         *base = params->base;
 53 
 54         return __result;
 55 }
 56 
 57 EXPORT_SYMBOL(gxio_uart_get_mmio_base);
 58 
 59 struct check_mmio_offset_param {
 60         unsigned long offset;
 61         unsigned long size;
 62 };
 63 
 64 int gxio_uart_check_mmio_offset(gxio_uart_context_t *context,
 65                                 unsigned long offset, unsigned long size)
 66 {
 67         struct check_mmio_offset_param temp;
 68         struct check_mmio_offset_param *params = &temp;
 69 
 70         params->offset = offset;
 71         params->size = size;
 72 
 73         return hv_dev_pwrite(context->fd, 0, (HV_VirtAddr) params,
 74                              sizeof(*params), GXIO_UART_OP_CHECK_MMIO_OFFSET);
 75 }
 76 
 77 EXPORT_SYMBOL(gxio_uart_check_mmio_offset);
 78 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp