Changeset b4b534ac in mainline for uspace/drv/bus/usb/ehci/hw_struct/mem_access.h
- Timestamp:
- 2016-07-22T08:24:47Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f76d2c2
- Parents:
- 5b18137 (diff), 8351f9a4 (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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/hw_struct/mem_access.h
r5b18137 rb4b534ac 1 1 /* 2 * Copyright (c) 201 0 Vojtech Horky2 * Copyright (c) 2013 Jan Vesely 3 3 * All rights reserved. 4 4 * … … 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 29 /** @addtogroup drvusbuhcihc 28 /** @addtogroup drvusbehci 30 29 * @{ 31 30 */ 32 31 /** @file 33 * @brief UHCI driver PCI helper functions32 * @brief EHCI driver 34 33 */ 35 #ifndef DRV_ UHCI_PCI_H36 #define DRV_ UHCI_PCI_H34 #ifndef DRV_EHCI_HW_MEM_ACCESS_H 35 #define DRV_EHCI_HW_MEM_ACCESS_H 37 36 38 #include < ddf/driver.h>39 #include < device/hw_res_parsed.h>37 #include <byteorder.h> 38 #include <libarch/barrier.h> 40 39 41 int get_my_registers(ddf_dev_t *, addr_range_t *, int *); 42 int enable_interrupts(ddf_dev_t *); 43 int disable_legacy(ddf_dev_t *); 40 #define EHCI_MEM32_WR(reg, val) reg = host2uint32_t_le(val) 41 #define EHCI_MEM32_RD(reg) uint32_t_le2host(reg) 42 #define EHCI_MEM32_SET(reg, val) reg |= host2uint32_t_le(val) 43 #define EHCI_MEM32_CLR(reg, val) reg &= host2uint32_t_le(~val) 44 44 45 45 #endif 46 /** 46 47 /* 47 48 * @} 48 49 */
Note:
See TracChangeset
for help on using the changeset viewer.