- static const struct device_file {
- const char *bus;
- const char *file;
- } device_files[] = {
- { .bus = "scsi", .file = "vendor" },
- { .bus = "usb", .file = "idVendor" },
- { .bus = "usb", .file = "iInterface" },
- { .bus = "usb", .file = "bNumEndpoints" },
- { .bus = "usb-serial", .file = "bus" },
- { .bus = "ide", .file = "bus" },
- { .bus = "pci", .file = "vendor" },
- { .bus = "pci_express", .file = "bus" },
- { .bus = "platform", .file = "bus" },
- { .bus = "pcmcia", .file = "bus" },
- { .bus = "i2c", .file = "bus" },
- { .bus = "ieee1394", .file = "node_count" },
- { .bus = "ieee1394", .file = "nodeid" },
- { .bus = "ieee1394", .file = "address" },
- { .bus = "bttv-sub", .file = NULL },
- { .bus = "pnp", .file = "bus" },
- { .bus = "eisa", .file = "bus" },
- { .bus = "serio", .file = "bus" },
- { .bus = "pseudo", .file = "bus" },
- { .bus = "mmc", .file = "bus" },
- { .bus = "macio", .file = "bus" },
- { .bus = "of_platform", .file = "bus" },
- { .bus = "vio", .file = "bus" },
- { .bus = "ecard", .file = "bus" },
- { .bus = "sa1111-rab", .file = "bus" },
- { .bus = "amba", .file = "bus" },
- { .bus = "locomo-bus", .file = "bus" },
- { .bus = "logicmodule", .file = "bus" },
- { .bus = "parisc", .file = "bus" },
- { .bus = "ocp", .file = "bus" },
- { .bus = "dio", .file = "bus" },
- { .bus = "MCA", .file = "bus" },
- { .bus = "wl", .file = "bus" },
- { .bus = "ccwgroup", .file = "bus" },
- { .bus = "css", .file = "bus" },
- { .bus = "ccw", .file = "bus" },
- { .bus = "iucv", .file = "bus" },
- { NULL, NULL }
- };
- const struct device_file *devicefile = NULL;
- int loop;
-
- if (getenv("PHYSDEVBUS") == NULL) {
- dbg("the kernel says, that there is no bus for '%s'", devices_dev->path);
- return 0;