brintos

brintos / linux-shallow public Read only

0
0
Text · 909 B · 600658e Raw
31 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2/* Copyright (c)  2020 Intel Corporation */3 4bool igc_reg_test(struct igc_adapter *adapter, u64 *data);5bool igc_eeprom_test(struct igc_adapter *adapter, u64 *data);6bool igc_link_test(struct igc_adapter *adapter, u64 *data);7 8struct igc_reg_test {9	u16 reg;10	u8 array_len;11	u8 test_type;12	u32 mask;13	u32 write;14};15 16/* In the hardware, registers are laid out either singly, in arrays17 * spaced 0x40 bytes apart, or in contiguous tables.  We assume18 * most tests take place on arrays or single registers (handled19 * as a single-element array) and special-case the tables.20 * Table tests are always pattern tests.21 *22 * We also make provision for some required setup steps by specifying23 * registers to be written without any read-back testing.24 */25 26#define PATTERN_TEST	127#define SET_READ_TEST	228#define TABLE32_TEST	329#define TABLE64_TEST_LO	430#define TABLE64_TEST_HI	531