allwinner_emac.c (8ef94f0bc9167f246b41cb1188bf80dcd84b49fe) | allwinner_emac.c (03dd024ff57733a55cd2e455f361d053c81b1b29) |
---|---|
1/* 2 * Emulation of Allwinner EMAC Fast Ethernet controller and 3 * Realtek RTL8201CP PHY 4 * 5 * Copyright (C) 2014 Beniamino Galvani <b.galvani@gmail.com> 6 * 7 * This model is based on reverse-engineering of Linux kernel driver. 8 * --- 7 unchanged lines hidden (view full) --- 16 * GNU General Public License for more details. 17 * 18 */ 19#include "qemu/osdep.h" 20#include "hw/sysbus.h" 21#include "net/net.h" 22#include "qemu/fifo8.h" 23#include "hw/net/allwinner_emac.h" | 1/* 2 * Emulation of Allwinner EMAC Fast Ethernet controller and 3 * Realtek RTL8201CP PHY 4 * 5 * Copyright (C) 2014 Beniamino Galvani <b.galvani@gmail.com> 6 * 7 * This model is based on reverse-engineering of Linux kernel driver. 8 * --- 7 unchanged lines hidden (view full) --- 16 * GNU General Public License for more details. 17 * 18 */ 19#include "qemu/osdep.h" 20#include "hw/sysbus.h" 21#include "net/net.h" 22#include "qemu/fifo8.h" 23#include "hw/net/allwinner_emac.h" |
24#include "qemu/log.h" |
|
24#include <zlib.h> 25 26static uint8_t padding[60]; 27 28static void mii_set_link(RTL8201CPState *mii, bool link_ok) 29{ 30 if (link_ok) { 31 mii->bmsr |= MII_BMSR_LINK_ST | MII_BMSR_AN_COMP; --- 503 unchanged lines hidden --- | 25#include <zlib.h> 26 27static uint8_t padding[60]; 28 29static void mii_set_link(RTL8201CPState *mii, bool link_ok) 30{ 31 if (link_ok) { 32 mii->bmsr |= MII_BMSR_LINK_ST | MII_BMSR_AN_COMP; --- 503 unchanged lines hidden --- |