Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / networks / rtl8139 / unit.h
blob9a507c8cbcce1d600f8659492dc946e4d39b7e8d
1 #ifndef _UNIT_H_
2 #define _UNIT_H_
4 /*
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston,
18 MA 02111-1307, USA.
21 #include <exec/types.h>
22 #include <exec/resident.h>
23 #include <exec/io.h>
24 #include <exec/ports.h>
25 #include <exec/errors.h>
27 #include <devices/sana2.h>
28 #include <devices/sana2specialstats.h>
29 #include <devices/newstyle.h>
31 #include <utility/utility.h>
32 #include <utility/tagitem.h>
33 #include <utility/hooks.h>
35 #include <proto/exec.h>
36 #include <proto/dos.h>
37 #include <proto/battclock.h>
39 #include <stdlib.h>
41 #include "rtl8139.h"
42 #include LC_LIBDEFS_FILE
44 struct RTL8139Unit *CreateUnit(LIBBASETYPEPTR, OOP_Object *, ULONG, char *, char *);
45 void DeleteUnit(struct RTL8139Base *, struct RTL8139Unit *);
46 void FlushUnit(LIBBASETYPEPTR, struct RTL8139Unit *, UBYTE, BYTE);
47 BOOL AddressFilter(struct RTL8139Base *, struct RTL8139Unit *, UBYTE *);
48 VOID CopyPacket(struct RTL8139Base *, struct RTL8139Unit *, struct IOSana2Req *, UWORD, UWORD, struct eth_frame *);
49 VOID ReportEvents(struct RTL8139Base *, struct RTL8139Unit *, ULONG);
50 struct TypeStats *FindTypeStats(struct RTL8139Base *, struct RTL8139Unit *, struct MinList *, ULONG);
52 BOOL AddMulticastRange(LIBBASETYPEPTR, struct RTL8139Unit *, const UBYTE *, const UBYTE *);
53 BOOL RemMulticastRange(LIBBASETYPEPTR, struct RTL8139Unit *, const UBYTE *, const UBYTE *);
55 #endif //_UNIT_H_