blob: 5daaa25138ae88fd3f778e0234619fffbc4eba9f [file] [log] [blame]
// Copyright (c) 2019 The Fuchsia Authors.
//
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without
// fee is hereby granted, provided that the above copyright notice and this permission notice appear
// in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
// SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
// AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
// NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
// OF THIS SOFTWARE.
#ifndef SRC_CONNECTIVITY_WLAN_DRIVERS_THIRD_PARTY_BROADCOM_BRCMFMAC_BITS_H_
#define SRC_CONNECTIVITY_WLAN_DRIVERS_THIRD_PARTY_BROADCOM_BRCMFMAC_BITS_H_
#include <stddef.h>
#include <atomic>
bool brcmf_test_and_set_bit_in_array(size_t bit_number, std::atomic<unsigned long>* addr);
bool brcmf_test_and_clear_bit_in_array(size_t bit_number, std::atomic<unsigned long>* addr);
bool brcmf_test_bit_in_array(size_t bit_number, std::atomic<unsigned long>* addr);
void brcmf_clear_bit_in_array(size_t bit_number, std::atomic<unsigned long>* addr);
void brcmf_set_bit_in_array(size_t bit_number, std::atomic<unsigned long>* addr);
#endif // SRC_CONNECTIVITY_WLAN_DRIVERS_THIRD_PARTY_BROADCOM_BRCMFMAC_BITS_H_