mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
448fa8eb4c
Signed-off-by: Alex Forencich <alex@alexforencich.com>
24 lines
650 B
C
24 lines
650 B
C
// SPDX-License-Identifier: BSD-2-Clause-Views
|
|
/*
|
|
* Copyright (c) 2021-2023 The Regents of the University of California
|
|
*/
|
|
|
|
#ifndef REG_BLOCK_H
|
|
#define REG_BLOCK_H
|
|
|
|
#include <stdint.h>
|
|
#include <unistd.h>
|
|
|
|
struct mqnic_reg_block {
|
|
uint32_t type;
|
|
uint32_t version;
|
|
volatile uint8_t *base;
|
|
volatile uint8_t *regs;
|
|
};
|
|
|
|
struct mqnic_reg_block *mqnic_enumerate_reg_block_list(volatile uint8_t *base, size_t offset, size_t size);
|
|
struct mqnic_reg_block *mqnic_find_reg_block(struct mqnic_reg_block *list, uint32_t type, uint32_t version, int index);
|
|
void mqnic_free_reg_block_list(struct mqnic_reg_block *list);
|
|
|
|
#endif /* REG_BLOCK_H */
|