2 * Copyright 2012 Tilera Corporation. All Rights Reserved.
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.
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
15 /* This file is machine-generated; DO NOT EDIT! */
16 #include "gxio/iorpc_mpipe_info.h"
19 struct enumerate_aux_param {
20 _gxio_mpipe_link_name_t name;
21 _gxio_mpipe_link_mac_t mac;
24 int gxio_mpipe_info_enumerate_aux(gxio_mpipe_info_context_t * context,
26 _gxio_mpipe_link_name_t * name,
27 _gxio_mpipe_link_mac_t * mac)
30 struct enumerate_aux_param temp;
31 struct enumerate_aux_param *params = &temp;
34 hv_dev_pread(context->fd, 0, (HV_VirtAddr) params, sizeof(*params),
35 (((uint64_t) idx << 32) |
36 GXIO_MPIPE_INFO_OP_ENUMERATE_AUX));
43 EXPORT_SYMBOL(gxio_mpipe_info_enumerate_aux);
45 struct get_mmio_base_param {
49 int gxio_mpipe_info_get_mmio_base(gxio_mpipe_info_context_t * context,
53 struct get_mmio_base_param temp;
54 struct get_mmio_base_param *params = &temp;
57 hv_dev_pread(context->fd, 0, (HV_VirtAddr) params, sizeof(*params),
58 GXIO_MPIPE_INFO_OP_GET_MMIO_BASE);
64 EXPORT_SYMBOL(gxio_mpipe_info_get_mmio_base);
66 struct check_mmio_offset_param {
71 int gxio_mpipe_info_check_mmio_offset(gxio_mpipe_info_context_t * context,
72 unsigned long offset, unsigned long size)
74 struct check_mmio_offset_param temp;
75 struct check_mmio_offset_param *params = &temp;
77 params->offset = offset;
80 return hv_dev_pwrite(context->fd, 0, (HV_VirtAddr) params,
82 GXIO_MPIPE_INFO_OP_CHECK_MMIO_OFFSET);
85 EXPORT_SYMBOL(gxio_mpipe_info_check_mmio_offset);