@@ -50,14 +50,6 @@ static int irqs[16]; /* PIC mode IRQs we're using so far (in case MPS
5050
5151static int init_flag ;
5252
53- /*
54- static int get_max_adapter_speed_1 (struct hotplug_slot *, u8 *, u8);
55-
56- static inline int get_max_adapter_speed (struct hotplug_slot *hs, u8 *value)
57- {
58- return get_max_adapter_speed_1 (hs, value, 1);
59- }
60- */
6153static inline int get_cur_bus_info (struct slot * * sl )
6254{
6355 int rc = 1 ;
@@ -401,69 +393,6 @@ static int get_max_bus_speed(struct slot *slot)
401393 return rc ;
402394}
403395
404- /*
405- static int get_max_adapter_speed_1(struct hotplug_slot *hotplug_slot, u8 *value, u8 flag)
406- {
407- int rc = -ENODEV;
408- struct slot *pslot;
409- struct slot myslot;
410-
411- debug("get_max_adapter_speed_1 - Entry hotplug_slot[%lx] pvalue[%lx]\n",
412- (ulong)hotplug_slot, (ulong) value);
413-
414- if (flag)
415- ibmphp_lock_operations();
416-
417- if (hotplug_slot && value) {
418- pslot = hotplug_slot->private;
419- if (pslot) {
420- memcpy(&myslot, pslot, sizeof(struct slot));
421- rc = ibmphp_hpc_readslot(pslot, READ_SLOTSTATUS,
422- &(myslot.status));
423-
424- if (!(SLOT_LATCH (myslot.status)) &&
425- (SLOT_PRESENT (myslot.status))) {
426- rc = ibmphp_hpc_readslot(pslot,
427- READ_EXTSLOTSTATUS,
428- &(myslot.ext_status));
429- if (!rc)
430- *value = SLOT_SPEED(myslot.ext_status);
431- } else
432- *value = MAX_ADAPTER_NONE;
433- }
434- }
435-
436- if (flag)
437- ibmphp_unlock_operations();
438-
439- debug("get_max_adapter_speed_1 - Exit rc[%d] value[%x]\n", rc, *value);
440- return rc;
441- }
442-
443- static int get_bus_name(struct hotplug_slot *hotplug_slot, char *value)
444- {
445- int rc = -ENODEV;
446- struct slot *pslot = NULL;
447-
448- debug("get_bus_name - Entry hotplug_slot[%lx]\n", (ulong)hotplug_slot);
449-
450- ibmphp_lock_operations();
451-
452- if (hotplug_slot) {
453- pslot = hotplug_slot->private;
454- if (pslot) {
455- rc = 0;
456- snprintf(value, 100, "Bus %x", pslot->bus);
457- }
458- } else
459- rc = -ENODEV;
460-
461- ibmphp_unlock_operations();
462- debug("get_bus_name - Exit rc[%d] value[%x]\n", rc, *value);
463- return rc;
464- }
465- */
466-
467396/****************************************************************************
468397 * This routine will initialize the ops data structure used in the validate
469398 * function. It will also power off empty slots that are powered on since BIOS
@@ -1231,9 +1160,6 @@ const struct hotplug_slot_ops ibmphp_hotplug_slot_ops = {
12311160 .get_attention_status = get_attention_status ,
12321161 .get_latch_status = get_latch_status ,
12331162 .get_adapter_status = get_adapter_present ,
1234- /* .get_max_adapter_speed = get_max_adapter_speed,
1235- .get_bus_name_status = get_bus_name,
1236- */
12371163};
12381164
12391165static void ibmphp_unload (void )
0 commit comments