Fixed binary search: no more infinite loops when vendor is unknown.
[tangerine.git] / workbench / devs / networks / etherlink3 / unit_protos.h
blobb10922827a83929f050a53b280d1848dd44b0946
1 /*
3 File: unit_protos.h
4 Author: Neil Cafferkey
5 Copyright (C) 2002 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 generation, UWORD bus,
32 struct DevBase *base);
33 VOID DeleteUnit(struct DevUnit *unit, struct DevBase *base);
34 BOOL InitialiseAdapter(struct DevUnit *unit, BOOL reinsertion,
35 struct DevBase *base);
36 VOID ConfigureAdapter(struct DevUnit *unit, struct DevBase *base);
37 VOID GoOnline(struct DevUnit *unit, struct DevBase *base);
38 VOID GoOffline(struct DevUnit *unit, struct DevBase *base);
39 BOOL AddMulticastRange(struct DevUnit *unit, const UBYTE *lower_bound,
40 const UBYTE *upper_bound, struct DevBase *base);
41 BOOL RemMulticastRange(struct DevUnit *unit, const UBYTE *lower_bound,
42 const UBYTE *upper_bound, struct DevBase *base);
43 struct TypeStats *FindTypeStats(struct DevUnit *unit, struct MinList *list,
44 ULONG packet_type, struct DevBase *base);
45 VOID FlushUnit(struct DevUnit *unit, UBYTE last_queue, BYTE error,
46 struct DevBase *base);
47 BOOL StatusInt(REG(a1, struct DevUnit *unit), REG(a6, APTR int_code));
48 VOID UpdateStats(struct DevUnit *unit, struct DevBase *base);
51 #endif