staticint zt5550_hc_config(struct pci_dev *pdev)
{ int ret;
/* Since we know that no boards exist with two HC chips, treat it as an error */ if (hc_dev) {
err("too many host controller devices?"); return -EBUSY;
}
ret = pci_enable_device(pdev); if (ret) {
err("cannot enable %s\n", pci_name(pdev)); return ret;
}
/* * Disable host control, fault and serial interrupts
*/
dbg("disabling host control, fault and serial interrupts");
writeb((u8) HC_INT_MASK_REG, csr_hc_index);
writeb((u8) ALL_INDEXED_INTS_MASK, csr_hc_data);
dbg("disabled host control, fault and serial interrupts");
/* * Disable timer0, timer1 and ENUM interrupts
*/
dbg("disabling timer0, timer1 and ENUM interrupts");
writeb((u8) ALL_DIRECT_INTS_MASK, csr_int_mask);
dbg("disabled timer0, timer1 and ENUM interrupts"); return 0;
status = cpci_hp_register_controller(&zt5550_hpc); if (status != 0) {
err("could not register cPCI hotplug controller"); goto init_hc_error;
}
dbg("registered controller");
/* Look for first device matching cPCI bus's bridge vendor and device IDs */
bus0_dev = pci_get_device(PCI_VENDOR_ID_DEC,
PCI_DEVICE_ID_DEC_21154, NULL); if (!bus0_dev) {
status = -ENODEV; goto init_register_error;
}
bus0 = bus0_dev->subordinate;
pci_dev_put(bus0_dev);
status = cpci_hp_register_bus(bus0, 0x0a, 0x0f); if (status != 0) {
err("could not register cPCI hotplug bus"); goto init_register_error;
}
dbg("registered bus");
status = cpci_hp_start(); if (status != 0) {
err("could not started cPCI hotplug system");
cpci_hp_unregister_bus(bus0); goto init_register_error;
}
dbg("started cpci hp system");
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.