]> git.ipfire.org Git - people/ms/u-boot.git/blame - lib_nios/math.h
Make pixis_set_sgmii more general to support MPC85xx boards.
[people/ms/u-boot.git] / lib_nios / math.h
CommitLineData
4a551709
WD
1#define BITS_PER_UNIT 8
2
53677ef1 3typedef int HItype __attribute__ ((mode (HI)));
4a551709
WD
4typedef unsigned int UHItype __attribute__ ((mode (HI)));
5
6typedef int SItype __attribute__ ((mode (SI)));
7typedef unsigned int USItype __attribute__ ((mode (SI)));
8
9typedef int word_type __attribute__ ((mode (__word__)));
10
11struct SIstruct {HItype low, high;};
12
13typedef union {
14 struct SIstruct s;
15 SItype ll;
16} SIunion;