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
9898 } __packed;
9999
100100 enum {
101− SWITCHTEC_CFG0_RUNNING = 0x04,
102− SWITCHTEC_CFG1_RUNNING = 0x05,
103− SWITCHTEC_IMG0_RUNNING = 0x03,
104− SWITCHTEC_IMG1_RUNNING = 0x07,
101+ SWITCHTEC_GEN3_CFG0_RUNNING = 0x04,
102+ SWITCHTEC_GEN3_CFG1_RUNNING = 0x05,
103+ SWITCHTEC_GEN3_IMG0_RUNNING = 0x03,
104+ SWITCHTEC_GEN3_IMG1_RUNNING = 0x07,
105105 };
106106
107107 struct sys_info_regs {