Changeset 15d0046 in mainline for uspace/drv/audio/hdaudio/regif.h
- Timestamp:
- 2014-09-12T13:22:33Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9b20126
- Parents:
- 8db09e4 (diff), 105d8d6 (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/audio/hdaudio/regif.h
r8db09e4 r15d0046 1 1 /* 2 * Copyright (c) 20 06 Martin Decky2 * Copyright (c) 2014 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup mips6429 /** @addtogroup hdaudio 30 30 * @{ 31 31 */ 32 /** @file 32 /** @file High Definition Audio register interface 33 33 */ 34 34 35 #ifndef KERN_mips64_CYCLE_H_36 #define KERN_mips64_CYCLE_H_35 #ifndef REGIF_H 36 #define REGIF_H 37 37 38 #include <arch/cp0.h> 39 #include <arch/interrupt.h> 40 #include <trace.h> 38 #include <stdint.h> 41 39 42 NO_TRACE static inline uint64_t get_cycle(void) 43 { 44 return ((uint64_t) count_hi << 32) + ((uint64_t) cp0_count_read()); 45 } 40 extern uint8_t hda_reg8_read(uint8_t *); 41 extern uint16_t hda_reg16_read(uint16_t *); 42 extern uint32_t hda_reg32_read(uint32_t *); 43 extern void hda_reg8_write(uint8_t *, uint8_t); 44 extern void hda_reg16_write(uint16_t *, uint16_t); 45 extern void hda_reg32_write(uint32_t *, uint32_t); 46 46 47 47 #endif
Note:
See TracChangeset
for help on using the changeset viewer.