X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fne2k.c;h=9df08716f92acec460746f4b00f81d89533dd0cd;hb=3373500a962dba67f09d120d7db3c2ea1d4beee2;hp=0a14e1ee1be791c526a57ef545a34c086d885c57;hpb=95101a1aef4d5776a9adb7f54fa5ea0c72662a12;p=palacios.git diff --git a/palacios/src/devices/ne2k.c b/palacios/src/devices/ne2k.c index 0a14e1e..9df0871 100644 --- a/palacios/src/devices/ne2k.c +++ b/palacios/src/devices/ne2k.c @@ -29,7 +29,7 @@ #include #include -#ifndef DEBUG_NE2K +#ifndef CONFIG_DEBUG_NE2K #undef PrintDebug #define PrintDebug(fmts, args...) #endif @@ -333,7 +333,7 @@ struct ne2k_context { #define compare_mac(src, dst) !memcmp(src, dst, 6) -#ifdef DEBUG_NE2K +#ifdef CONFIG_DEBUG_NE2K static void dump_state(struct vm_device * dev) { struct ne2k_context *nic_state = (struct ne2k_context *)dev->private_data; int i; @@ -413,7 +413,7 @@ static void ne2k_init_state(struct vm_device * dev) { nic_state->mem[14] = 0x57; nic_state->mem[15] = 0x57; -#ifdef DEBUG_NE2K +#ifdef CONFIG_DEBUG_NE2K dump_state(dev); #endif @@ -558,7 +558,7 @@ static int netif_input(uchar_t *pkt, uint_t size) { static const uchar_t brocast_mac[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; int i; -#ifdef DEBUG_NE2K +#ifdef CONFIG_DEBUG_NE2K PrintDebug("\nNe2k: Packet Received:\nSource:"); for (i = 6; i < 12; i++) { PrintDebug("%x ", pkt[i]); @@ -1146,7 +1146,7 @@ static int ne2k_init_device(struct vm_device * dev) { } -#ifdef DEBUG_NE2K +#ifdef CONFIG_DEBUG_NE2K dump_state(dev); #endif @@ -1169,7 +1169,7 @@ static int ne2k_deinit_device(struct vm_device *dev) { } -static struct vm_device_ops dev_ops = { +static struct v3_device_ops dev_ops = { .init = ne2k_init_device, .deinit = ne2k_deinit_device, .reset = ne2k_reset_device,