Changeset 3afb758 in mainline for uspace/drv/bus/usb/uhci/pci.c
- Timestamp:
- 2011-08-24T15:23:46Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1a02517
- Parents:
- 5fe0a697
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/pci.c
r5fe0a697 r3afb758 142 142 { 143 143 assert(device); 144 144 145 145 async_sess_t *parent_sess = 146 146 devman_parent_device_connect(EXCHANGE_SERIALIZE, device->handle, … … 148 148 if (!parent_sess) 149 149 return ENOMEM; 150 150 151 151 /* See UHCI design guide for these values p.45, 152 152 * write all WC bits in USB legacy register */ 153 153 const sysarg_t address = 0xc0; 154 154 const sysarg_t value = 0xaf00; 155 155 156 156 async_exch_t *exch = async_exchange_begin(parent_sess); 157 157 158 158 const int rc = async_req_3_0(exch, DEV_IFACE_ID(PCI_DEV_IFACE), 159 159 IPC_M_CONFIG_SPACE_WRITE_16, address, value); 160 160 161 161 async_exchange_end(exch); 162 162 async_hangup(parent_sess); 163 163 164 164 return rc; 165 165 }
Note:
See TracChangeset
for help on using the changeset viewer.