dev-network.c (948ecf219c032e3483b35ba4e162e5eee17d8b77) dev-network.c (8550a02d1239415342959f6a32d178bc05c557cc)
1/*
2 * QEMU USB Net devices
3 *
4 * Copyright (c) 2006 Thomas Sailer
5 * Copyright (c) 2008 Andrzej Zaborowski
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 841 unchanged lines hidden (view full) ---

850}
851
852static void *rndis_queue_response(USBNetState *s, unsigned int length)
853{
854 struct rndis_response *r =
855 g_malloc0(sizeof(struct rndis_response) + length);
856
857 if (QTAILQ_EMPTY(&s->rndis_resp)) {
1/*
2 * QEMU USB Net devices
3 *
4 * Copyright (c) 2006 Thomas Sailer
5 * Copyright (c) 2008 Andrzej Zaborowski
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 841 unchanged lines hidden (view full) ---

850}
851
852static void *rndis_queue_response(USBNetState *s, unsigned int length)
853{
854 struct rndis_response *r =
855 g_malloc0(sizeof(struct rndis_response) + length);
856
857 if (QTAILQ_EMPTY(&s->rndis_resp)) {
858 usb_wakeup(s->intr);
858 usb_wakeup(s->intr, 0);
859 }
860
861 QTAILQ_INSERT_TAIL(&s->rndis_resp, r, entries);
862 r->length = length;
863
864 return &r->buf[0];
865}
866

--- 583 unchanged lines hidden ---
859 }
860
861 QTAILQ_INSERT_TAIL(&s->rndis_resp, r, entries);
862 r->length = length;
863
864 return &r->buf[0];
865}
866

--- 583 unchanged lines hidden ---