Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  ice_osdep.h

  Sprache: C
 

/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (c) 2018, Intel Corporation. */

#ifndef _ICE_OSDEP_H_
#define _ICE_OSDEP_H_

#include <linux/types.h>
#include <linux/ctype.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/bitops.h>
#include <linux/ethtool.h>
#include <linux/etherdevice.h>
#include <linux/if_ether.h>
#include <linux/iopoll.h>
#include <linux/pci_ids.h>
#ifndef CONFIG_64BIT
#include <linux/io-64-nonatomic-lo-hi.h>
#endif
#include <net/udp_tunnel.h>

#define wr32(a, reg, value) writel((value), ((a)->hw_addr + (reg)))
#define rd32(a, reg)  readl((a)->hw_addr + (reg))
#define wr64(a, reg, value) writeq((value), ((a)->hw_addr + (reg)))
#define rd64(a, reg)  readq((a)->hw_addr + (reg))

#define rd32_poll_timeout(a, addr, val, cond, delay_us, timeout_us) \
 read_poll_timeout(rd32, val, cond, delay_us, timeout_us, false, a, addr)

#define ice_flush(a)  rd32((a), GLGEN_STAT)
#define ICE_M(m, s)  ((m ## U) << (s))

struct ice_dma_mem {
 void *va;
 dma_addr_t pa;
 size_t size;
};

struct ice_hw;
struct device *ice_hw_to_dev(struct ice_hw *hw);

#ifdef CONFIG_DYNAMIC_DEBUG
#define ice_debug(hw, type, fmt, args...) \
 dev_dbg(ice_hw_to_dev(hw), fmt, ##args)

#define _ice_debug_array(hw, type, prefix, rowsize, groupsize, buf, len) \
 print_hex_dump_debug(prefix, DUMP_PREFIX_OFFSET,   \
        rowsize, groupsize, buf, len, false)
#else /* CONFIG_DYNAMIC_DEBUG */
#define ice_debug(hw, type, fmt, args...)   \
do {        \
 if ((type) & (hw)->debug_mask)    \
  dev_info(ice_hw_to_dev(hw), fmt, ##args); \
while (0)

#ifdef DEBUG
#define _ice_debug_array(hw, type, prefix, rowsize, groupsize, buf, len) \
do {        \
 if ((type) & (hw)->debug_mask)    \
  print_hex_dump_debug(prefix, DUMP_PREFIX_OFFSET,\
         rowsize, groupsize, buf, \
         len, false);  \
while (0)
#else /* DEBUG */
#define _ice_debug_array(hw, type, prefix, rowsize, groupsize, buf, len) \
do {        \
 struct ice_hw *hw_l = hw;    \
 if ((type) & (hw_l)->debug_mask) {   \
  u16 len_l = len;    \
  u8 *buf_l = buf;    \
  int i;      \
  for (i = 0; i < (len_l - 16); i += 16)  \
   ice_debug(hw_l, type, "0x%04X  %16ph\n",\
      i, ((buf_l) + i));  \
  if (i < len_l)     \
   ice_debug(hw_l, type, "0x%04X  %*ph\n", \
      i, ((len_l) - i), ((buf_l) + i));\
 }       \
while (0)
#endif /* DEBUG */
#endif /* CONFIG_DYNAMIC_DEBUG */

#define ice_debug_array(hw, type, rowsize, groupsize, buf, len) \
 _ice_debug_array(hw, type, KBUILD_MODNAME, rowsize, groupsize, buf, len)

#define ice_debug_array_w_prefix(hw, type, prefix, buf, len) \
 _ice_debug_array(hw, type, prefix, 161, buf, len)

#endif /* _ICE_OSDEP_H_ */

Messung V0.5 in Prozent
C=93 H=91 G=91

¤ Dauer der Verarbeitung: 0.9 Sekunden  (vorverarbeitet am  2026-06-07) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002