Files
2026-11-02 13:12:04 +01:00

50 lines
1.7 KiB
C

/*
File: unit_protos.h
Author: Neil Cafferkey
Copyright (C) 2002 Neil Cafferkey
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA.
*/
#ifndef UNIT_PROTOS_H
#define UNIT_PROTOS_H
#include "device.h"
struct DevUnit *GetUnit(ULONG unit_num,struct DevBase *base);
struct DevUnit *FindUnit(ULONG unit_num,struct DevBase *base);
struct DevUnit *CreateUnit(ULONG unit_num,struct DevBase *base);
VOID DeleteUnit(struct DevUnit *unit,struct DevBase *base);
VOID ConfigureAdapter(struct DevUnit *unit,struct DevBase *base);
VOID GoOnline(struct DevUnit *unit,struct DevBase *base);
VOID GoOffline(struct DevUnit *unit,struct DevBase *base);
BOOL AddMulticastRange(struct DevUnit *unit,UBYTE *lower_bound,
UBYTE *upper_bound,struct DevBase *base);
BOOL RemMulticastRange(struct DevUnit *unit,UBYTE *lower_bound,
UBYTE *upper_bound,struct DevBase *base);
struct TypeStats *FindTypeStats(struct DevUnit *unit,struct MinList *list,
ULONG packet_type,struct DevBase *base);
VOID FlushUnit(struct DevUnit *unit,UBYTE last_queue,BYTE error,
struct DevBase *base);
#endif