| 7 | #include "ionic_mac_api.h" |
| 8 | |
| 9 | int32_t |
| 10 | ionic_init_mac(struct ionic_hw *hw) |
| 11 | { |
| 12 | int err = 0; |
| 13 | |
| 14 | IONIC_PRINT_CALL(); |
| 15 | |
| 16 | /* |
| 17 | * Set the mac type |
| 18 | */ |
| 19 | ionic_set_mac_type(hw); |
| 20 | |
| 21 | switch (hw->mac.type) { |
| 22 | case IONIC_MAC_CAPRI: |
| 23 | break; |
| 24 | default: |
| 25 | err = -EINVAL; |
| 26 | break; |
| 27 | } |
| 28 | |
| 29 | return err; |
| 30 | } |
| 31 | |
| 32 | int32_t |
| 33 | ionic_set_mac_type(struct ionic_hw *hw) |
no test coverage detected