The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/dev/iwlwifi/fw/pnvm.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
    2 /******************************************************************************
    3  *
    4  * Copyright(c) 2020-2021 Intel Corporation
    5  *
    6  *****************************************************************************/
    7 
    8 #ifndef __IWL_PNVM_H__
    9 #define __IWL_PNVM_H__
   10 
   11 #include "fw/notif-wait.h"
   12 
   13 #define MVM_UCODE_PNVM_TIMEOUT  (HZ / 4)
   14 
   15 #define MAX_PNVM_NAME  64
   16 
   17 int iwl_pnvm_load(struct iwl_trans *trans,
   18                   struct iwl_notif_wait_data *notif_wait);
   19 
   20 static inline
   21 void iwl_pnvm_get_fs_name(struct iwl_trans *trans,
   22                           u8 *pnvm_name, size_t max_len)
   23 {
   24         int pre_len;
   25 
   26         /*
   27          * The prefix unfortunately includes a hyphen at the end, so
   28          * don't add the dot here...
   29          */
   30         snprintf(pnvm_name, max_len, "%spnvm", trans->cfg->fw_name_pre);
   31 
   32         /* ...but replace the hyphen with the dot here. */
   33         pre_len = strlen(trans->cfg->fw_name_pre);
   34         if (pre_len < max_len && pre_len > 0)
   35                 pnvm_name[pre_len - 1] = '.';
   36 }
   37 
   38 #endif /* __IWL_PNVM_H__ */

Cache object: 70184af56ad6c8300dd20da7ae9e6c90


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.