History

PCI/switchtec: Rename generation-specific constants

Gen4 hardware will have different values for the SWITCHTEC_X_RUNNING and SWITCHTEC_IOCTL_NUM_PARTITIONS, so rename them with GEN3 in their name. No functional changes intended.

Logan Gunthorpe committed 6 years ago

Commit fcccd281 parent 20857473 files · +13 −10Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/switchtec.h+4−4
@@ -98,10 +98,10 @@ struct sw_event_regs { · 97 unmodified lines
98} __packed;98} __packed;
99 99
100enum {100enum {
101 SWITCHTEC_CFG0_RUNNING = 0x04,101 SWITCHTEC_GEN3_CFG0_RUNNING = 0x04,
102 SWITCHTEC_CFG1_RUNNING = 0x05,102 SWITCHTEC_GEN3_CFG1_RUNNING = 0x05,
103 SWITCHTEC_IMG0_RUNNING = 0x03,103 SWITCHTEC_GEN3_IMG0_RUNNING = 0x03,
104 SWITCHTEC_IMG1_RUNNING = 0x07,104 SWITCHTEC_GEN3_IMG1_RUNNING = 0x07,
105};105};
106 106
107struct sys_info_regs {107struct sys_info_regs {