Fix up find_pci_device so that it can be used for scanning for devices

*other* than the main boot device.
This commit is contained in:
Michael Brown
2005-04-12 18:04:03 +00:00
parent eb8f730d63
commit 762fa9a478
5 changed files with 66 additions and 44 deletions

View File

@@ -3,6 +3,7 @@
#include "stdint.h"
#include "nic.h"
#include "pci.h"
/* Need to check the packing of this struct if Etherboot is ported */
struct dev_id {
@@ -17,9 +18,13 @@ struct dev_id {
#define DEV_ID_SIZE 8
struct dev {
struct dev_operations *dev_op;
const char *name;
struct dev_id devid; /* device ID string (sent to DHCP server) */
struct dev_operations *dev_op;
/* All possible bus types */
union {
struct pci_device pci;
};
/* All possible device types */
union {
struct nic nic;