uos_download.c

概要

 43 /* contains code to download uos on MIC card */

公開関数


private macros

 53 #define MIC_ICR_INTVEC_SHIFT 0
 54 #define MIC_DMA_INTERRUPT_VECTOR 229    // Host->Card Interrupt Vector#
 55
 56 #define APERTURE_SEGMENT_SIZE   ((1) * 1024 * 1024 * 1024ULL)
 57
 58 #define UOS_RESERVE_SIZE_MIN    ((128) * 1024 * 1024)
 59 #define OS_RESERVE_SIZE_MIN ((32) * 1024 * 1024)
 60 #define UOS_RESERVE_SIZE_MAX    (((4) * 1024 * 1024 * 1024ULL) - ((4) * 1024))
 61 #define UOS_RESERVE_PERCENT 50
 62
 63 #define UOS_WATCHDOG_TIMEOUT    5000 // default watchdog timeout in milliseconds
 64
 65 #define PCIE_CLASS_CODE(x)          ((x) >> 24 )
 66
 67 /* zombie class code as per the HAS is 0xFF
 68  * but on KNC, we found it as 0x03
 69  */
 70 #define ZOMBIE_CLASS_CODE           0x03
 71 #define DISABLE_BAR                 0x02
 72 #define RESET_FAILED_F2     12870
 73 #define RESET_FAILED_F4     13382

内部関数


structure

  • tmpqp

variables

  • mic_data
  • ramoops_count

private variables

  • ramoops_dir
  • etc_comp

Copyright

  1 /*
  2  * Intel MIC Platform Software Stack (MPSS)
  3  *
  4  * Copyright 2010-2012 Intel Corporation.
  5  *
  6  * This program is free software; you can redistribute it and/or modify
  7  * it under the terms of the GNU General Public License, version 2, as
  8  * published by the Free Software Foundation.
  9  *
 10  * This program is distributed in the hope that it will be useful, but
 11  * WITHOUT ANY WARRANTY; without even the implied warranty of
 12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 13  * General Public License for more details.
 14  *
 15  * You should have received a copy of the GNU General Public License
 16  * along with this program; if not, write to the Free Software
 17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
 18  * USA.
 19  *
 20  * Disclaimer: The codes contained in these modules may be specific to
 21  * the Intel Software Development Platform codenamed: Knights Ferry, and
 22  * the Intel product codenamed: Knights Corner, and are not backward
 23  * compatible with other Intel products. Additionally, Intel will NOT
 24  * support the codes or instruction set in future products.
 25  *
 26  * Intel offers no warranty of any kind regarding the code. This code is
 27  * licensed on an "AS IS" basis and Intel is not obligated to provide
 28  * any support, assistance, installation, training, or other services of
 29  * any kind. Intel is also not obligated to provide any updates,
 30  * enhancements or extensions. Intel specifically disclaims any warranty
 31  * of merchantability, non-infringement, fitness for any particular
 32  * purpose, and any other warranty.
 33  *
 34  * Further, Intel disclaims all liability of any kind, including but not
 35  * limited to liability for infringement of any proprietary rights,
 36  * relating to the use of the code, even if Intel is notified of the
 37  * possibility of such liability. Except as expressly stated in an Intel
 38  * license agreement provided with this code and agreed upon with Intel,
 39  * no license, express or implied, by estoppel or otherwise, to any
 40  * intellectual property rights is granted herein.
 41  */
最終更新:2012年11月18日 03:45