summaryrefslogtreecommitdiff
path: root/src/bios_device.h
blob: 8e76e1ab6a0e38e2f4f8c6d46203646420f44929 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 *  Copyright (c) 2006 Dell, Inc.
 *  by Matt Domsch <Matt_Domsch@dell.com>
 *  Licensed under the GNU General Public license, version 2.
 */
#ifndef BIOS_DEVICE_H_INCLUDED
#define BIOS_DEVICE_H_INCLUDED

#include <pci/pci.h>
#include "list.h"
#include "eths.h"
#include "pci.h"
#include "pcmcia.h"
#include "naming_policy.h"


struct bios_device {
	struct list_head node;
	struct network_device *netdev;
	struct pci_device *pcidev;
	struct pcmcia_device *pcmciadev;
	char bios_name[IFNAMSIZ];
};

static inline int is_pci(const struct bios_device *dev)
{
	return dev->pcidev != NULL;
}

static inline int is_pcmcia(const struct bios_device *dev)
{
	return dev->pcmciadev != NULL;
}

#endif /* BIOS_DEVICE_H_INCLUDED */