diff options
author | Dan Streetman <ddstreet@ieee.org> | 2015-02-17 15:38:53 -0500 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-02-19 12:20:28 +1100 |
commit | 34b3786798f09650c4bf0d0ff92654fdb79748d3 (patch) | |
tree | 47508c1ca700c7418527b6ad0990870f48a3cf80 /include/phb3-regs.h | |
parent | b3749779d1c9ba4b5b1b81de3ddfa0da1b830138 (diff) | |
download | talos-skiboot-34b3786798f09650c4bf0d0ff92654fdb79748d3.tar.gz talos-skiboot-34b3786798f09650c4bf0d0ff92654fdb79748d3.zip |
change direct use of LSH to SETFIELD
In several places, a "bus/device/function" u16 was being directly
or'ed into an address using a left-shift. This should be using
SETFIELD, especially now that all _LSH have been removed.
Change use of BDFN (bus/device/function) field from using plain
left-shift to using SETFIELD(). Add proper BDFN field definitions.
Signed-off-by: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/phb3-regs.h')
-rw-r--r-- | include/phb3-regs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/phb3-regs.h b/include/phb3-regs.h index 144c344a..b3f71601 100644 --- a/include/phb3-regs.h +++ b/include/phb3-regs.h @@ -43,6 +43,7 @@ #define PHB_CA_BUS PPC_BITMASK(4,11) #define PHB_CA_DEV PPC_BITMASK(12,16) #define PHB_CA_FUNC PPC_BITMASK(17,19) +#define PHB_CA_BDFN PPC_BITMASK(4,19) /* bus,dev,func */ #define PHB_CA_REG PPC_BITMASK(20,31) #define PHB_CA_PE PPC_BITMASK(40,47) #define PHB_LOCK1 0x148 |