From 1c055e55a242a33e574e48be530e06770a210dcd Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 19 Feb 2024 03:26:26 +0000 Subject: [PATCH] add r8169 read mac form eeprom --- kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/include/bcm_mpool_pub.h | 29 ++++++++--------------------- 1 files changed, 8 insertions(+), 21 deletions(-) diff --git a/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/include/bcm_mpool_pub.h b/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/include/bcm_mpool_pub.h index 047660b..81a370c 100644 --- a/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/include/bcm_mpool_pub.h +++ b/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/include/bcm_mpool_pub.h @@ -1,4 +1,3 @@ -/* SPDX-License-Identifier: GPL-2.0 */ /* * Memory pools library, Public interface * @@ -36,14 +35,16 @@ * and instrumentation on top of the heap, without modifying the heap * allocation implementation. * - * Copyright (C) 1999-2019, Broadcom Corporation - * + * Portions of this code are copyright (c) 2022 Cypress Semiconductor Corporation + * + * Copyright (C) 1999-2017, Broadcom Corporation + * * Unless you and Broadcom execute a separate written software license * agreement governing use of this software, this software is licensed to you * under the terms of the GNU General Public License version 2 (the "GPL"), * available at http://www.broadcom.com/licenses/GPLv2.php, with the * following added to such license: - * + * * As a special exception, the copyright holders of this software give you * permission to link this software with independent modules, and to copy and * distribute the resulting executable under terms of your choice, provided that @@ -51,7 +52,7 @@ * the license of that module. An independent module is a module which is not * derived from this software. The special exception does not apply to any * modifications of the software. - * + * * Notwithstanding the above, under no circumstances may you combine this * software in any way with any other Broadcom software provided under a license * other than the GPL, without Broadcom's express prior written consent. @@ -59,14 +60,13 @@ * * <<Broadcom-WL-IPTag/Open:>> * - * $Id: bcm_mpool_pub.h 514727 2014-11-12 03:02:48Z $ + * $Id: bcm_mpool_pub.h 535090 2015-02-17 04:49:01Z $ */ #ifndef _BCM_MPOOL_PUB_H #define _BCM_MPOOL_PUB_H 1 #include <typedefs.h> /* needed for uint16 */ - /* ************************************************************************** @@ -98,14 +98,12 @@ struct bcm_mp_pool; typedef struct bcm_mp_pool *bcm_mp_pool_h; - /* * To make instrumentation more readable, every memory * pool must have a readable name. Pool names are up to * 8 bytes including '\0' termination. (7 printable characters.) */ #define BCM_MP_NAMELEN 8 - /* * Type definition for pool statistics. @@ -118,7 +116,6 @@ uint16 high_water; /* Max number of allocated objects. */ uint16 failed_alloc; /* Failed allocations. */ } bcm_mp_stats_t; - /* ************************************************************************** @@ -141,7 +138,6 @@ * BCME_NOMEM Initialization failed due to no memory. Object must not be used. */ int bcm_mpm_init(struct osl_info *osh, int max_pools, bcm_mpm_mgr_h *mgrp); - /* * bcm_mpm_deinit() - de-initialize the whole memory pool system. @@ -187,7 +183,6 @@ const char poolname[BCM_MP_NAMELEN], bcm_mp_pool_h *newp); - /* * bcm_mpm_delete_prealloc_pool() - Delete a memory pool. This should only be called after * all memory objects have been freed back to the pool. @@ -226,7 +221,6 @@ const char poolname[BCM_MP_NAMELEN], bcm_mp_pool_h *newp); - /* * bcm_mpm_delete_heap_pool() - Delete a memory pool. This should only be called after * all memory objects have been freed back to the pool. @@ -241,7 +235,6 @@ * */ int bcm_mpm_delete_heap_pool(bcm_mpm_mgr_h mgr, bcm_mp_pool_h *poolp); - /* * bcm_mpm_stats() - Return stats for all pools @@ -259,7 +252,6 @@ */ int bcm_mpm_stats(bcm_mpm_mgr_h mgr, bcm_mp_stats_t *stats, int *nentries); - /* * bcm_mpm_dump() - Display statistics on all pools * @@ -273,7 +265,6 @@ * */ int bcm_mpm_dump(bcm_mpm_mgr_h mgr, struct bcmstrbuf *b); - /* * bcm_mpm_get_obj_size() - The size of memory objects may need to be padded to @@ -296,7 +287,6 @@ */ int bcm_mpm_get_obj_size(bcm_mpm_mgr_h mgr, unsigned int obj_sz, unsigned int *padded_obj_sz); - /* *************************************************************************** * @@ -304,7 +294,6 @@ * *************************************************************************** */ - /* * bcm_mp_alloc() - Allocate a memory pool object. @@ -344,8 +333,7 @@ * other Error getting statistics. * */ -int bcm_mp_stats(bcm_mp_pool_h pool, bcm_mp_stats_t *stats); - +void bcm_mp_stats(bcm_mp_pool_h pool, bcm_mp_stats_t *stats); /* * bcm_mp_dump() - Dump a pool @@ -360,6 +348,5 @@ * */ int bcm_mp_dump(bcm_mp_pool_h pool, struct bcmstrbuf *b); - #endif /* _BCM_MPOOL_PUB_H */ -- Gitblit v1.6.2