RTEMS: cpukit/score/cpu/sparc/include/libcpu/access.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
access.h
1/*
2 * access.h - access routines for SPARC. SPARC is big endian only.
3 *
4 * COPYRIGHT (c) 2011
5 * Aeroflex Gaisler.
6 *
7 * The license and distribution terms for this file may be
8 * found in the file LICENSE in this distribution or at
9 * http://www.rtems.org/license/LICENSE.
10 */
11
12#ifndef _LIBCPU_ACCESS_H
13#define _LIBCPU_ACCESS_H
14
15#include <rtems/score/cpu.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21/* "Raw" access */
22extern uint8_t _ld8(uint8_t *addr);
23extern void _st8(uint8_t *addr, uint8_t val);
24extern uint16_t _ld16(uint16_t *addr);
25extern void _st16(uint16_t *addr, uint16_t val);
26extern uint32_t _ld32(uint32_t *addr);
27extern void _st32(uint32_t *addr, uint32_t val);
28extern uint64_t _ld64(uint64_t *addr);
29extern void _st64(uint64_t *addr, uint64_t val);
30
31/* Aliases for Big Endian */
32extern uint16_t _ld_be16(uint16_t *addr);
33extern void _st_be16(uint16_t *addr, uint16_t val);
34extern uint32_t _ld_be32(uint32_t *addr);
35extern void _st_be32(uint32_t *addr, uint32_t val);
36extern uint64_t _ld_be64(uint64_t *addr);
37extern void _st_be64(uint64_t *addr, uint64_t val);
38
39/* Little endian */
40extern uint16_t _ld_le16(uint16_t *addr);
41extern void _st_le16(uint16_t *addr, uint16_t val);
42extern uint32_t _ld_le32(uint32_t *addr);
43extern void _st_le32(uint32_t *addr, uint32_t val);
44
45#ifdef __cplusplus
46}
47#endif
48
49#endif