Changeset 8565a42 in mainline for uspace/lib/drv/generic/remote_pci.c
- Timestamp:
- 2018-03-02T20:34:50Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a1a81f69, d5e5fd1
- Parents:
- 3061bc1 (diff), 34e1206 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:34:50)
- git-committer:
- GitHub <noreply@…> (2018-03-02 20:34:50)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_pci.c
r3061bc1 r8565a42 54 54 { 55 55 sysarg_t res = 0; 56 56 57 57 async_exch_t *exch = async_exchange_begin(sess); 58 58 errno_t rc = async_req_2_1(exch, DEV_IFACE_ID(PCI_DEV_IFACE), 59 59 IPC_M_CONFIG_SPACE_READ_8, address, &res); 60 60 async_exchange_end(exch); 61 61 62 62 *val = (uint8_t) res; 63 63 return rc; … … 68 68 { 69 69 sysarg_t res = 0; 70 70 71 71 async_exch_t *exch = async_exchange_begin(sess); 72 72 errno_t rc = async_req_2_1(exch, DEV_IFACE_ID(PCI_DEV_IFACE), 73 73 IPC_M_CONFIG_SPACE_READ_16, address, &res); 74 74 async_exchange_end(exch); 75 75 76 76 *val = (uint16_t) res; 77 77 return rc; … … 82 82 { 83 83 sysarg_t res = 0; 84 84 85 85 async_exch_t *exch = async_exchange_begin(sess); 86 86 errno_t rc = async_req_2_1(exch, DEV_IFACE_ID(PCI_DEV_IFACE), 87 87 IPC_M_CONFIG_SPACE_READ_32, address, &res); 88 88 async_exchange_end(exch); 89 89 90 90 *val = (uint32_t) res; 91 91 return rc; … … 98 98 IPC_M_CONFIG_SPACE_WRITE_8, address, val); 99 99 async_exchange_end(exch); 100 100 101 101 return rc; 102 102 } … … 109 109 IPC_M_CONFIG_SPACE_WRITE_16, address, val); 110 110 async_exchange_end(exch); 111 111 112 112 return rc; 113 113 } … … 120 120 IPC_M_CONFIG_SPACE_WRITE_32, address, val); 121 121 async_exchange_end(exch); 122 122 123 123 return rc; 124 124 }
Note:
See TracChangeset
for help on using the changeset viewer.