if_arge.c (192946) | if_arge.c (194059) |
---|---|
1/*- 2 * Copyright (c) 2009, Oleksandr Tymoshenko 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 92 unchanged lines hidden (view full) --- 101static int arge_probe(device_t); 102static void arge_reset_dma(struct arge_softc *); 103static int arge_resume(device_t); 104static int arge_rx_ring_init(struct arge_softc *); 105static int arge_tx_ring_init(struct arge_softc *); 106#ifdef DEVICE_POLLING 107static void arge_poll(struct ifnet *, enum poll_cmd, int); 108#endif | 1/*- 2 * Copyright (c) 2009, Oleksandr Tymoshenko 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 92 unchanged lines hidden (view full) --- 101static int arge_probe(device_t); 102static void arge_reset_dma(struct arge_softc *); 103static int arge_resume(device_t); 104static int arge_rx_ring_init(struct arge_softc *); 105static int arge_tx_ring_init(struct arge_softc *); 106#ifdef DEVICE_POLLING 107static void arge_poll(struct ifnet *, enum poll_cmd, int); 108#endif |
109static void arge_shutdown(device_t); | 109static int arge_shutdown(device_t); |
110static void arge_start(struct ifnet *); 111static void arge_start_locked(struct ifnet *); 112static void arge_stop(struct arge_softc *); 113static int arge_suspend(device_t); 114 115static void arge_rx_locked(struct arge_softc *); 116static void arge_tx_locked(struct arge_softc *); 117static void arge_intr(void *); --- 336 unchanged lines hidden (view full) --- 454static int 455arge_resume(device_t dev) 456{ 457 458 panic("%s", __func__); 459 return 0; 460} 461 | 110static void arge_start(struct ifnet *); 111static void arge_start_locked(struct ifnet *); 112static void arge_stop(struct arge_softc *); 113static int arge_suspend(device_t); 114 115static void arge_rx_locked(struct arge_softc *); 116static void arge_tx_locked(struct arge_softc *); 117static void arge_intr(void *); --- 336 unchanged lines hidden (view full) --- 454static int 455arge_resume(device_t dev) 456{ 457 458 panic("%s", __func__); 459 return 0; 460} 461 |
462static void | 462static int |
463arge_shutdown(device_t dev) 464{ 465 struct arge_softc *sc; 466 467 sc = device_get_softc(dev); 468 469 ARGE_LOCK(sc); 470 arge_stop(sc); 471 ARGE_UNLOCK(sc); | 463arge_shutdown(device_t dev) 464{ 465 struct arge_softc *sc; 466 467 sc = device_get_softc(dev); 468 469 ARGE_LOCK(sc); 470 arge_stop(sc); 471 ARGE_UNLOCK(sc); |
472 473 return (0); |
|
472} 473 474static int 475arge_miibus_readreg(device_t dev, int phy, int reg) 476{ 477 struct arge_softc * sc = device_get_softc(dev); 478 int i, result; 479 uint32_t addr = 0x1000 | (phy << MAC_MII_PHY_ADDR_SHIFT) --- 1171 unchanged lines hidden --- | 474} 475 476static int 477arge_miibus_readreg(device_t dev, int phy, int reg) 478{ 479 struct arge_softc * sc = device_get_softc(dev); 480 int i, result; 481 uint32_t addr = 0x1000 | (phy << MAC_MII_PHY_ADDR_SHIFT) --- 1171 unchanged lines hidden --- |