diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2015-07-17 09:12:32 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-08-14 14:00:30 +1000 |
commit | d78a7b6da63543b0de2a0794b1f9cefe93ac47e4 (patch) | |
tree | 6413f56e0ca3c6b0608c00482ca2200b194f5882 /include | |
parent | 9af2d0b1bd46cb35026f7eb9fa3b1e4d8e131534 (diff) | |
download | skiboot-d78a7b6da63543b0de2a0794b1f9cefe93ac47e4.zip skiboot-d78a7b6da63543b0de2a0794b1f9cefe93ac47e4.tar.gz skiboot-d78a7b6da63543b0de2a0794b1f9cefe93ac47e4.tar.bz2 |
hw/phb3: Remove struct rtt_entry
Nobody is using it except calculating the RTE table size. The
patch removes it.
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/phb3.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/phb3.h b/include/phb3.h index c15f5d2..3accd9e 100644 --- a/include/phb3.h +++ b/include/phb3.h @@ -99,10 +99,7 @@ * Entries are 2 bytes indexed by PCIe RID */ #define RTT_TABLE_ENTRIES 0x10000 -#define RTT_TABLE_SIZE (RTT_TABLE_ENTRIES * sizeof(struct rtt_entry)) -struct rtt_entry { - uint16_t pe_num; -}; +#define RTT_TABLE_SIZE 0x20000 /* IVT Table : MSI Interrupt vectors * state. * @@ -301,7 +298,7 @@ struct phb3 { const __be64 *lane_eq; unsigned int max_link_speed; - uint16_t rte_cache[RTT_TABLE_SIZE/2]; + uint16_t rte_cache[RTT_TABLE_ENTRIES]; uint8_t peltv_cache[PELTV_TABLE_SIZE]; uint64_t lxive_cache[8]; uint64_t ive_cache[IVT_TABLE_ENTRIES]; |