Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ice/ice_osdep.h
/* SPDX-License-Identifier: BSD-3-Clause */ | /* SPDX-License-Identifier: BSD-3-Clause */ | ||||
/* Copyright (c) 2022, Intel Corporation | /* Copyright (c) 2023, Intel Corporation | ||||
* All rights reserved. | * All rights reserved. | ||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
* modification, are permitted provided that the following conditions are met: | * modification, are permitted provided that the following conditions are met: | ||||
* | * | ||||
* 1. Redistributions of source code must retain the above copyright notice, | * 1. Redistributions of source code must retain the above copyright notice, | ||||
* this list of conditions and the following disclaimer. | * this list of conditions and the following disclaimer. | ||||
* | * | ||||
▲ Show 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | |||||
device_t ice_hw_to_dev(struct ice_hw *hw); | device_t ice_hw_to_dev(struct ice_hw *hw); | ||||
/* configure hw->debug_mask to enable debug prints */ | /* configure hw->debug_mask to enable debug prints */ | ||||
void ice_debug(struct ice_hw *hw, uint64_t mask, char *fmt, ...) __printflike(3, 4); | void ice_debug(struct ice_hw *hw, uint64_t mask, char *fmt, ...) __printflike(3, 4); | ||||
void ice_debug_array(struct ice_hw *hw, uint64_t mask, uint32_t rowsize, | void ice_debug_array(struct ice_hw *hw, uint64_t mask, uint32_t rowsize, | ||||
uint32_t groupsize, uint8_t *buf, size_t len); | uint32_t groupsize, uint8_t *buf, size_t len); | ||||
void ice_info_fwlog(struct ice_hw *hw, uint32_t rowsize, uint32_t groupsize, | void ice_info_fwlog(struct ice_hw *hw, uint32_t rowsize, uint32_t groupsize, | ||||
uint8_t *buf, size_t len); | uint8_t *buf, size_t len); | ||||
#define ice_fls(_n) flsl(_n) | |||||
#define ice_info(_hw, _fmt, args...) \ | #define ice_info(_hw, _fmt, args...) \ | ||||
device_printf(ice_hw_to_dev(_hw), (_fmt), ##args) | device_printf(ice_hw_to_dev(_hw), (_fmt), ##args) | ||||
#define ice_warn(_hw, _fmt, args...) \ | #define ice_warn(_hw, _fmt, args...) \ | ||||
device_printf(ice_hw_to_dev(_hw), (_fmt), ##args) | device_printf(ice_hw_to_dev(_hw), (_fmt), ##args) | ||||
#define DIVIDE_AND_ROUND_UP howmany | #define DIVIDE_AND_ROUND_UP howmany | ||||
▲ Show 20 Lines • Show All 442 Lines • Show Last 20 Lines |