~ubuntu-branches/ubuntu/trusty/linux-backports-modules-3.2.0/trusty

« back to all changes in this revision

Viewing changes to updates/cw-3.3/include/linux/unaligned/le_struct.h

  • Committer: Package Import Robot
  • Author(s): Leann Ogasawara
  • Date: 2012-02-15 08:42:08 UTC
  • Revision ID: package-import@ubuntu.com-20120215084208-2gcs2zosufz014pi
Tags: 3.2.0-18.1
* Open Precise LBM
* Add compat-wireless v3.3
* Consolidated amd64 server flavour into generic
* Remove lpia control file
* Update Vcs-Git to ubuntu-preicse-lbm

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _LINUX_UNALIGNED_LE_STRUCT_H
 
2
#define _LINUX_UNALIGNED_LE_STRUCT_H
 
3
 
 
4
#include <linux/unaligned/packed_struct.h>
 
5
 
 
6
static inline u16 get_unaligned_le16(const void *p)
 
7
{
 
8
        return __get_unaligned_cpu16((const u8 *)p);
 
9
}
 
10
 
 
11
static inline u32 get_unaligned_le32(const void *p)
 
12
{
 
13
        return __get_unaligned_cpu32((const u8 *)p);
 
14
}
 
15
 
 
16
static inline u64 get_unaligned_le64(const void *p)
 
17
{
 
18
        return __get_unaligned_cpu64((const u8 *)p);
 
19
}
 
20
 
 
21
static inline void put_unaligned_le16(u16 val, void *p)
 
22
{
 
23
        __put_unaligned_cpu16(val, p);
 
24
}
 
25
 
 
26
static inline void put_unaligned_le32(u32 val, void *p)
 
27
{
 
28
        __put_unaligned_cpu32(val, p);
 
29
}
 
30
 
 
31
static inline void put_unaligned_le64(u64 val, void *p)
 
32
{
 
33
        __put_unaligned_cpu64(val, p);
 
34
}
 
35
 
 
36
#endif /* _LINUX_UNALIGNED_LE_STRUCT_H */