Changeset ab414a6 in mainline for uspace/drv/uhci-hcd/pci.c
- Timestamp:
- 2011-02-28T20:07:06Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9ef0d6d
- Parents:
- 99e6bfb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/pci.c
r99e6bfb rab414a6 40 40 41 41 #include <usb/debug.h> 42 #include <pci_dev_iface.h> 42 43 43 44 #include "pci.h" … … 128 129 return enabled ? EOK : EIO; 129 130 } 131 /*----------------------------------------------------------------------------*/ 132 int pci_disable_legacy(ddf_dev_t *device) 133 { 134 assert(device); 135 int parent_phone = devman_parent_device_connect(device->handle, 136 IPC_FLAG_BLOCKING); 137 if (parent_phone < 0) { 138 return parent_phone; 139 } 140 141 sysarg_t address = 0xc0; 142 sysarg_t value = 0xb0; 143 144 usb_log_warning("phone %d, iface %d(%d), method %d, address %#x, value %#x.\n", 145 parent_phone,DEV_IFACE_ID(PCI_DEV_IFACE), PCI_DEV_IFACE, IPC_M_CONFIG_SPACE_WRITE_16, address, value); 146 147 int rc = async_req_3_0(parent_phone, DEV_IFACE_ID(PCI_DEV_IFACE), 148 IPC_M_CONFIG_SPACE_WRITE_16, address, value); 149 async_hangup(parent_phone); 150 151 return rc; 152 } 153 /*----------------------------------------------------------------------------*/ 130 154 /** 131 155 * @}
Note:
See TracChangeset
for help on using the changeset viewer.