diff options
author | Bob Gilligan <gilligan@vyatta.com> | 2010-02-05 09:54:11 -0800 |
---|---|---|
committer | Bob Gilligan <gilligan@vyatta.com> | 2010-02-05 09:54:11 -0800 |
commit | e1971e4774a6ebb5ed33a09bdd60afa2c0534b6f (patch) | |
tree | f4fc5aaccb4d9dac43ae7a825df9006532c1a059 /src/bios_device.h | |
download | vyatta-biosdevname-e1971e4774a6ebb5ed33a09bdd60afa2c0534b6f.tar.gz vyatta-biosdevname-e1971e4774a6ebb5ed33a09bdd60afa2c0534b6f.zip |
Initial commit.debian/0.1
Diffstat (limited to 'src/bios_device.h')
-rw-r--r-- | src/bios_device.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/bios_device.h b/src/bios_device.h new file mode 100644 index 0000000..8e76e1a --- /dev/null +++ b/src/bios_device.h @@ -0,0 +1,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 */ |