-/* The following allows configuring the driver when it's compiled into the kernel */
-#ifndef MODULE
-static int __init cpcihp_generic_setup(char* str)
-{
- char* p;
- unsigned long tmp;
-
- if(!str)
- return -EINVAL;
- bridge = str;
-
- p = strchr(str, ',');
- str = p + 1;
- if(!(p && *str && *p == ','))
- goto setup_error;
- tmp = simple_strtoul(str, &p, 0);
- if(p == str || tmp > 0xff) {
- err("hotplug bus first slot number out of range");
- goto setup_error;
- }
- first_slot = (u8) tmp;
-
- str = p + 1;
- if(!(*str && *p == ','))
- return -EINVAL;
- tmp = simple_strtoul(str, &p, 0);
- if(p == str || tmp > 0xff) {
- err("hotplug bus last slot number out of range");
- goto setup_error;
- }
- last_slot = (u8) tmp;
-
- str = p + 1;
- if(!(*str && *p == ','))
- goto setup_error;
- tmp = simple_strtoul(str, &p, 0);
- if(p == str || tmp > 0xffff) {
- err("port number out of range");
- goto setup_error;
- }
- port = (u16) tmp;
-
- str = p + 1;
- if(!(*str && *p == ','))
- goto setup_error;
- tmp = simple_strtoul(str, &p, 0);
- if(p == str) {
- err("invalid #ENUM bit number");
- goto setup_error;
- }
- enum_bit = (u8) tmp;
-
- str = p + 1;
- if(*str && *p == ',') {
- tmp = simple_strtoul(str, &p, 0);
- if(p != str)
- debug = (int) tmp;
- }
- return 0;
-setup_error:
- bridge = NULL;
- return -EINVAL;
-}
-
-__setup("cpcihp_generic=", cpcihp_generic_setup);
-#endif
-