| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: if_wm.c,v 1.726 2021/12/31 14:25:23 riastradh Exp $ */ | | 1 | /* $NetBSD: if_wm.c,v 1.727 2022/02/16 03:15:27 msaitoh Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc. | | 4 | * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * Written by Jason R. Thorpe for Wasabi Systems, Inc. | | 7 | * Written by Jason R. Thorpe for Wasabi Systems, Inc. |
8 | * | | 8 | * |
9 | * Redistribution and use in source and binary forms, with or without | | 9 | * Redistribution and use in source and binary forms, with or without |
10 | * modification, are permitted provided that the following conditions | | 10 | * modification, are permitted provided that the following conditions |
11 | * are met: | | 11 | * are met: |
12 | * 1. Redistributions of source code must retain the above copyright | | 12 | * 1. Redistributions of source code must retain the above copyright |
13 | * notice, this list of conditions and the following disclaimer. | | 13 | * notice, this list of conditions and the following disclaimer. |
14 | * 2. Redistributions in binary form must reproduce the above copyright | | 14 | * 2. Redistributions in binary form must reproduce the above copyright |
| @@ -72,27 +72,27 @@ | | | @@ -72,27 +72,27 @@ |
72 | * | | 72 | * |
73 | * TODO (in order of importance): | | 73 | * TODO (in order of importance): |
74 | * | | 74 | * |
75 | * - Check XXX'ed comments | | 75 | * - Check XXX'ed comments |
76 | * - TX Multi queue improvement (refine queue selection logic) | | 76 | * - TX Multi queue improvement (refine queue selection logic) |
77 | * - Split header buffer for newer descriptors | | 77 | * - Split header buffer for newer descriptors |
78 | * - EEE (Energy Efficiency Ethernet) for I354 | | 78 | * - EEE (Energy Efficiency Ethernet) for I354 |
79 | * - Virtual Function | | 79 | * - Virtual Function |
80 | * - Set LED correctly (based on contents in EEPROM) | | 80 | * - Set LED correctly (based on contents in EEPROM) |
81 | * - Rework how parameters are loaded from the EEPROM. | | 81 | * - Rework how parameters are loaded from the EEPROM. |
82 | */ | | 82 | */ |
83 | | | 83 | |
84 | #include <sys/cdefs.h> | | 84 | #include <sys/cdefs.h> |
85 | __KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.726 2021/12/31 14:25:23 riastradh Exp $"); | | 85 | __KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.727 2022/02/16 03:15:27 msaitoh Exp $"); |
86 | | | 86 | |
87 | #ifdef _KERNEL_OPT | | 87 | #ifdef _KERNEL_OPT |
88 | #include "opt_net_mpsafe.h" | | 88 | #include "opt_net_mpsafe.h" |
89 | #include "opt_if_wm.h" | | 89 | #include "opt_if_wm.h" |
90 | #endif | | 90 | #endif |
91 | | | 91 | |
92 | #include <sys/param.h> | | 92 | #include <sys/param.h> |
93 | #include <sys/systm.h> | | 93 | #include <sys/systm.h> |
94 | #include <sys/callout.h> | | 94 | #include <sys/callout.h> |
95 | #include <sys/mbuf.h> | | 95 | #include <sys/mbuf.h> |
96 | #include <sys/malloc.h> | | 96 | #include <sys/malloc.h> |
97 | #include <sys/kmem.h> | | 97 | #include <sys/kmem.h> |
98 | #include <sys/kernel.h> | | 98 | #include <sys/kernel.h> |
| @@ -10562,27 +10562,26 @@ wm_gmii_setup_phytype(struct wm_softc *s | | | @@ -10562,27 +10562,26 @@ wm_gmii_setup_phytype(struct wm_softc *s |
10562 | break; | | 10562 | break; |
10563 | case MII_MODEL_INTEL_I82579: | | 10563 | case MII_MODEL_INTEL_I82579: |
10564 | new_phytype = WMPHY_82579; | | 10564 | new_phytype = WMPHY_82579; |
10565 | break; | | 10565 | break; |
10566 | case MII_MODEL_INTEL_I217: | | 10566 | case MII_MODEL_INTEL_I217: |
10567 | new_phytype = WMPHY_I217; | | 10567 | new_phytype = WMPHY_I217; |
10568 | break; | | 10568 | break; |
10569 | case MII_MODEL_INTEL_I82580: | | 10569 | case MII_MODEL_INTEL_I82580: |
10570 | new_phytype = WMPHY_82580; | | 10570 | new_phytype = WMPHY_82580; |
10571 | break; | | 10571 | break; |
10572 | case MII_MODEL_INTEL_I350: | | 10572 | case MII_MODEL_INTEL_I350: |
10573 | new_phytype = WMPHY_I350; | | 10573 | new_phytype = WMPHY_I350; |
10574 | break; | | 10574 | break; |
10575 | break; | | | |
10576 | default: | | 10575 | default: |
10577 | break; | | 10576 | break; |
10578 | } | | 10577 | } |
10579 | break; | | 10578 | break; |
10580 | case MII_OUI_yyINTEL: | | 10579 | case MII_OUI_yyINTEL: |
10581 | switch (phy_model) { | | 10580 | switch (phy_model) { |
10582 | case MII_MODEL_yyINTEL_I82562G: | | 10581 | case MII_MODEL_yyINTEL_I82562G: |
10583 | case MII_MODEL_yyINTEL_I82562EM: | | 10582 | case MII_MODEL_yyINTEL_I82562EM: |
10584 | case MII_MODEL_yyINTEL_I82562ET: | | 10583 | case MII_MODEL_yyINTEL_I82562ET: |
10585 | new_phytype = WMPHY_IFE; | | 10584 | new_phytype = WMPHY_IFE; |
10586 | break; | | 10585 | break; |
10587 | case MII_MODEL_yyINTEL_IGP01E1000: | | 10586 | case MII_MODEL_yyINTEL_IGP01E1000: |
10588 | new_phytype = WMPHY_IGP; | | 10587 | new_phytype = WMPHY_IGP; |