Fixed binary search: no more infinite loops when vendor is unknown.
[tangerine.git] / workbench / devs / networks / prism2 / unit_protos.h
blob17aa902733ffa8ff635abb4944f993469cae64dc
1 /*
3 File: unit_protos.h
4 Author: Neil Cafferkey
5 Copyright (C) 2004,2005 Neil Cafferkey
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston,
20 MA 02111-1307, USA.
24 #ifndef UNIT_PROTOS_H
25 #define UNIT_PROTOS_H
28 #include "device.h"
30 struct DevUnit *CreateUnit(ULONG index, APTR card,
31 const struct TagItem *io_tags, UWORD bus, struct DevBase *base);
32 VOID DeleteUnit(struct DevUnit *unit, struct DevBase *base);
33 BOOL InitialiseAdapter(struct DevUnit *unit, BOOL reinsertion,
34 struct DevBase *base);
35 VOID ConfigureAdapter(struct DevUnit *unit, struct DevBase *base);
36 VOID GoOnline(struct DevUnit *unit, struct DevBase *base);
37 VOID GoOffline(struct DevUnit *unit, struct DevBase *base);
38 BOOL AddMulticastRange(struct DevUnit *unit, const UBYTE *lower_bound,
39 const UBYTE *upper_bound, struct DevBase *base);
40 BOOL RemMulticastRange(struct DevUnit *unit, const UBYTE *lower_bound,
41 const UBYTE *upper_bound, struct DevBase *base);
42 struct TypeStats *FindTypeStats(struct DevUnit *unit, struct MinList *list,
43 ULONG packet_type, struct DevBase *base);
44 VOID FlushUnit(struct DevUnit *unit, UBYTE last_queue, BYTE error,
45 struct DevBase *base);
46 BOOL StatusInt(REG(a1, struct DevUnit *unit), REG(a6, APTR int_code));
47 VOID UpdateStats(struct DevUnit *unit, struct DevBase *base);
48 VOID UpdateSignalQuality(struct DevUnit *unit, struct DevBase *base);
51 #endif