|
|
| version 1.3, 2003/12/30 01:01:45 | version 1.4, 2004/02/11 15:05:03 |
|---|---|
| Line 223 struct aue_cdata { | Line 223 struct aue_cdata { |
| #define AUE_INC(x, y) (x) = (x + 1) % y | #define AUE_INC(x, y) (x) = (x + 1) % y |
| struct aue_softc { | struct aue_softc { |
| #if defined(__FreeBSD__) | #if defined(__FreeBSD__) || defined(__DragonFly__) |
| #define GET_MII(sc) (device_get_softc((sc)->aue_miibus)) | #define GET_MII(sc) (device_get_softc((sc)->aue_miibus)) |
| #elif defined(__NetBSD__) | #elif defined(__NetBSD__) |
| #define GET_MII(sc) (&(sc)->aue_mii) | #define GET_MII(sc) (&(sc)->aue_mii) |
| Line 243 struct aue_softc { | Line 243 struct aue_softc { |
| int aue_if_flags; | int aue_if_flags; |
| struct aue_cdata aue_cdata; | struct aue_cdata aue_cdata; |
| struct callout_handle aue_stat_ch; | struct callout_handle aue_stat_ch; |
| #if __FreeBSD_version >= 500000 | #if defined(__FreeBSD__) && __FreeBSD_version >= 500000 |
| struct mtx aue_mtx; | struct mtx aue_mtx; |
| #endif | #endif |
| u_int16_t aue_flags; | u_int16_t aue_flags; |