revert between 56095 -> 55830 in arch
[AROS.git] / workbench / devs / parallel / parallel_support.c
blob965623e01c88e91e860c591bd0aaf79aa1a08e38
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
7 #include <proto/exec.h>
8 #include <exec/tasks.h>
9 #include <exec/lists.h>
10 #include <exec/memory.h>
12 #include "parallel_intern.h"
14 #include <aros/debug.h>
17 struct ParallelUnit * findUnit(struct parallelbase * ParallelDevice,
18 ULONG unitnum)
20 struct ParallelUnit * pu;
21 ForeachNode(&ParallelDevice->UnitList, pu)
23 if (pu->pu_UnitNum == unitnum)
24 return pu;
26 return NULL;