mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-22 07:05:54 +00:00
Changes included (and more): 1. Dynamic RAM merge 2. Real-time page scan and allocation 3. Cache compression 4. Real-time IRQ checks 5. Dynamic I/O allocation for Java heap 6. Java page migration 7. Contiguous memory allocation 8. Idle pages tracking 9. Per CPU RAM usage tracking 10. ARM NEON scalar multiplication library 11. NEON/ARMv8 crypto extensions 12. NEON SHA, Blake, RIPEMD crypto extensions 13. Parallel NEON crypto engine for multi-algo based CPU stress reduction
32 lines
707 B
C
32 lines
707 B
C
// SPDX-License-Identifier: ISC
|
|
/*
|
|
* Copyright (c) 2019 Broadcom
|
|
*/
|
|
#ifndef __BRCMF_XTLV_H
|
|
#define __BRCMF_XTLV_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/bits.h>
|
|
|
|
/* bcm type(id), length, value with w/16 bit id/len. The structure below
|
|
* is nominal, and is used to support variable length id and type. See
|
|
* xtlv options below.
|
|
*/
|
|
struct brcmf_xtlv {
|
|
u16 id;
|
|
u16 len;
|
|
u8 data[];
|
|
};
|
|
|
|
enum brcmf_xtlv_option {
|
|
BRCMF_XTLV_OPTION_ALIGN32 = BIT(0),
|
|
BRCMF_XTLV_OPTION_IDU8 = BIT(1),
|
|
BRCMF_XTLV_OPTION_LENU8 = BIT(2),
|
|
};
|
|
|
|
int brcmf_xtlv_data_size(int dlen, u16 opts);
|
|
void brcmf_xtlv_pack_header(struct brcmf_xtlv *xtlv, u16 id, u16 len,
|
|
const u8 *data, u16 opts);
|
|
|
|
#endif /* __BRCMF_XTLV_H */
|