Lines Matching +full:gpio +full:- +full:in +full:- +full:accum
1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
3 * Copyright (C) 2005-2014, 2018-2024 Intel Corporation
4 * Copyright (C) 2013-2014 Intel Mobile Communications GmbH
13 * whenever platform supplies power to device, even when device is in
14 * low power states due to driver-invoked device resets
15 * (e.g. CSR_RESET_REG_FLAG_SW_RESET) or uCode-driven power-saving modes.
24 * NOTE: Device does need to be awake in order to read this memory
30 #define CSR_INT_COALESCING (CSR_BASE+0x004) /* accum ints, 32-usec units */
37 #define CSR_FUNC_SCRATCH (CSR_BASE+0x02c) /* Scratch register - used for FW dbg */
45 * 31-16: Reserved
46 * 15-4: Type of device: see CSR_HW_REV_TYPE_xxx definitions
47 * 3-2: Revision step: 0 = A, 1 = B, 2 = C, 3 = D
48 * 1-0: "Dash" (-) value, as in A-1, etc.
57 * 11:8: Step (A - 0x0, B - 0x1, etc)
64 * EEPROM and OTP (one-time-programmable) memory reads
67 * in order to read.
78 * UCODE-DRIVER GP (general purpose) mailbox registers.
114 /* Doorbell - since Bz
123 /* Analog phase-lock-loop configuration */
138 * 3-2: 0 = A, 1 = B, 2 = C, 3 = D step
139 * 1-0: "Dash" (-) value, as in C-1, etc.
147 * Scratch register initial configuration - this is set on init, and read
183 /* interrupt flags in INTA, set by uCode or hardware (e.g. dma),
207 /* interrupt flags in FH (flow handler) (PCI busmaster DMA) */
222 /* GPIO */
239 * Indicates state of (platform's) hardware RF-Kill switch
240 * 26-24: POWER_SAVE_TYPE
241 * Indicates current power-saving mode:
242 * 000 -- No power saving
243 * 001 -- MAC power-down
244 * 010 -- PHY (radio) power-down
245 * 011 -- Error
247 * 9-6: SYS_CONFIG
251 * Indicates MAC is entering a power-saving sleep power-down.
252 * Not a good time to access device-internal resources.
255 * access to device-internal resources. Host must wait for
256 * MAC_CLOCK_READY (and !GOING_TO_SLEEP) before accessing non-CSR
266 * init or post-power-down restore of internal SRAM memory.
268 * SRAM is restored and uCode is in normal operation mode.
269 * Later devices (5xxx/6xxx/1xxx) use non-volatile SRAM, and
375 /* One-time-programmable memory general purpose reg */
376 #define CSR_OTP_GP_REG_DEVICE_SELECT (0x00010000) /* 0 - EEPROM, 1 - OTP */
377 #define CSR_OTP_GP_REG_OTP_ACCESS_MODE (0x00020000) /* 0 - absolute, 1 - relative */
393 * UCODE-DRIVER GP (general purpose) mailbox register 1
404 * Host sets this during RF KILL power-down sequence (HW, SW, CT KILL)
412 * uCode sets this when preparing a power-saving power-down.
413 * uCode resets this when power-up is complete and SRAM is sane.
417 * Later devices (5xxx/6xxx/1xxx) use non-volatile SRAM, and
485 * HBUS (Host-side Bus)
489 * may be powered-down.
506 * data registers auto-increment the address by one dword.
508 * 0-31: memory address within device
524 * 0-15: register address (offset) within device
525 * 24-25: (# bytes - 1) to read or write (e.g. 3 for dword)
536 * Per-Tx-queue write pointer (index, really!)
539 * 0-7: queue write index
540 * 11-8: queue selector
553 * the CSR_INT_COALESCING is an 8 bit register in 32-usec unit
574 /* Those are the masks INSIDE the flags bit-field: */
642 #define CSR_ADDR_BASE(trans) ((trans)->cfg->mac_addr_from_csr)