26456d1900aba0e903e6e1beec552396618322e2vboxsync * drm_linux_list.h -- linux list functions for the BSDs.
26456d1900aba0e903e6e1beec552396618322e2vboxsync * Created: Mon Apr 7 14:30:16 1999 by anholt@FreeBSD.org
26456d1900aba0e903e6e1beec552396618322e2vboxsync * Copyright 2003 Eric Anholt
26456d1900aba0e903e6e1beec552396618322e2vboxsync * All Rights Reserved.
26456d1900aba0e903e6e1beec552396618322e2vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
26456d1900aba0e903e6e1beec552396618322e2vboxsync * copy of this software and associated documentation files (the "Software"),
26456d1900aba0e903e6e1beec552396618322e2vboxsync * to deal in the Software without restriction, including without limitation
26456d1900aba0e903e6e1beec552396618322e2vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
26456d1900aba0e903e6e1beec552396618322e2vboxsync * and/or sell copies of the Software, and to permit persons to whom the
26456d1900aba0e903e6e1beec552396618322e2vboxsync * Software is furnished to do so, subject to the following conditions:
26456d1900aba0e903e6e1beec552396618322e2vboxsync * The above copyright notice and this permission notice (including the next
26456d1900aba0e903e6e1beec552396618322e2vboxsync * paragraph) shall be included in all copies or substantial portions of the
26456d1900aba0e903e6e1beec552396618322e2vboxsync * Software.
26456d1900aba0e903e6e1beec552396618322e2vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26456d1900aba0e903e6e1beec552396618322e2vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26456d1900aba0e903e6e1beec552396618322e2vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26456d1900aba0e903e6e1beec552396618322e2vboxsync * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
26456d1900aba0e903e6e1beec552396618322e2vboxsync * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
26456d1900aba0e903e6e1beec552396618322e2vboxsync * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
26456d1900aba0e903e6e1beec552396618322e2vboxsync * OTHER DEALINGS IN THE SOFTWARE.
26456d1900aba0e903e6e1beec552396618322e2vboxsync * Eric Anholt <anholt@FreeBSD.org>
26456d1900aba0e903e6e1beec552396618322e2vboxsync#pragma ident "%Z%%M% %I% %E% SMI"
26456d1900aba0e903e6e1beec552396618322e2vboxsync/* Cheat, assume the list_head is at the start of the struct */
26456d1900aba0e903e6e1beec552396618322e2vboxsync#define list_entry(entry, type, member) (type *)(entry)
26456d1900aba0e903e6e1beec552396618322e2vboxsync for (entry = (head)->next; entry != head; entry = (entry)->next)
26456d1900aba0e903e6e1beec552396618322e2vboxsync#endif /* _DRM_LINUX_LIST_H_ */