Lines Matching +full:save +full:- +full:mac +full:- +full:address
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
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.
18 * these provide simple PCI bus access, without waking up the MAC.
21 * The MAC (uCode processor, etc.) does not need to be powered up for accessing
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
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
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.
254 * Host sets this to request and maintain MAC wakeup, to allow host
255 * access to device-internal resources. Host must wait for
256 * MAC_CLOCK_READY (and !GOING_TO_SLEEP) before accessing non-CSR
262 * Indicates MAC (ucode processor, etc.) is powered up and can run.
266 * init or post-power-down restore of internal SRAM memory.
269 * Later devices (5xxx/6xxx/1xxx) use non-volatile SRAM, and
270 * do not need to save/restore it.
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
418 * do not need to save/restore it.
460 * arbiter without need for the MAC HW to be powered up. This is possible due to
464 * Use iwl_write32()/iwl_read32() family to access these registers. The MAC HW
485 * HBUS (Host-side Bus)
489 * may be powered-down.
493 * to make sure the MAC (uCode processor, etc.) is powered up for accessing
497 * these provide only simple PCI bus access, without waking up the MAC.
504 * First write to address register, then read from or write to data register
505 * to complete the job. Once the address register is set up, accesses to
506 * data registers auto-increment the address by one dword.
507 * Bit usage for address registers (read or write):
508 * 0-31: memory address within device
521 * (e.g. SCD, BSM, etc.). First write to address register,
523 * Bit usage for address registers (read or write):
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: */
639 * HW address related registers *
642 #define CSR_ADDR_BASE(trans) ((trans)->cfg->mac_addr_from_csr)