* eth_em_dev_is_ich8 - Check for ICH8 device * @hw: pointer to the HW structure * * return TRUE for ICH8, otherwise FALSE **/
| 204 | * return TRUE for ICH8, otherwise FALSE |
| 205 | **/ |
| 206 | static bool |
| 207 | eth_em_dev_is_ich8(struct e1000_hw *hw) |
| 208 | { |
| 209 | DEBUGFUNC("eth_em_dev_is_ich8"); |
| 210 | |
| 211 | switch (hw->device_id) { |
| 212 | case E1000_DEV_ID_PCH2_LV_LM: |
| 213 | case E1000_DEV_ID_PCH_LPT_I217_LM: |
| 214 | case E1000_DEV_ID_PCH_LPT_I217_V: |
| 215 | case E1000_DEV_ID_PCH_LPTLP_I218_LM: |
| 216 | case E1000_DEV_ID_PCH_LPTLP_I218_V: |
| 217 | case E1000_DEV_ID_PCH_I218_V2: |
| 218 | case E1000_DEV_ID_PCH_I218_LM2: |
| 219 | case E1000_DEV_ID_PCH_I218_V3: |
| 220 | case E1000_DEV_ID_PCH_I218_LM3: |
| 221 | case E1000_DEV_ID_PCH_SPT_I219_LM: |
| 222 | case E1000_DEV_ID_PCH_SPT_I219_V: |
| 223 | case E1000_DEV_ID_PCH_SPT_I219_LM2: |
| 224 | case E1000_DEV_ID_PCH_SPT_I219_V2: |
| 225 | case E1000_DEV_ID_PCH_LBG_I219_LM3: |
| 226 | case E1000_DEV_ID_PCH_SPT_I219_LM4: |
| 227 | case E1000_DEV_ID_PCH_SPT_I219_V4: |
| 228 | case E1000_DEV_ID_PCH_SPT_I219_LM5: |
| 229 | case E1000_DEV_ID_PCH_SPT_I219_V5: |
| 230 | case E1000_DEV_ID_PCH_CNP_I219_LM6: |
| 231 | case E1000_DEV_ID_PCH_CNP_I219_V6: |
| 232 | case E1000_DEV_ID_PCH_CNP_I219_LM7: |
| 233 | case E1000_DEV_ID_PCH_CNP_I219_V7: |
| 234 | case E1000_DEV_ID_PCH_RPL_I219_LM22: |
| 235 | case E1000_DEV_ID_PCH_RPL_I219_V22: |
| 236 | case E1000_DEV_ID_PCH_RPL_I219_LM23: |
| 237 | case E1000_DEV_ID_PCH_RPL_I219_V23: |
| 238 | |
| 239 | return 1; |
| 240 | default: |
| 241 | return 0; |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | static int |
| 246 | eth_em_dev_init(struct rte_eth_dev *eth_dev) |