0001
0002 #ifndef _LINUX_AHCI_REMAP_H
0003 #define _LINUX_AHCI_REMAP_H
0004
0005 #include <linux/sizes.h>
0006
0007 #define AHCI_VSCAP 0xa4
0008 #define AHCI_REMAP_CAP 0x800
0009
0010
0011 #define AHCI_REMAP_N_DCC 0x880
0012
0013
0014 #define AHCI_REMAP_N_OFFSET SZ_16K
0015 #define AHCI_REMAP_N_SIZE SZ_16K
0016
0017 #define AHCI_MAX_REMAP 3
0018
0019 static inline unsigned int ahci_remap_dcc(int i)
0020 {
0021 return AHCI_REMAP_N_DCC + i * 0x80;
0022 }
0023
0024 static inline unsigned int ahci_remap_base(int i)
0025 {
0026 return AHCI_REMAP_N_OFFSET + i * AHCI_REMAP_N_SIZE;
0027 }
0028
0029 #endif