/* SPDX-License-Identifier: GPL-2.0-only */ /* * Definitions for RTL818x hardware * * Copyright 2007 Michael Wu <[email protected]> * Copyright 2007 Andrea Merello <[email protected]> * * Based on the r8187 driver, which is: * Copyright 2005 Andrea Merello <[email protected]>, et al. */ #ifndef RTL818X_H #define RTL818X_H struct rtl818x_csr { … } __packed; /* These are addresses with NON-standard usage. * They have offsets very far from this struct. * I don't like to introduce a ton of "reserved".. * They are for RTL8187SE */ #define REG_ADDR1(addr) … #define REG_ADDR2(addr) … #define REG_ADDR4(addr) … #define FEMR_SE … #define ARFR … #define RFSW_CTRL … #define SW_3W_DB0 … #define SW_3W_DB0_4 … #define SW_3W_DB1 … #define SW_3W_DB1_4 … #define SW_3W_CMD1 … #define PI_DATA_REG … #define SI_DATA_REG … struct rtl818x_rf_ops { … }; /** * enum rtl818x_tx_desc_flags - Tx/Rx flags are common between RTL818X chips * * @RTL818X_TX_DESC_FLAG_NO_ENC: Disable hardware based encryption. * @RTL818X_TX_DESC_FLAG_TX_OK: TX frame was ACKed. * @RTL818X_TX_DESC_FLAG_SPLCP: Use short preamble. * @RTL818X_TX_DESC_FLAG_MOREFRAG: More fragments follow. * @RTL818X_TX_DESC_FLAG_CTS: Use CTS-to-self protection. * @RTL818X_TX_DESC_FLAG_RTS: Use RTS/CTS protection. * @RTL818X_TX_DESC_FLAG_LS: Last segment of the frame. * @RTL818X_TX_DESC_FLAG_FS: First segment of the frame. */ enum rtl818x_tx_desc_flags { … }; enum rtl818x_rx_desc_flags { … }; #endif /* RTL818X_H */