Fixed binary search: no more infinite loops when vendor is unknown.
[tangerine.git] / workbench / devs / networks / prism2 / pci_protos.h
blobc3f54a593f428f33f9edb839430ffe9280b7f3a9
1 /*
3 File: pci_protos.h
4 Author: Neil Cafferkey
5 Copyright (C) 2004 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 PCI_PROTOS_H
25 #define PCI_PROTOS_H
28 #include "device.h"
30 ULONG GetPCICount(struct DevBase *base);
31 struct DevUnit *GetPCIUnit(ULONG index, struct DevBase *base);
32 VOID DeletePCIUnit(struct DevUnit *unit, struct DevBase *base);
33 BOOL IsCardCompatible(UWORD vendor_id, UWORD product_id,
34 struct DevBase *base);
35 UWORD GetBusType(UWORD product_id, struct DevBase *base);
37 #endif